This function returns the popularity and audio features for every song and album for a given artist on Spotify

get_artist_audio_features(artist = NULL, album_types = "album",
  return_closest_artist = TRUE,
  access_token = get_spotify_access_token(), parallelize = FALSE,
  future_plan = "multiprocess")

Arguments

artist

String of artist name or Spotify artist URI

album_types

Character vector of album types to include. Valid values are "album", "single", "appears_on", and "compilation". Defaults to "album".

return_closest_artist

Boolean for selecting the artist result with the closest match on Spotify's Search endpoint. Defaults to TRUE.

access_token

Spotify Web API token. Defaults to spotifyr::get_spotify_access_token()

parallelize

Boolean determining to run in parallel or not. Defaults to FALSE.

future_plan

String determining how `future()`s are resolved when `parallelize == TRUE`. Defaults to multiprocess.

Examples

# NOT RUN {
radiohead_features <- get_artist_audio_features(artist_name = 'radiohead')
# }