Introducing the Instagram APIRead more →

Spotify Album Search API. Albums matching your search.

Albums by keyword, artist or UPC. We handle the proxies, blocks and platform changes.

Spotify Album Search API at a glance

Searches Spotify albums, singles and EPs by keyword, artist or UPC, in any language, and returns them a page at a time in Spotify's order. Each has its title, type, credited artists with their IDs, cover and release year. Spotify's filters work in the query: upc: finds a release by its barcode and tag:new the newest. The Spotify Album API adds the full date, label, UPC, copyrights and tracks.

GET /v1/spotify/search_albums

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 20 typed fields null when unknown
  • 100 albums per page, Spotify's own ranking for the query
  • query is all it needs, e.g. rick astley

Send one request. Get up to 100 albums 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
query = rick astley
GET /v1/spotify/search_albumsTry in
const params = new URLSearchParams({
  query: "rick astley",
});
const res = await fetch(`https://socialtap.dev/v1/spotify/search_albums?${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/search_albumsLong 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

    What to search for, as in Spotify's search box: a title, an artist or both, in any language.

  • 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 Search API.

  • Look up an album ID by its title

  • Find a release by its UPC

  • Follow new releases for an artist

  • Match a release catalog against Spotify

Good to know before you build.

  • Results are releases only: the tracks, artists, playlists and podcasts a query matches aren't in the list.
  • Search states only the year, so released_at is January 1 of that year, listed in approximate_fields, with platform_specific.spotify.release_date_precision year. The Spotify Album API returns the full date.
  • Search lists no tracks, copyrights, label, UPC, length or explicit flag: tracks and copyrights are [] and listed in unknown_fields, the others null, and the Spotify Album API returns them. Spotify files no genres under a release anywhere.
  • Results are in Spotify's order, which depends on the page size. A page often holds fewer releases than its limit while next_cursor goes on, and a walk ends with page.end_reason platform_limit where Spotify stops serving, however many it matched.
  • The album filters are artist:, album:, year:, upc: and tag:new. track: and genre: return an empty page here (the Spotify Track Search API reads track:). An empty page for a UPC doesn't prove Spotify lacks the release: its search misses some UPCs.
  • Spotify answers a weak query with its nearest guesses, so an empty page is rare and any result may be a loose match.
  • is_playable says whether Spotify plays the release in the country we request from, which may not be yours.
  • When Spotify's search doesn't answer, the first pages come from a web search engine's index, each release read from Spotify, with a partial_data warning naming the fields it lacks, and Spotify's filters are read as plain words. That list holds only what the index has, often a small part of Spotify's, in the engine's order. A next_cursor stays on the list it came from: if Spotify's search stops answering mid-walk, the next page fails with a retryable error instead of switching lists.
  • An empty query, a Spotify URI or a link to a Spotify page returns invalid_input, naming the endpoint that takes it where there is one. For a link to Spotify's search page, send its words instead.

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
Any source1 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 Search API.

More in the API reference.

Can I find an album by its UPC?
Yes, when Spotify's search knows it. Send upc:886445613841 as the query and the release comes back with its ID.
How much does the Spotify Album Search API cost?
A page of up to 100 albums 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 with your own search.

Type 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