Get Recently Played Tracks
Get tracks from the current user's recently played tracks. Note: Currently doesn't support podcast episodes.
The Spotify Platform can not be used to develop commercial streaming integrations.
More informationThe Spotify Platform can not be used to develop applications that alter Spotify Content.
More informationYou may not synchronize any sound recordings with any visual media, including any advertising, film, television program, slideshow, video, or similar content
More informationThe Spotify Platform can not be used for non-interactive broadcasting.
More information
Access your recently played items.
Request
- limitinteger
The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
Example value:10
Default value:20
Range:0
-50
- afterinteger
A Unix timestamp in milliseconds. Returns all items after (but not including) this cursor position. If
after
is specified,before
must not be specified.Example value:1484811043508
- beforeinteger
A Unix timestamp in milliseconds. Returns all items before (but not including) this cursor position. If
before
is specified,after
must not be specified.
Response
A paged set of tracks
- hrefstring
A link to the Web API endpoint returning the full result of the request.
- limitinteger
The maximum number of items in the response (as set in the query or by default).
- nextstring
URL to the next page of items. (
null
if none) The cursors used to find the next set of items.
- afterstring
The cursor to use as key to find the next page of items.
- beforestring
The cursor to use as key to find the previous page of items.
- totalinteger
The total number of items available to return.
The track the user listened to.
- played_atstring [date-time]
The date and time the track was played.
The context the track was played from.