Introducing the Instagram APIRead more →

Apple Music Album Search API. Albums, singles and EPs matching your search.

Albums, singles and EPs by keyword. We handle the proxies, blocks and platform changes.

Apple Music Album Search API at a glance

Searches Apple Music albums, singles and EPs by keyword in any country's store and returns them a page at a time, with label, UPC and track count. Each has the credited artists with their IDs, full-size cover, release date, copyright, genres, explicit rating, audio formats, Apple's notes and its Mastered for iTunes badge. The Apple Music Album API returns the tracks.

GET /v1/applemusic/search_albums

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 20 typed fields null when unknown
  • 50 albums, singles and EPs per page, Apple Music's own relevance order for the query
  • query is all it needs, e.g. lover

Send one request. Get up to 50 albums, singles and EPs 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 = lover
GET /v1/applemusic/search_albumsTry in
const params = new URLSearchParams({
  query: "lover",
});
const res = await fetch(`https://socialtap.dev/v1/applemusic/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/applemusic/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 Apple Music 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: an album's title, an artist's name, or both together, in any language. Apple matches it as its web player's search box does.

  • Write one parser

    Apple Music and Spotify 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 Apple Music Album Search API.

  • Find an album's ID and UPC by title

  • Match a release catalog against Apple Music

  • List an artist's albums, singles and EPs

  • Check an album's label in another store

Good to know before you build.

  • Results are albums only. Songs, artists, playlists and stations have search endpoints of their own that take the same query.
  • tracks, more_by_artist and other_versions are [] and listed in unknown_fields, because a search names no tracks. metrics.track_count says how many there are, and the Apple Music Album API lists them.
  • Results are in Apple Music's order for the query. Apple serves about 200 results per search, however many match, and the walk then ends with page.end_reason platform_limit.
  • Results differ by store: a release can be missing from one or have another language's title. platform_specific.applemusic.storefront says which store answered.
  • When Apple's catalog API fails, the first page comes from its public search API and ends the walk with platform_limit: label, upc and description are null, the audio formats [] and listed in unknown_fields, type comes from the title alone (null where it doesn't say), genres holds the main one, and only the first artist is named. That API answers in the store's language, so a request with lang fails rather than answer in another.
  • A language the store doesn't offer isn't refused: Apple answers in the store's own language.
  • An empty query or an Apple Music link returns invalid_input. A link to a platform we don't cover is searched as words.

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 Apple Music Album Search API.

More in the API reference.

How much does the Apple Music Album Search API cost?
A page of up to 50 albums, singles and EPs 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