Get User's Playlists
Get a list of the playlists owned or followed by a Spotify user.
Request
- user_idstringRequired
The user's Spotify user ID.
Example:smedjan
- limitinteger
The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
Default:limit=20
Range:0
-50
Example:limit=10
- offsetinteger
The index of the first playlist to return. Default: 0 (the first object). Maximum offset: 100.000. Use with
limit
to get the next set of playlists.Default:offset=0
Example:offset=5
Response
A paged set of playlists
- hrefstringRequired
A link to the Web API endpoint returning the full result of the request
Example:"https://api.spotify.com/v1/me/shows?offset=0&limit=20"
- limitintegerRequired
The maximum number of items in the response (as set in the query or by default).
Example:20
- nextstringRequiredNullable
URL to the next page of items. (
null
if none)Example:"https://api.spotify.com/v1/me/shows?offset=1&limit=1"
- offsetintegerRequired
The offset of the items returned (as set in the query or by default)
Example:0
- previousstringRequiredNullable
URL to the previous page of items. (
null
if none)Example:"https://api.spotify.com/v1/me/shows?offset=1&limit=1"
- totalintegerRequired
The total number of items available to return.
Example:4
- Required
- collaborativeboolean
true
if the owner allows other users to modify the playlist. - descriptionstring
The playlist description. Only returned for modified, verified playlists, otherwise
null
. Known external URLs for this playlist.
- spotifystring
The Spotify URL for the object.
- hrefstring
A link to the Web API endpoint providing full details of the playlist.
- idstring
The Spotify ID for the playlist.
Images for the playlist. The array may be empty or contain up to three images. The images are returned by size in descending order. See Working with Playlists. Note: If returned, the source URL for the image (
url
) is temporary and will expire in less than a day.- namestring
The name of the playlist.
The user who owns the playlist
Known public external URLs for this user.
- spotifystring
The Spotify URL for the object.
Information about the followers of this user.
- hrefstringNullable
This will always be set to null, as the Web API does not support it at the moment.
- totalinteger
The total number of followers.
- hrefstring
A link to the Web API endpoint for this user.
- idstring
The Spotify user ID for this user.
- typestring
The object type.
Allowed values:"user"
- uristring
The Spotify URI for this user.
- display_namestringNullable
The name displayed on the user's profile.
null
if not available.
- publicboolean
The playlist's public/private status (if it is added to the user's profile):
true
the playlist is public,false
the playlist is private,null
the playlist status is not relevant. For more about public/private status, see Working with Playlists - snapshot_idstring
The version identifier for the current playlist. Can be supplied in other requests to target a specific playlist version
A collection containing a link (
href
) to the Web API endpoint where full details of the playlist's tracks can be retrieved, along with thetotal
number of tracks in the playlist. Note, a track object may benull
. This can happen if a track is no longer available.- hrefstring
A link to the Web API endpoint where full details of the playlist's tracks can be retrieved.
- totalinteger
Number of tracks in the playlist.
- typestring
The object type: "playlist"
- uristring
The Spotify URI for the playlist.
Response sample
{ "href": "https://api.spotify.com/v1/me/shows?offset=0&limit=20", "limit": 20, "next": "https://api.spotify.com/v1/me/shows?offset=1&limit=1", "offset": 0, "previous": "https://api.spotify.com/v1/me/shows?offset=1&limit=1", "total": 4, "items": [ { "collaborative": false, "description": "string", "external_urls": { "spotify": "string" }, "href": "string", "id": "string", "images": [ { "url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228", "height": 300, "width": 300 } ], "name": "string", "owner": { "external_urls": { "spotify": "string" }, "followers": { "href": "string", "total": 0 }, "href": "string", "id": "string", "type": "user", "uri": "string", "display_name": "string" }, "public": false, "snapshot_id": "string", "tracks": { "href": "string", "total": 0 }, "type": "string", "uri": "string" } ]}