player_history(limit, reverse)
Get tracks from the current user's recently played tracks. Note: Currently doesn't support podcast episodes.
| Parameter | Type | Default |
|---|---|---|
| limit | integer | 3 |
| reverse | boolean | false |
player_current
Get the object currently being played on the user's Spotify account.
player_upcoming(limit, reverse)
Get the list of objects that make up the user's queue.
| Parameter | Type | Default |
|---|---|---|
| limit | integer | 3 |
| reverse | boolean | true |
player_queue(uri)
Add an item to the end of the user's current playback queue. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.
| Parameter | Type | Default |
|---|---|---|
| uri | string |
player_play
Start a new context or resume current playback on the user's active device. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.
player_pause
Pause playback on the user's account. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.
player_next
Skips to next track in the user’s queue. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.
player_previous
Skips to previous track in the user’s queue. This API only works for users who have Spotify Premium. The order of execution is not guaranteed when you use this API with other Player API endpoints.
search(query, limit, type)
Get Spotify catalog information about albums, artists, playlists, tracks, shows, episodes or audiobooks that match a keyword string. Audiobooks are only available within the US, UK, Canada, Ireland, New Zealand and Australia markets.
| Parameter | Type | Default |
|---|---|---|
| query | string | |
| limit | integer | 3 |
| type | string | track |
track(id)
Get Spotify catalog information for a single track identified by its unique Spotify ID.
| Parameter | Type | Default |
|---|---|---|
| id | string |
Spotify URI can be also given as parameter, from which ID is extracted.
