Description Usage Arguments Value
Get a single category used to tag items in Spotify (on, for example, the Spotify player’s “Browse” tab).
1 2 3 4 5 6 | get_category(
category_id,
country = NULL,
locale = NULL,
authorization = get_spotify_access_token()
)
|
category_id |
Required. The Spotify ID for the category. |
country |
Optional. A country: an ISO 3166-1 alpha-2 country code. Provide this parameter to ensure that the category exists for a particular country. |
locale |
Optional. 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: |
authorization |
Required. A valid access token from the Spotify Accounts service. See the Web API authorization guide for more details. Defaults to |
Returns a list of results containing category information. See https://developer.spotify.com/documentation/web-api/reference/users-profile/get-current-users-profile/ for more information.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.