Introducing the Instagram APIRead more →

Spotify Playlist Tracks API. Tracks, page by page.

Plays, BPM, Camelot key and date added. We handle the proxies, blocks and platform changes.

Spotify Playlist Tracks API at a glance

Returns the tracks of a public Spotify playlist in its own order, a page at a time, from its link, share link, URI or ID. Each track has its artists, album, release date, length, exact play count, preview clip, who added it and when, and its BPM, key and Camelot key.

GET /v1/spotify/playlist_tracks

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 22 typed fields null when unknown
  • 100 tracks per page, the playlist's own order, as its owner or Spotify arranged it
  • url is all it needs, e.g. https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M

Send one request. Get up to 100 tracks back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
url = https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M
GET /v1/spotify/playlist_tracksTry in
const params = new URLSearchParams({
  url: "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
});
const res = await fetch(`https://socialtap.dev/v1/spotify/playlist_tracks?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/spotify/playlist_tracksDocs

One schema on 21 platforms.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field Spotify doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    The playlist: its link (open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M, also under /intl-de/ and /embed/, the old /user/<name>/playlist/… form, with any share parameters), a share link (spotify.link/…), its URI (spotify:playlist:37i9dQZF1DXcBWIGoYBM5M, or the old spotify:user:<name>:playlist:…) or its 22-character ID.

  • Write one parser

    Spotify, TikTok, Instagram and 18 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, …).
idstring
Platform-native post ID (string; Instagram shortcode, Reddit with its t3_ prefix).
urlstring
Canonical post URL.
typestring
Normalized content shape. New values may be added; treat unknown values as other.
platform_typestring
The platform's own product label, lowercase (reel, short, story, live, tweet, …).
titlestring
Headline (YouTube title, Reddit title); null on caption-only platforms.
textstring
Caption, description or body as plain text.
languagestring
BCP-47 language of text, when the platform states it.

What teams build with the Spotify Playlist Tracks API.

  • Track what enters and leaves a playlist

  • Build DJ sets by BPM and Camelot key

  • Compare play counts across a playlist

  • Find songs a curator's playlists share

Good to know before you build.

  • Tracks come in the playlist's own order, not by date.
  • Podcast episodes, audiobook chapters and local files are left out and counted in meta.warnings, so a page can hold fewer tracks than its limit, or none, while the list goes on.
  • A track the playlist holds more than once is listed once per page, with its first added_at and added_by, and meta.warnings counts the repeats. With limit=1 every copy is listed.
  • Some tracks have no name, length or cover in the country we request from: their title, duration_ms, thumbnail_url, published_at, author.display_name, album_title, release_date_precision, is_explicit and music_video_count are null and is_playable is false, but their ID and plays are there.
  • platform_specific.spotify.added_by is null on Spotify's own playlists, which name nobody.
  • platform_specific.spotify.isrc, label, popularity, album_type, album_track_count, credits and copyrights aren't in a playlist's list: the Spotify Track API returns them.
  • When Spotify's main API fails, the page comes from its playlist API: partial_data names what that read lacks, such as the play count and release date, and a music video reads as audio.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Platform API api1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the Spotify Playlist Tracks API.

More in the API reference.

Does it return BPM and key?
Yes. Each track has its tempo in BPM, its musical key and its Camelot key in platform_specific.spotify, as Spotify measured them.
How much does the Spotify Playlist Tracks API cost?
A page of up to 100 tracks costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on a link you already have.

Paste it in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs