spotifyr (version 1.0.0)

get_albums: Get Albums

Description

This function returns an artist's discography on Spotify

Usage

get_albums(artist_uri, access_token = get_spotify_access_token())

Arguments

artist_uri

String identifier for an artist on Spotify. Can be found within the Spotify app or with spotifyr::get_artists()

access_token

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

Examples

Run this code
# NOT RUN {
artists <- get_artists('radiohead')
albums <- get_albums(artists$artist_uri[1])
# }

Run the code above in your browser using DataCamp Workspace