Apple Music search API
Public results for artists, albums, songs, playlists, stations and music videos.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
Without type every section is returned, 8 of each; with type, 25 of that kind. Music videos come back as songs with extra.type "music_video", playlists and stations as collections. radio_episode is not offered by Apple's public catalog search and answers invalid_params.
You send query.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/apple-music/search" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'query=taylor swift'import os
import requests
params = {
"query": "taylor swift",
}
res = requests.get(
"https://api.socialscrape.io/v1/apple-music/search",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/apple-music/search");
url.search = new URLSearchParams({
query: "taylor swift",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Apple Music search",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/apple-music/search",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "query",
"value": "taylor swift"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search terms. Also accepted as keyword, q. |
type | string | Kind of result; `all` returns every section. | |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. | |
region | string | Two-letter country code (ISO 3166-1) for results that vary by country. Also accepted as country, geo. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_f3f43a799c553e6ac0c4b212",
"data": {
"object": "list",
"items": [
{
"object": "profile",
"platform": "apple_music",
"id": "159260351",
"handle": null,
"name": "Taylor Swift",
"headline": null,
"url": "https://music.apple.com/us/artist/taylor-swift/159260351",
"kind": "artist",
"bio": null,
"avatar_url": "https://is1-ssl.mzstatic.com/image/thumb/AMCArtistImages221/v4/6d/67/88/6d67888b-9e7f-53af-7853-0f91d6fd2332/ami_U003aidentity_U003a994af5c375f4c3aa96cd6ced4...",
"banner_url": null,
"verified": null,
"is_private": null,
"external_url": null,
"links": null,
"location": null,
"category": "Pop",
"created_at": null,
"stats": {
"followers": null,
"following": null,
"posts": null,
"likes": null,
"views": null
},
"extra": {
"editorial_notes": {
"short": "Favorite Taylor’s artist page for updates on The Life of a Showgirl."
},
"genres": [
"Pop"
]
}
},
{
"object": "album",
"platform": "apple_music",
"id": "6814997249",
"url": "https://music.apple.com/us/album/the-life-of-a-showgirl-the-encore/6814997249",
"title": "The Life of a Showgirl: The Encore",
"artists": [
"Taylor Swift"
],
"released_at": "2026-09-24",
"track_count": 16,
"cover_url": "https://is1-ssl.mzstatic.com/image/thumb/Music221/v4/a0/dd/fd/a0ddfd72-ee9e-f046-6466-a5dbefc696fa/26UM1IM21436.rgb.jpg/1200x1200bb.jpg",
"label": "Taylor Swift",
"tracks": null,
"extra": {
"content_rating": "explicit",
"genres": [
"Pop",
"Music"
],
"is_single": false,
"upc": "00881061651819"
}
}
],
"cursor": "eyJvIjo4fQ",
"has_more": true,
"parent": null
},
"cursor": "eyJvIjo4fQ",
"has_more": true
}Fields
A page of results. Each entry in items is one of these models. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
Song
| Field | Type | Always | Notes |
|---|---|---|---|
object | "song" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
title | string or null | ||
artists | string[] or null | ||
album | string or null | ||
duration_seconds | number or null | ||
cover_url | string or null | ||
preview_url | string or null | ||
released_at | string (ISO 8601 date) or null | ||
isrc | string or null | ||
explicit | boolean or null | ||
is_original | boolean or null | TikTok "original sound" |
Show the other 2 fields
| Field | Type | Always | Notes |
|---|---|---|---|
stats | SongStats | ||
extra | object or null |
Profile
| Field | Type | Always | Notes |
|---|---|---|---|
object | "profile" | ||
platform | Platform | yes | |
id | string or null | ||
handle | string or null | ||
name | string or null | ||
headline | string or null | a short tagline apart from the bio (LinkedIn's headline) | |
url | string or null | ||
kind | "person" or "creator" or "channel" or "page" or "company" or "artist" or "organization" or "shop" or "unknown" | ||
bio | string or null | ||
avatar_url | string or null | ||
banner_url | string or null | ||
verified | boolean or null | ||
is_private | boolean or null | ||
external_url | string or null |
Show the other 6 fields
| Field | Type | Always | Notes |
|---|---|---|---|
links | Link[] or null | ||
location | string or null | ||
category | string or null | ||
created_at | string (ISO 8601 date-time) or null | ||
stats | ProfileStats | ||
extra | object or null |
Collection
| Field | Type | Always | Notes |
|---|---|---|---|
object | "collection" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
kind | "playlist" or "board" or "podcast" or "highlight" or "topic" or "collection" or "unknown" | ||
title | string or null | ||
description | string or null | ||
owner | Author or null | ||
item_count | integer or null | ||
cover_url | string or null | ||
updated_at | string (ISO 8601 date-time) or null | ||
extra | object or null |
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.apple_music.search(...) and the TypeScript client client.appleMusic.search(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.