Apple Music Search API
Search songs, albums or artists in the Apple Music catalogue: names, release date, duration, genre, artwork and a 30-second preview URL.
live POST /v1/run/apple_music.search $0.00085 per request ($0.85 per 1,000)
Pricing
$0.00085 per request ($0.85 per 1,000), paid from a prepaid USD wallet. The exact amount is on every response as cost_usd; max_cost_usd refuses anything higher; failed calls are refunded.
1,000 requests = $0.85 · 10,000 = $8.50 · 100,000 = $85.00
Get an API key. New API keys come with $0.10 of free credit, no card required (limited to 2 keys per network every 30 days). That covers about 117 requests of apple_music.search. Then add credits (packs from $10). No subscription; failed calls are refunded.
Request examples
curl
curl -s -X POST https://getallapis.com/v1/run/apple_music.search \
-H "Authorization: Bearer $GETALLAPIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"daft punk get lucky","type":"song","limit":5}'Python (requests)
import os, requests
resp = requests.post(
"https://getallapis.com/v1/run/apple_music.search",
headers={"Authorization": f"Bearer {os.environ['GETALLAPIS_API_KEY']}"},
json={'query': 'daft punk get lucky', 'type': 'song', 'limit': 5},
timeout=60,
)
data = resp.json()
print(data["cost_usd"], data["output"])Python SDK (sdk/python/getallapis_client.py)
from getallapis_client import Client
client = Client() # reads GETALLAPIS_API_KEY
result = client.run('apple_music.search', {'query': 'daft punk get lucky', 'type': 'song', 'limit': 5})
print(result['cost_usd'], result['output'])JavaScript / TypeScript (fetch, Node 18+)
const res = await fetch("https://getallapis.com/v1/run/apple_music.search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.GETALLAPIS_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"query": "daft punk get lucky", "type": "song", "limit": 5}),
});
const data = await res.json();
console.log(data.cost_usd, data.output);CLI
getallapis run apple_music.search '{"query":"daft punk get lucky","type":"song","limit":5}'MCP tools/call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "run_endpoint",
"arguments": {
"endpoint": "apple_music.search",
"input": {
"query": "daft punk get lucky",
"type": "song",
"limit": 5
}
}
}
}
Quote first, free: POST /v1/quote/apple_music.search with the same body. Async: send Prefer: respond-async and poll the request.
Input
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
query | string | yes | | Search words |
type | string | no | "song" | What to search |
country | string | no | "us" | Two-letter country code of the store |
limit | integer | no | 25 | Results to return |
Response
A real response from this endpoint, captured 2026-11-22 with the example input above. Lists are cut to 2 items and long text is shortened here; live values change.
{
"ok": true,
"request_id": "req_0000000000000000",
"endpoint": "apple_music.search",
"status": "succeeded",
"cost_usd": 0.00085,
"items": 4,
"latency_ms": 298,
"source": {
"id": "apple",
"name": "Apple iTunes Search API + App Store RSS",
"kind": "official_api",
"demo": false
},
"output": {
"query": "daft punk get lucky",
"type": "song",
"country": "us",
"results": [
{
"track_id": 617154366,
"track": "Get Lucky",
"artist": "Daft Punk, Pharrell Williams & Nile Rodgers",
"artist_id": 5468295,
"album": "Random Access Memories",
"album_id": 617154241,
"genre": "Pop",
"released_at": "2013-04-19T07:00:00Z",
"duration_ms": 369629,
"track_count": 13,
"explicit": false,
"price": 1.29,
"currency": "USD",
"preview_url": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview211/v4/57/a5/85/57a585aa-f1bc-7619-881b-f8a04a5541d5/mzaf_6906185026678279401.plus.aac.p.m4a",
"artwork": "https://is1-ssl.mzstatic.com/image/thumb/Music115/v4/e8/43/5f/e8435ffa-b6b9-b171-40ab-4ff3959ab661/886443919266.jpg/600x600bb.jpg",
"url": "https://music.apple.com/us/album/get-lucky/617154241?i=617154366&uo=4"
},
{
"track_id": 664332744,
"track": "Get Lucky (feat. Pharrell Williams & Nile Rodgers) [Daft Punk Remix]",
"artist": "Daft Punk",
"artist_id": 5468295,
"album": "Get Lucky (feat. Pharrell Williams & Nile Rodgers) [Daft Punk Remix]",
"album_id": 664332737,
"genre": "Pop",
"released_at": "2013-07-03T07:00:00Z",
"duration_ms": 632694,
"track_count": 1,
"explicit": false,
"price": -1,
"currency": "USD",
"preview_url": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview211/v4/ab/f2/3e/abf23e05-e537-bd1f-a07f-0ffb470698d2/mzaf_6053148736670191628.plus.aac.p.m4a",
"artwork": "https://is1-ssl.mzstatic.com/image/thumb/Music/v4/ba/58/0c/ba580cb1-a7e2-4771-e1a9-244f32ba15a4/886444079006.jpg/600x600bb.jpg",
"url": "https://music.apple.com/us/album/get-lucky-feat-pharrell-williams-nile-rodgers-daft/664332737?i=664332744&uo=4"
}
],
"count": 4,
"source": "Apple iTunes Search API; link results back to Apple Music."
}
}
Output fields
Returned in output of the run envelope (ok, request_id, endpoint, status, cost_usd, items, latency_ms, source, output).
| Field | Meaning |
|---|---|
results | track, artist, album, genre, released_at, duration_ms, preview_url, artwork, url. |
count | Results returned. |
Errors
| HTTP | error.code | Charged? | Meaning |
|---|---|---|---|
| 400 / 422 | invalid_input | No | The body does not match the input schema. Use the free quote call to validate first. |
| 401 | unauthorized | No | Missing, revoked or wrong API key. |
| 402 | insufficient_balance / spend_cap_exceeded | No | The wallet or the key's spend limit does not cover the call. |
| 429 | rate_limited | No | Too many requests for this key; wait for Retry-After. |
| 503 | upstream_error | Refunded | The upstream failed or timed out; retry after Retry-After. |
Every error has the same shape: {"ok": false, "request_id": "…", "error": {"code", "message", "retryable"}}. See errors.
Source and latency
Apple iTunes Search API + App Store RSS (official api). Public Apple endpoints; ~20 calls/min; results link back to the App Store. One upstream per endpoint; no automatic failover.
p50 57 ms · p95 57 ms (1 calls, 30 days)
Markdown reference · JSON · Playground · All App Store endpoints · App Store MCP server · Direct vs GetAllAPIs
FAQ
How much does the Apple Music Search API cost?
$0.00085 per request ($0.85 per 1,000), paid from a prepaid USD wallet. There is no subscription. The exact amount is returned as cost_usd on every response, and failed calls are refunded.
Can I try the Apple Music Search API for free?
Yes. A new key comes with $0.10 of free credit, no card required, which covers about 117 requests of this endpoint. Then add credits (packs from $10). The quote call (POST /v1/quote/apple_music.search) is always free.
Where does the data come from?
From Apple iTunes Search API + App Store RSS (official api). Public Apple endpoints; ~20 calls/min; results link back to the App Store. Each endpoint has one upstream; there is no automatic failover.
What is the rate limit?
120 requests per minute per API key by default; a 429 comes with Retry-After. The upstream's own limits also apply.
Can an AI agent call it?
Yes. Connect the MCP server at /mcp and call the run_endpoint tool with endpoint="apple_music.search". Setup for Claude Code, Cursor and VS Code is on the integrations pages.