Get Current User's Recently Played Tracks
GET
/me/player/recently-played
category-player
Note: Currently doesn't support podcast episodes.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.spotify.com/me/player/recently-played' \
--header 'Authorization;'
响应示例响应示例
200 - 示例 1
{
"cursors": {
"after": "string"
},
"href": "string",
"items": [
{
"context": {
"external_urls": {
"spotify": "string"
},
"href": "string",
"type": "string",
"uri": "string"
},
"played_at": "2019-08-24T14:15:22Z",
"track": {
"artists": [
{
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"name": "string",
"type": "string",
"uri": "string"
}
],
"available_markets": [
"string"
],
"disc_number": 0,
"duration_ms": 0,
"explicit": true,
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"is_local": true,
"is_playable": true,
"linked_from": {
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"type": "string",
"uri": "string"
},
"name": "string",
"preview_url": "string",
"restrictions": {
"reason": "string"
},
"track_number": 0,
"type": "string",
"uri": "string"
}
}
],
"limit": 0,
"next": "string",
"total": 0
}
请求参数
Query 参数
limit
可选
after
可选
after
is specified, before
must not be specified.before
可选
before
is specified, after
must not be specified.Header 参数
Authorization
必需
返回响应
修改于 2021-08-02 10:49:34