Apple Music search and lookup

Search Apple Music for songs, albums and artists.

SampleRecorded public data, shortened. Run the tool for a live result.

Albums

Artists

Free, no signup. A limited number of lookups per visitor each hour. Public data only.

How it works

The tool searches Apple Music's public catalogue and lists what it finds, with the cover, the artists, the release date and a link to open it on Apple Music. It does not play anything and needs no Apple login.

Use this in your app

This tool calls GET /v1/apple-music/search. See the reference, or get early access for a key.

curl
curl -G "https://api.socialscrape.io/v1/apple-music/search" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "query=taylor swift"
Python
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,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
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);
}
n8n
{
  "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": {}
}

Questions

Are the links for my country?

Links point at the catalogue the search was made against. In the API you can set the region.

Can I get a full track list for an album?

The album endpoint in the API returns it. This tool lists search results.

Is this tool free?

Yes. No account and no card. Each visitor gets a limited number of lookups an hour, so it stays free for everyone.

How do I get this data in my own app?

Send GET /v1/apple-music/search with your key in the x-api-key header. A request costs 1 credit. A repeat of something fetched recently costs 0 credits, and failed requests are free. See the reference.