Spotify Tracks API

The Tracks API from Spotify — 13 operation(s) for tracks.

GitHub OpenAPI
Business capability
Audio & Music AE-170.20

Operations 10

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 /tracks/{id} Get a track's catalog details · Get Track #
Ask an LLM
“How do I look up one song's name, artist and album from its Spotify ID?”
“Can I get a single track's details for a specific market?”
Tell an agent
Get track {id}.
Show the catalog details of song {id} for market {market}.
GET /tracks Get several tracks' catalog details · Get Several Tracks #
Ask an LLM
“Can I fetch the name and artist of a batch of songs at once?”
“What's the fastest way to load multiple tracks by their IDs?”
Tell an agent
Get tracks {ids}.
Load the catalog information for songs {ids} in market {market}.
GET /me/tracks List a user's saved songs · Get User's Saved Tracks #
Ask an LLM
“Which songs have I saved to my library?”
“Can I page through my saved tracks with a limit and offset?”
Tell an agent
List my saved tracks.
Show {limit} saved tracks starting at offset {offset}.
PUT /me/tracks Save tracks to a user's library · Save Tracks for Current User #
Ask an LLM
“How do I add songs to my library?”
“Can I save tracks with a timestamp so I know when they were added?”
Tell an agent
Save tracks {ids} to my library.
Add songs {ids} to my library at {timestamped_ids}.
DELETE /me/tracks Remove tracks from a user's library · Remove User's Saved Tracks #
Ask an LLM
“How do I take songs out of my library?”
“Can I remove several saved tracks in one call?”
Tell an agent destructive · confirm first
Remove tracks {ids} from my library.
Delete songs {ids} from my saved tracks.
GET /me/tracks/contains Check which tracks a user has saved · Check User's Saved Tracks #
Ask an LLM
“Is a particular song already in my library?”
“Can I check several tracks against my saved list at once?”
Tell an agent
Check whether I've saved tracks {ids}.
Tell me which of {ids} are in my library.
GET /audio-features Get audio features for several tracks · Get Several Tracks' Audio Features #
Ask an LLM
“What tempo, energy and valence do a batch of songs have?”
“Can I get the audio features for many tracks in one request?”
Tell an agent
Get audio features for tracks {ids}.
Show the energy, tempo and valence of songs {ids}.
GET /audio-features/{id} Get one track's audio features · Get Track's Audio Features #
Ask an LLM
“How energetic and how loud is a single song?”
“What tempo and valence does one track have?”
Tell an agent
Get the audio features of track {id}.
Show energy, tempo and valence for song {id}.
GET /audio-analysis/{id} Get a track's low-level audio analysis · Get Track's Audio Analysis #
Ask an LLM
“Can I get the rhythm and pitch breakdown of a song?”
“What does the low-level audio analysis of a track include?”
Tell an agent
Get the audio analysis of track {id}.
Break down the rhythm and pitch of song {id}.
GET /recommendations Get personalized track recommendations · Get Recommendations #
Ask an LLM
“How do I get songs recommended based on my favorite artists?”
“Can I narrow recommendations by tempo, energy and key?”
Tell an agent
Get recommendations from seed artists {seed_artists} and genres {seed_genres} for tracks {seed_tracks}.
Recommend songs with energy between {min_energy} and {max_energy}, tempo {target_tempo}, for market {market}.

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-tracks-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-tracks-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 Tracks 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 (80 KB total) ---
# Full source: https://artifacts.apis.io/spotify/openapi/spotify-tracks-api-openapi.yml