Scraperize
Apple Music

Apple Music Track API

To get an Apple Music song with its credits, call GET /v1/apple-music/track?id=… with your API key. You get clean JSON back.

GET/v1/apple-music/track
curl "https://api.scraperize.com/v1/apple-music/track?id=1528112365" \
  -H "x-api-key: YOUR_API_KEY"
Cost
1 credit / call
Only successful calls are charged. Errors are free.
Pagination
Single response
Everything comes back in one call.
Caching
0 credits
Set cache_max_age to reuse a recent result for free.
Rate limit
Per team / minute
Over the limit: 429 with a Retry-After header.

Parameters

idOptional
The song's Apple Music id (digits). Required unless url is given. Looked up in the US storefront.
urlOptional
The song's music.apple.com link — a song link or an album track link (…/album/<name>/<album id>?i=<song id>). Required unless id is given. The link's storefront (country) is used.
cache_max_ageOptional
Optional. Return a cached result if one this age or newer exists — served for 0 credits with meta.cached=true and meta.cachedAt. Otherwise a fresh scrape runs (1 credit) and refreshes the cache. Omit to always scrape fresh.One of 5 values.

Send your key in the x-api-key header. Full API reference

Example response

200 OK · application/json
{
  "data": {
    "id": "1528112365",
    "name": "my tears ricochet",
    "url": "https://music.apple.com/us/song/my-tears-ricochet/1528112365",
    "artists": [
      {
        "id": "159260351",
        "name": "Taylor Swift",
        "url": "https://music.apple.com/us/artist/taylor-swift/159260351"
      }
    ],
    "artistName": "Taylor Swift",
    "album": {
      "id": "1528112358",
      "name": "folklore (deluxe version)",
      "url": "https://music.apple.com/us/album/folklore-deluxe-version/1528112358"
    },
    "genres": [
      "Alternative",
      "Music"
    ],
    "releaseDate": "2020-07-24",
    "durationMs": 255894,
    "trackNumber": 5,
    "discNumber": 1,
    "composer": "Taylor Swift",
    "isExplicit": false,
    "isPopular": true,
    "previewUrl": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview221/v4/5c/fa/60/5cfa60f1-aacc-faed-7035-c9fe631fa812/mzaf_1…",
    "artworkUrl": "https://is1-ssl.mzstatic.com/image/thumb/Music115/v4/b5/80/dc/b580dca0-349d-036b-e09b-bd849f6affd8/20UMGIM64216.rgb.jpg/…",
    "lyricsExcerpt": "We gather here\nWe line up, weeping in a sunlit room\nAnd if I'm on fire",
    "credits": {
      "performers": [
        {
          "name": "Taylor Swift",
          "roles": [
            "Lead Vocals"
          ]
        }
      ],
      "composersAndLyricists": [
        {
          "name": "Taylor Swift",
          "roles": [
            "Songwriter"
          ]
        }
      ],
      "productionAndEngineering": [
        {
          "name": "Taylor Swift",
          "roles": [
            "Producer",
            "Executive Producer"
          ]
        }
      ]
    },
    "copyright": "℗ 2020 Taylor Swift",
    "audioBadges": {
      "dolbyAtmos": true,
      "dolbyAudio": false,
      "lossless": true,
      "hiResLossless": false,
      "digitalMaster": true
    },
    "moreByArtist": [
      {
        "kind": "album",
        "id": "1440933849",
        "name": "reputation",
        "headline": null,
        "subtitle": null,
        "url": "https://music.apple.com/us/album/reputation/1440933849",
        "artworkUrl": "https://is1-ssl.mzstatic.com/image/thumb/Music221/v4/eb/e6/06/ebe606da-e00f-82d3-47f3-b79904eed541/17UM1IM24651.rgb.jpg/…",
        "isExplicit": false
      }
    ],
    "fetchedAt": "2026-11-10T16:02:29.607Z"
  },
  "meta": {
    "requestId": "req_8f0c2b7e-1a2b-4c3d-9e8f-0a1b2c3d4e5f",
    "creditsCharged": 1,
    "creditsRemaining": 4999,
    "cached": false
  }
}

A real response, shortened to one item per list.

More Apple Music endpoints

FAQ

Apple Music Track API questions

How much does the Apple Music Track API cost?

1 credit per successful call. Errors and cached results are free, and new accounts start with 100 free credits, no card required. See pricing.

Do I need a Apple Music account or API key?

No. You only need a Scraperize API key, sent in the x-api-key header. Scraperize returns publicly available data. No Apple Music login or developer app is needed.

How fresh is the data?

Each call fetches the data live. To trade freshness for cost, pass cache_max_age (e.g. 1h, 1d) to get a recent cached result instantly for 0 credits.

Where are the full parameters and response fields?

In the API reference, with every parameter, field and error.

Try the Apple Music Track API

Grab your key and 100 free credits, no card required, and run this call in minutes.