Get a List of a User's Playlists
GET
/users/{user_id}/playlists
category-playlists
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.spotify.com/users//playlists' \
--header 'Authorization;'
响应示例响应示例
200 - 示例 1
{
"href": "string",
"items": [
{
"collaborative": true,
"description": "string",
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"images": [
{
"height": 0,
"url": "string",
"width": 0
}
],
"name": "string",
"owner": {
"display_name": "string",
"external_urls": {
"spotify": "string"
},
"followers": {
"href": "string",
"total": 0
},
"href": "string",
"id": "string",
"images": [
{
"height": 0,
"url": "string",
"width": 0
}
],
"type": "string",
"uri": "string"
},
"public": true,
"snapshot_id": "string",
"tracks": {
"href": "string",
"total": 0
},
"type": "string",
"uri": "string"
}
],
"limit": 0,
"next": "string",
"offset": 0,
"previous": "string",
"total": 0
}
请求参数
Path 参数
user_id
必需
Query 参数
limit
可选
offset
可选
limit
to get the next set of playlists.Header 参数
Authorization
必需
Private playlists are only retrievable for the current user and requires the
playlist-read-private
scope to have been authorized by the user. Note that this scope alone will not return collaborative playlists, even though they are always private.Collaborative playlists are only retrievable for the current user and requires the
playlist-read-collaborative
scope to have been authorized by the user.返回响应
修改于 2021-08-02 10:49:34