Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_playlist_audio_features

Get Features and Popularity of Playlists on Spotify


Description

This function returns the popularity and audio features for every song for a given set of playlists on Spotify

Usage

get_playlist_audio_features(
  username,
  playlist_uris,
  authorization = get_spotify_access_token()
)

Arguments

username

String of Spotify username. Can be found on the Spotify app.

playlist_uris

Character vector of Spotify playlist uris. Can be found within the Spotify App

authorization

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()

Value

A data frame with the audio featurees and popularity variables of playlists.

See Also

Examples

playlist_username <- 'spotify'
playlist_uris <- c('37i9dQZF1E9T1oFsQFg98K', '37i9dQZF1CyQNOI21QVf3p')
playlist_audio_features <- get_playlist_audio_features(playlist_username, playlist_uris)

spotifyr

R Wrapper for the 'Spotify' Web API

v2.2.1
MIT + file LICENSE
Authors
Charlie Thompson [aut], Daniel Antal [aut, cre] (<https://orcid.org/0000-0001-7513-6760>), Josiah Parry [aut] (<https://orcid.org/0000-0001-9910-865X>), Donal Phipps [aut], Tom Wolff [aut]
Initial release
2021-06-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.