Spotify Get Playback State Example is an example object payload from Spotify, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
operationrequestresponse
Example Payload
{
"operation": "get-information-about-the-users-current-playback",
"request": {
"method": "GET",
"url": "https://api.spotify.com/v1/me/player",
"headers": {
"Authorization": "Bearer {{SPOTIFY_ACCESS_TOKEN}}"
},
"parameters": {
"market": "US"
}
},
"response": {
"status": 200,
"body": {
"device": {
"id": "abc123def456",
"is_active": true,
"is_private_session": false,
"is_restricted": false,
"name": "My Phone",
"type": "Smartphone",
"volume_percent": 75,
"supports_volume": true
},
"shuffle_state": false,
"smart_shuffle": false,
"repeat_state": "off",
"timestamp": 1746192000000,
"context": {
"type": "playlist",
"uri": "spotify:playlist:3cEYpjA9oz9GiPac4AsH4n",
"href": "https://api.spotify.com/v1/playlists/3cEYpjA9oz9GiPac4AsH4n",
"external_urls": {
"spotify": "https://open.spotify.com/playlist/3cEYpjA9oz9GiPac4AsH4n"
}
},
"progress_ms": 47200,
"is_playing": true,
"item": {
"id": "0VjIjW4GlUZAMYd2vXMi3b",
"uri": "spotify:track:0VjIjW4GlUZAMYd2vXMi3b",
"name": "Blinding Lights",
"type": "track",
"duration_ms": 200040,
"explicit": false,
"artists": [
{
"id": "1Xyo4u8uXC1ZmMpatF05PJ",
"name": "The Weeknd"
}
],
"album": {
"id": "4yP0hdKOZPNshxUOjY0cZj",
"name": "After Hours",
"album_type": "album"
}
},
"currently_playing_type": "track",
"actions": {
"disallows": {
"resuming": true
}
}
}
}
}
Work with this as data
Every example here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for examples
4 MCP tools reach this
find_examplesBrowse and filter every example in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This example
curl "https://apis.io/api/v1/examples/spotify-get-playback-state-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.