get_playlist_audio_features: Get Features and Popularity of Playlists on Spotify

View source: R/extensions.R

get_playlist_audio_featuresR Documentation

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 features and popularity variables of playlists.

See Also

Other musicology functions: get_artist_audio_features(), get_genre_artists(), get_track_audio_analysis(), get_track_audio_features(), get_user_audio_features()

Examples

## Not run: 
playlist_username <- 'spotify'
playlist_uris <- c('37i9dQZF1E9T1oFsQFg98K', '37i9dQZF1CyQNOI21QVf3p')
playlist_audio_features <- get_playlist_audio_features(playlist_username, playlist_uris)

## End(Not run)

spotifyr documentation built on Dec. 28, 2022, 2:08 a.m.