Skip to content
DocumentationAPI Reference

Get Several Browse Categories

GET/browse/categories

Get a list of categories used to tag items in Spotify (on, for example, the Spotify player’s “Browse” tab).

Query ParametersExpand Collapse
limit: optional number

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

minimum1
maximum50
locale: optional string

The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code, joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)". Provide this parameter if you want the category strings returned in a particular language.
Note: if locale is not supplied, or if the specified language is not available, the category strings returned will be in the Spotify default language (American English).

offset: optional number

The index of the first item to return. Default: 0 (the first item). Use with limit to get the next set of items.

ReturnsExpand Collapse
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 object { id, href, icons, 2 more }
id: string

The Spotify category ID of the category.

href: string

A link to the Web API endpoint returning full details of the category.

icons: array of ImageObject { height, url, width, published }

The category icon, in various sizes.

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: string

The name of the category.

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

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 Several Browse Categories

curl https://api.spotify.com/v1/browse/categories \
    -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": "equal",
      "href": "href",
      "icons": [
        {
          "height": 300,
          "url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
          "width": 300,
          "published": true
        }
      ],
      "name": "EQUAL",
      "published": true
    }
  ],
  "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": "equal",
      "href": "href",
      "icons": [
        {
          "height": 300,
          "url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
          "width": 300,
          "published": true
        }
      ],
      "name": "EQUAL",
      "published": true
    }
  ],
  "published": true
}