Introducing the Instagram APIRead more →

Apple Music Playlist Search API. Playlists and radio stations matching your search.

Playlists and radio stations by keyword. We handle the proxies, blocks and platform changes.

Apple Music Playlist Search API at a glance

Searches Apple Music playlists or radio stations by keyword in any country's store and returns them a page at a time, with who curates each. A playlist has its description, Apple's one-line note, cover, track count, whether it is editorial, when it last changed and its audio format. A station has its kind, band and frequency, whether it streams live and whether only subscribers can play it.

GET /v1/applemusic/search_playlists

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 13 typed fields null when unknown
  • 50 playlists and radio stations per page, Apple Music's own relevance order for the query
  • query is all it needs, e.g. workout

Send one request. Get up to 50 playlists and radio stations 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 = workout
GET /v1/applemusic/search_playlistsTry in
const params = new URLSearchParams({
  query: "workout",
});
const res = await fetch(`https://socialtap.dev/v1/applemusic/search_playlists?${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_playlistsLong arrays and strings are shortened here. Real responses are complete.Docs

One schema on 6 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: a playlist's or station's name, an artist, a mood, a genre, in any language. Apple matches it as its web player's search box does.

  • Write one parser

    Apple Music, TikTok, Instagram and 3 more platforms answer in these fields, so the code that reads one reads them all.

platformstring
Platform ID (tiktok, youtube, facebook, …).
idstring
Platform-native playlist ID (string): TikTok's playlist (mix) or collection ID, YouTube's list ID (PL…), Facebook's video list ID.
urlstring
Canonical playlist URL.
typestring
playlist: a list its owner curates and orders (TikTok playlists, YouTube playlists, Facebook playlists and series); collection: posts an account saved from any creator into a named public folder (TikTok collections). New values may be added; treat unknown values as playlist.
platform_typestring
The platform's own label, lowercase (mix, collection, playlist, series, podcast, …).
titlestring
Name its owner gave it.
descriptionstring
Description as plain text; null when it has none or the platform shows none (TikTok).
ownerobject
The account that curates it (for a collection, the account that saved the posts, not their authors). Where a platform's curators are not accounts (Apple Music), what it states of them: a name, perhaps a page and a picture, with id and username null, and every field null when it names no one.

What teams build with the Apple Music Playlist Search API.

  • Find editorial playlists for a genre or mood

  • Find the playlists that carry an artist

  • Turn a playlist name into its ID

  • Find live radio streams on Apple Music

Good to know before you build.

  • Results are one kind: kind asks for playlists or stations. A station has platform_type station and a null metrics.post_count, since it holds no list of tracks. The Apple Music Track Search API finds radio episodes with the same query.
  • 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: an item can be missing from one or have another language's title. platform_specific.applemusic.storefront says which store answered.
  • owner.id is null because Apple's curators and station providers aren't artists, the only accounts this platform's endpoints take. A curator's name, page and picture are in owner and its ID in platform_specific.applemusic.curator_id.
  • Apple Music's own playlists name only Apple Music, with no curator link, and a few name no one. A station names its provider at most, so many stations have every owner field null.
  • Some fields are filled only where Apple states them: audio_traits on playlists made for a format such as Spatial Audio, editorial_kind on playlists built around an artist, band and frequency on live stations that state them.
  • 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 Playlist Search API.

More in the API reference.

How much does the Apple Music Playlist Search API cost?
A page of up to 50 playlists and radio stations 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