Introducing the Instagram APIRead more →

Spotify Album API. Send an album link or ID.

Full tracklist with plays, label and UPC. We handle the proxies, blocks and platform changes.

Spotify Album API at a glance

Returns a public Spotify album, single or EP from its link, share link, URI or ID, with its full tracklist and each track's exact play count. It also has the label, UPC, copyright lines, release date, cover, credited artists, total length, popularity score and explicit flag.

GET /v1/spotify/album

Read the API reference
  • 1 credit per request, $0.75–$1.97 per 1,000 requests
  • 20 typed fields null when unknown
  • url is all it needs, e.g. https://open.spotify.com/album/6N9PS4QXF1D0OWPk0Sxtb4
  • 100 credits free when you sign up, no card, so you can build before you spend

Send one request. Get 20 fields 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/album/6N9PS4QXF1D0OWPk0Sxtb4
GET /v1/spotify/albumTry in
const params = new URLSearchParams({
  url: "https://open.spotify.com/album/6N9PS4QXF1D0OWPk0Sxtb4",
});
const res = await fetch(`https://socialtap.dev/v1/spotify/album?${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, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/spotify/albumLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 2 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 release: its link (open.spotify.com/album/6N9PS4QXF1D0OWPk0Sxtb4, also under /intl-de/ and /embed/, with any share parameters), a share link (spotify.link/…), its URI (spotify:album:6N9PS4QXF1D0OWPk0Sxtb4) or its 22-character ID.

  • Write one parser

    Spotify and Apple Music answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (applemusic, spotify, soundcloud, …).
idstring
Platform-native album ID (string), the one in its page's URL.
urlstring
Canonical album page URL.
typestring
What kind of release it is, as the platform says: album, single, ep or compilation; null when the platform does not say. New values may be added; treat unknown values as album.
titlestring
The release's title as the platform shows it (with an edition or a suffix like "- Single" where it writes one).
descriptionstring
About the release, as plain text (the service's editorial notes, or what its uploader wrote); null when it has none or the platform shows none.
artist_namestring
Who the platform credits for the release, as one display string (it can name more people than have an account linked: artists holds the linked ones); null when the source does not name them.
artistsobject[]
The platform accounts of the artists credited on the release, main artist first, in the platform's order; [] when none is linked, as on a Various Artists compilation (listed in unknown_fields when the source cannot see them).

What teams build with the Spotify Album API.

  • Match releases across services by UPC

  • Compare plays across an album's tracks

  • Find a release's label and rights holders

  • Build an album page from a shared link

Good to know before you build.

  • tracks holds the whole release, however long. If part of a very long one can't be read, tracks is listed in approximate_fields.
  • released_at has no time and is listed in approximate_fields, and platform_specific.spotify.release_date_precision says when it is only a month or a year.
  • genres is [] and listed in unknown_fields, because Spotify files no genres under a release. A track's ISRC comes from the Spotify Track API.
  • tracks[].play_url is Spotify's preview, a short clip, and null when the track has none.
  • platform_specific.spotify.is_playable is for the country we request from, which may not be yours.
  • tracks[].metrics.view_count is null, not 0, for a track below the threshold where Spotify starts showing plays.
  • An album link that highlights one track (?highlight=spotify:track:…) is that track's link: the Spotify Track API takes it.
  • When Spotify's main API fails, the answer comes from the embed page without type, date, label, UPC, copyright, plays, track positions or artist IDs, which are null or listed in unknown_fields, and a very long release's tracks may stop short (listed in approximate_fields).

1 credit per request. Failed requests are free.

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

SourcePrice per successful requestPer 1,000 requests
Platform API api1 credit$0.75–$1.97
Public page page1 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 Album API.

More in the API reference.

Can I look up an album by its UPC?
Yes, in two steps. Search upc:<code> with the Spotify Album Search API to find the release, then send its ID here for the full album.
How much does the Spotify Album API cost?
A request costs 1 credit. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.

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