get_playlist | R Documentation |
Get a playlist owned by a Spotify user.
get_playlist(
playlist_id,
fields = NULL,
market = NULL,
authorization = get_spotify_access_token()
)
playlist_id |
Required. The Spotify ID for the playlist. |
fields |
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’s description
and URI: |
market |
Optional. |
authorization |
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 |
Returns a list containing the data about the playlist. See https://developer.spotify.com/console/get-playlist/ for more information.
Other playlist functions:
add_tracks_to_playlist()
,
change_playlist_details()
,
check_users_following()
,
create_playlist()
,
get_my_playlists()
,
get_user_playlists()
,
remove_tracks_from_playlist()
,
tidy()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.