Skip to content
DocumentationAPI Reference

Get User's Playlists

GET/users/{user_id}/playlists

Get a list of the playlists owned or followed by a Spotify user.

Path ParametersExpand Collapse
user_id: string

The user's Spotify user ID.

Query ParametersExpand Collapse
limit: optional number

The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.

minimum1
maximum50
offset: optional number

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.

ReturnsExpand Collapse
PagingPlaylistObject = object { href, limit, next, 5 more }
href: string

A link to the Web API endpoint returning the full result of the request

limit: number

The maximum number of items in the response (as set in the query or by default).

URL to the next page of items. ( null if none)

offset: number

The offset of the items returned (as set in the query or by default)

URL to the previous page of items. ( null if none)

total: number

The total number of items available to return.

items: optional array of SimplifiedPlaylistObject { id, collaborative, description, 10 more }
id: optional string

The Spotify ID for the playlist.

collaborative: optional boolean

true if the owner allows other users to modify the playlist.

description: optional string

The playlist description. Only returned for modified, verified playlists, otherwise null.

external_urls: optional ExternalURLObject { published, spotify }

Known external URLs for this playlist.

published: optional boolean

The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists

spotify: optional string

The Spotify URL for the object.

href: optional string

A link to the Web API endpoint providing full details of the playlist.

images: optional array of ImageObject { height, url, width, published }

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.

height: number

The image height in pixels.

url: string

The source URL of the image.

width: number

The image width in pixels.

published: optional boolean

The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists

name: optional string

The name of the playlist.

owner: optional PlaylistUserObject { id, external_urls, href, 3 more }

The user who owns the playlist

display_name: optional string

The name displayed on the user's profile. null if not available.

published: optional boolean

The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists

snapshot_id: optional string

The version identifier for the current playlist. Can be supplied in other requests to target a specific playlist version

tracks: optional PlaylistTracksRefObject { href, published, total }

A collection containing a link ( href ) to the Web API endpoint where full details of the playlist's tracks can be retrieved, along with the total number of tracks in the playlist. Note, a track object may be null. This can happen if a track is no longer available.

href: optional string

A link to the Web API endpoint where full details of the playlist's tracks can be retrieved.

published: optional boolean

The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists

total: optional number

Number of tracks in the playlist.

type: optional string

The object type: "playlist"

uri: optional string

The Spotify URI for the playlist.

published: optional boolean

The playlist's public/private status (if it should be added to the user's profile or not): true the playlist will be public, false the playlist will be private, null the playlist status is not relevant. For more about public/private status, see Working with Playlists

Get User's Playlists

curl https://api.spotify.com/v1/users/$USER_ID/playlists \
    -H "Authorization: Bearer $SPOTIFY_ACCESS_TOKEN"
{
  "href": "https://api.spotify.com/v1/me/shows?offset=0&limit=20\n",
  "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": [
    {
      "id": "id",
      "collaborative": true,
      "description": "description",
      "external_urls": {
        "published": true,
        "spotify": "spotify"
      },
      "href": "href",
      "images": [
        {
          "height": 300,
          "url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
          "width": 300,
          "published": true
        }
      ],
      "name": "name",
      "owner": {
        "id": "id",
        "external_urls": {
          "published": true,
          "spotify": "spotify"
        },
        "href": "href",
        "published": true,
        "type": "user",
        "uri": "uri",
        "display_name": "display_name"
      },
      "published": true,
      "snapshot_id": "snapshot_id",
      "tracks": {
        "href": "href",
        "published": true,
        "total": 0
      },
      "type": "type",
      "uri": "uri"
    }
  ],
  "published": true
}
Returns Examples
{
  "href": "https://api.spotify.com/v1/me/shows?offset=0&limit=20\n",
  "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": [
    {
      "id": "id",
      "collaborative": true,
      "description": "description",
      "external_urls": {
        "published": true,
        "spotify": "spotify"
      },
      "href": "href",
      "images": [
        {
          "height": 300,
          "url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
          "width": 300,
          "published": true
        }
      ],
      "name": "name",
      "owner": {
        "id": "id",
        "external_urls": {
          "published": true,
          "spotify": "spotify"
        },
        "href": "href",
        "published": true,
        "type": "user",
        "uri": "uri",
        "display_name": "display_name"
      },
      "published": true,
      "snapshot_id": "snapshot_id",
      "tracks": {
        "href": "href",
        "published": true,
        "total": 0
      },
      "type": "type",
      "uri": "uri"
    }
  ],
  "published": true
}