Get audio feature information for all or part of an artists' discography.
get_artist_audio_features(
artist = NULL,
include_groups = "album",
return_closest_artist = TRUE,
dedupe_albums = TRUE,
authorization = get_spotify_access_token()
)
Required. String of either an artist name or an artist Spotify ID. If an artist name is provided, search_spotify()
will be used to find a Spotify ID matching the name provided.
Optional. A character vector of keywords that will be used to filter the response. Defaults to "album"
. Valid values are:
"album"
"single"
"appears_on"
"compilation"
For example: include_groups = c("album", "single")
Optional. Boolean
Optional. Boolean
Required. A valid access token from the Spotify Accounts service. See the Web API authorization Guide for more details. Defaults to spotifyr::get_spotify_access_token()
Returns a data frame of results containing track audio features data. See the Spotify Web API documentation for more information.