spotifyr (version 2.1.1)

get_playlist: Get a playlist owned by a Spotify user.


Get a playlist owned by a Spotify user.


  fields = NULL,
  market = NULL,
  authorization = get_spotify_access_token()



Required. The Spotify ID for the playlist.


Optional. Filters for the query: a comma-separated list of the fields to return. If omitted, all fields are returned. For example, to get just the playlist<U+2019>s description and URI: fields = c("description", "uri") A dot separator can be used to specify non-reoccurring fields, while parentheses can be used to specify reoccurring fields within objects. For example, to get just the added date and user ID of the adder: fields = "tracks.items(added_at," Use multiple parentheses to drill down into nested objects, for example: fields = "tracks.items(track(name,href,album(name,href)))" Fields can be excluded by prefixing them with an exclamation mark, for example: fields = "tracks.items(track(name,href,album(!name,href)))"


Optional. An ISO 3166-1 alpha-2 country code or the string "from_token". Provide this parameter if you want to apply Track Relinking


Required. A valid access token from the Spotify Accounts service. See the Web API authorization guide for more details. Both Public and Private playlists belonging to any user are retrievable on provision of a valid access token. Defaults to spotifyr::get_spotify_access_token()


Returns a data frame of results containing user profile information. See for more information.