curl --location --request GET 'https://api.spotify.com/me/player' \
--header 'Authorization;'
{
"actions": {
"interrupting_playback": true,
"pausing": true,
"resuming": true,
"seeking": true,
"skipping_next": true,
"skipping_prev": true,
"toggling_repeat_context": true,
"toggling_repeat_track": true,
"toggling_shuffle": true,
"transferring_playback": true
},
"context": {
"external_urls": {
"spotify": "string"
},
"href": "string",
"type": "string",
"uri": "string"
},
"currently_playing_type": "string",
"device": {
"id": "string",
"is_active": true,
"is_private_session": true,
"is_restricted": true,
"name": "string",
"type": "string",
"volume_percent": 0
},
"is_playing": true,
"item": {
"album": {
"album_group": "string",
"album_type": "string",
"artists": [
{
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"name": "string",
"type": "string",
"uri": "string"
}
],
"available_markets": [
"string"
],
"external_urls": {
"spotify": "string"
},
"href": "string",
"id": "string",
"images": [
{
"height": 0,
"url": "string",
"width": 0
}
],
"name": "string",
"release_date": "string",
"release_date_precision": "string",
"restrictions": {
"reason": "string"
},
"total_tracks": 0,
"type": "string",
"uri": "string"
},
"artists": [
{
"external_urls": {
"spotify": "string"
},
"followers": {
"href": "string",
"total": 0
},
"genres": [
"string"
],
"href": "string",
"id": "string",
"images": [
{
"height": 0,
"url": "string",
"width": 0
}
],
"name": "string",
"popularity": 0,
"type": "string",
"uri": "string"
}
],
"available_markets": [
"string"
],
"disc_number": 0,
"duration_ms": 0,
"explicit": true,
"external_ids": {
"ean": "string",
"isrc": "string",
"upc": "string"
},
"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",
"popularity": 0,
"preview_url": "string",
"restrictions": {
"reason": "string"
},
"track_number": 0,
"type": "string",
"uri": "string"
},
"progress_ms": 0,
"repeat_state": "string",
"shuffle_state": "string",
"timestamp": 0
}
from_token
. Provide this parameter if you want to apply Tracktrack
type. Valid types are: track
and episode
. An unsupported type in the response is expected to be represented as null
value in the item
field. Note: This parameter was introduced to allow existing clients to maintain their current behaviour and might be deprecated in the future. In addition to providing this parameter, make sure that your client properly handles cases of new