v1

latestOpenAPI 3.0.32026-07-148993228.8 KB
Categories

Get Several Browse Categories

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

get/browse/categories

Query parameters

countrystring

A country: an ISO 3166-1 alpha-2 country code. Provide this parameter if you want to narrow the list of returned categories to those relevant to a particular country. If omitted, the returned items will be globally relevant.

Example:SE
localestring

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 metadata returned in a particular language. <br/> Note: if locale is not supplied, or if the specified language is not available, all strings will be returned in the Spotify default language (American English). The locale parameter, combined with the country parameter, may give odd results if not carefully matched. For example country=SE&locale=de_DE will return a list of categories relevant to Sweden but as German language strings.

Example:sv_SE
limitinteger

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

Example:10
offsetinteger

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

Example:5

Response

A paged set of categories

Example response

{
  "categories": {
    "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",
    "previous": "https://api.spotify.com/v1/me/shows?offset=1&limit=1",
    "total": 4,
    "items": [
      {
        "icons": [
          {
            "height": 300,
            "url": "https://i.scdn.co/image/ab67616d00001e02ff9ca10b55ce82ae553c8228\n",
            "width": 300
          }
        ],
        "id": "equal",
        "name": "EQUAL"
      }
    ]
  }
}