Get Current User's Recently Played Tracks
Developing
GET
/me/player/recently-played
category-player
Note: Currently doesn't support podcast episodes.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.spotify.com/v1/me/player/recently-played' \
--header 'Authorization;'
Response Response Example
200 - Example 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
}
Request
Query Params
limit
integer
optional
after
integer
optional
after
is specified, before
must not be specified.before
integer
optional
before
is specified, after
must not be specified.Header Params
Authorization
string
required
Responses
Modified at 2022-09-12 10:04:50