Better Fetch

Apple Music Scraper

Search Apple Music or retrieve public artist, album, and track catalogue data through Apple's public iTunes Search and Lookup API.

Mediav0.1.0~1 credit/runSource on GitHub

Workspace

Configure

Inputs stay here while results become exportable artifacts.

Start from an example

Numeric Apple artist, album, or track id.

Public Apple Music URL containing a numeric id.

Catalogue operation to run.

Search term for search mode.

Two-letter storefront country code.

Maximum search results or related records.

Sign in and run
~1 credit/run10 runs/minute

Results

Preview, inspect, copy, or export the complete output.

Your result will become an artifact

Run the tool to inspect structured rows, raw JSON, execution details, and downloadable JSON, CSV, and Markdown files.

modecountitemssource_url

Overview

Apple Music Scraper uses Apple's public iTunes Search and Lookup API to normalize music catalogue data without requiring an Apple developer token. It supports artist, album, track, and search modes with ids, names, artwork, genres, dates, prices, preview URLs, and catalogue links when exposed.

Last validated: Jul 15, 2026

Input

idstring

Numeric Apple artist, album, or track id.

urlstring (uri)

Public Apple Music URL containing a numeric id.

mode"artist" | "album" | "track" | "search"

Catalogue operation to run.

querystring

Search term for search mode.

countrystringdefault: "US"

Two-letter storefront country code.

max_resultsintegerdefault: 10

Maximum search results or related records.

Output

modestringrequired

Resolved operation mode

countintegerrequired

Number of normalized records

itemsobject[]required

Normalized public catalogue records

source_urlstringrequired

Apple public catalogue endpoint fetched

Examples

apple-music-artist

{
  "id": "262836961",
  "mode": "artist",
  "max_results": 3
}

apple-music-album

{
  "id": "1544491232",
  "mode": "album",
  "max_results": 3
}

apple-music-track

{
  "id": "1544491233",
  "mode": "track"
}

apple-music-search

{
  "mode": "search",
  "query": "Adele",
  "max_results": 3
}

Use cases

Music catalogue enrichment

Resolve Apple Music ids and links into clean artist, release, artwork, genre, and pricing fields.

Track discovery

Search the public Apple music catalogue and return bounded normalized results.

Agent media research

Give an agent structured public catalogue context without teaching it the iTunes response format.

FAQ

Does this require an Apple developer token?

No. It uses Apple's public iTunes Search and Lookup API.

Can album mode return tracks?

Yes. Album lookup returns the public collection record followed by the bounded track list exposed by Apple.

Are preview URLs included?

They are returned when Apple's public catalogue response exposes one for a track.

Use it anywhere

MCP (Claude, ChatGPT, Codex)

# After connecting https://betterfetch.co/api/mcp, ask your AI to:
1. Call search_tools for "Apple Music Scraper"
2. Call run_tool with:
   name: "apple_music_scraper"
   input: {"id":"262836961","mode":"artist","max_results":3}

REST

curl -sS -X POST "https://betterfetch.co/api/tools/apple_music_scraper/run" \
  -H "Authorization: Bearer bf_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"input": {"id":"262836961","mode":"artist","max_results":3}}'

Run locally

git clone https://github.com/better-fetch/tools/tree/main/tools/apple-music-scraper && cd apple-music-scraper && npm i
BETTER_FETCH_API_KEY=bf_your_key_here npx bf-tool run --input '{"id":"262836961","mode":"artist","max_results":3}'