get Recently Played Rest Action
fun getRecentlyPlayedRestAction(limit: Int? = api.spotifyApiOptions.defaultLimit, before: String? = null, after: String? = null): SpotifyRestAction<CursorBasedPagingObject<PlayHistory>>
Content copied to clipboard
Get tracks from the current user’s recently played tracks.
Requires the SpotifyScope.USER_READ_RECENTLY_PLAYED scope
Parameters
limit
The number of objects to return. Default: 50 (or api limit). Minimum: 1. Maximum: 50.
before
The timestamp (retrieved via cursor) not including, but before which, tracks will have been played. This can be combined with limit
after
The timestamp (retrieved via cursor) not including, after which, the retrieval starts. This can be combined with limit
Sources
common source
Link copied to clipboard