Spotify Player API

The Player API from Spotify — 13 operation(s) for player.

GitHub OpenAPI
Business capability
Audio & Music AE-170.20

Operations 15

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /me/player Get the user's current playback state · Get Playback State #
Ask an LLM
“Which track or episode is the user currently playing?”
“What progress and active device does the playback state show?”
Tell an agent
Show my current playback state.
Get the playback state for market {market}.
PUT /me/player Transfer playback to a device · Transfer Playback #
Ask an LLM
“How do I move playback to another device?”
“Can I start playing on a new device right away?”
Tell an agent
Transfer playback to devices {device_ids}.
Move playback to {device_ids} and play {play}.
GET /me/player/devices List devices the user can play on · Get Available Devices #
Ask an LLM
“Which Spotify Connect devices can I play music on?”
“Are some device models not supported?”
Tell an agent
List my available playback devices.
Show the devices I can transfer playback to.
GET /me/player/currently-playing Get the track being played · Get Currently Playing Track #
Ask an LLM
“What song is currently playing on my account?”
“Can I see the currently playing track for a market?”
Tell an agent
Show the track currently playing.
Get the currently playing track for market {market}.
PUT /me/player/play Start or resume playback · Start/Resume Playback #
Ask an LLM
“How do I start a playlist or album on my active device?”
“Can I resume playback from a specific position?”
Tell an agent
Start playback of {context_uri}.
Resume playback on device {device_id} from position {position_ms}.
PUT /me/player/pause Pause playback · Pause Playback #
Ask an LLM
“How do I pause the music on my active device?”
“Can I pause playback on a specific device?”
Tell an agent
Pause playback on my active device.
Pause playback on device {device_id}.
POST /me/player/next Skip to the next track · Skip To Next #
Ask an LLM
“How do I skip to the next song in the queue?”
“Can I skip the next track on a specific device?”
Tell an agent
Skip to the next track.
Skip the next track on device {device_id}.
POST /me/player/previous Skip to the previous track · Skip To Previous #
Ask an LLM
“How do I go back to the previous song?”
“Can I skip the previous track on a specific device?”
Tell an agent
Skip to the previous track.
Skip the previous track on device {device_id}.
PUT /me/player/seek Jump to a position in the current track · Seek To Position #
Ask an LLM
“How do I jump to a specific second in the song I'm listening to?”
“Can I seek within the currently playing track?”
Tell an agent
Seek to {position_ms} ms in the current track.
Jump to {position_ms} ms in the track playing on device {device_id}.
PUT /me/player/repeat Set playback repeat mode · Set Repeat Mode #
Ask an LLM
“How do I make the current track repeat?”
“Can I set repeat mode for a specific device?”
Tell an agent
Set repeat mode to {state}.
Repeat {state} on device {device_id}.
PUT /me/player/volume Set playback volume · Set Playback Volume #
Ask an LLM
“How do I turn up the volume on my active device?”
“Can I set the volume for a specific playback device?”
Tell an agent
Set the volume to {volume_percent} percent.
Set playback volume on device {device_id} to {volume_percent}.
PUT /me/player/shuffle Turn shuffle on or off · Toggle Playback Shuffle #
Ask an LLM
“How do I turn shuffle on for my playback?”
“Can I toggle shuffle for a specific device?”
Tell an agent
Toggle shuffle to {state}.
Shuffle {state} on device {device_id}.
GET /me/player/recently-played List recently played tracks · Get Recently Played Tracks #
Ask an LLM
“What songs have I listened to recently?”
“Can I see tracks I played before a certain date?”
Tell an agent
Show my recently played tracks.
List tracks I played before {before}.
GET /me/player/queue Get the playback queue · Get the User's Queue #
Ask an LLM
“What songs are waiting in my playback queue?”
“Can I see the queue of tracks to play next?”
Tell an agent
Show my playback queue.
List the tracks in the queue.
POST /me/player/queue Add a song to the playback queue · Add Item to Playback Queue #
Ask an LLM
“How do I add a song to the queue so it plays next?”
“Can I queue a track for a specific device?”
Tell an agent
Add {uri} to the queue.
Queue {uri} to play next on device {device_id}.

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spotify:spotify-player-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spotify-player-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: You can use Spotify's Web API to discover music and podcasts, manage your Spotify library, control audio playback, and much more.
  version: 1.0.0
  title: Spotify Web Player API
  termsOfService: https://developer.spotify.com/terms/
  contact:
    name: Spotify for Developers Community
    url: https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
servers:
- url: https://api.spotify.com/v1
tags:


# --- truncated at 32 KB (57 KB total) ---
# Full source: https://artifacts.apis.io/spotify/openapi/spotify-player-api-openapi.yml