Get All Categories
GET
/browse/categories
category-browse
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.spotify.com/browse/categories' \
--header 'Authorization;'
响应示例响应示例
200 - 示例 1
{
"categories": {
"href": "string",
"items": [
{
"href": "string",
"icons": [
{
"height": 0,
"url": "string",
"width": 0
}
],
"id": "string",
"name": "string"
}
],
"limit": 0,
"next": "string",
"offset": 0,
"previous": "string",
"total": 0
}
}
请求参数
Query 参数
country
可选
locale
可选
es_MX
, meaning "Spanish (Mexico)". Provide this parameter if you want the category metadata returned in a particular language. Note that, 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.limit
可选
offset
可选
limit
to get the next set of categories.Header 参数
Authorization
必需
返回响应
修改于 2021-08-02 10:49:33