Skip to the content

Scraper API

Apple Music

apple_music.albumAvailable

Apple Music album

The album with its tracks: artist, release date, genre, copyright line and cover, and each track's number, length, preview and page address.

Give it an album's id or its address on Apple Music, and a country.

1 unit a run, for runs that return data. Runs that fail cost nothing. How units work

Counted
1 unit a run
Inputs
3
Record
17 fields
A run takes
up to 5 minutes
Records kept
7 days
Measured
its success, on the status page

POST/v1/scrapers/apple_music.album/runs

{
"input": {
"url": "https://music.apple.com/us/album/abbey-road-remastered/1441164426"
}
}

sent, and answered

a record of the run17 fields

{
album_id: "1441164426"
name: "Abbey Road (Remastered)"
url: "https://music.apple.com/us/album/abbey-road-remastered/1441164426"
artist_name: "The Beatles"
artist_id: "136975"
artist_url: "https://music.apple.com/us/artist/the-beatles/136975"
genre: "Rock"
release_date: "1969-09-26T07:00:00Z"
track_count: 19
… 8 more fields

ok1 unit a run

A record this scraper returned for this input. The first 9 of its 17 fields are set down here; the whole record is below.

music.apple.com
The page Apple Music album reads, as a browser shows it
The page this scraper reads, photographed in a browser on 19 November 2026. It belongs to its publisher, who has no part in this service.

What it is used for

Complete a music catalogue
Title, artist, genre, release date, cover and the tracks in order of disc and number, each with its length and preview, keyed by Apple's album id.
Check who holds the rights
The copyright line names the holder of a recording. Read it for the albums you license or clear, with the release date and the artist beside it.
Compare storefronts
Read one album in several countries and set its price, its currency and the genre Apple files it under side by side.

What you send

An album's id or its address on Apple Music, and a country. These are its 3 inputs, as its schema has them.

album_idstring Optional
Apple's id of the album: the number at the end of its address, e.g. 1708308989.
urlstring Optional
The album's address instead, e.g. https://music.apple.com/us/album/1989-taylors-version/1708308989; its storefront is the one read.
countrystring Optional
With album_id: the storefront, as a two-letter country code. us when not given.

A request, ready to send

It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.

# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/apple_music.album/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://music.apple.com/us/album/abbey-road-remastered/1441164426"}}'

# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
from enrichednow import EnrichedNow

client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY

# Start a run, wait for it to end, and get its records
result = client.scrape("apple_music.album", {
    "url": "https://music.apple.com/us/album/abbey-road-remastered/1441164426",
})
print(result.run.id, result.run.status, result.run.record_count)

# Read its records: pages are fetched as you go
for record in result.records:
    print(record)

Install it with pip install enrichednow, then save as run.py and run python3 run.py

import EnrichedNow from "enrichednow";

const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY

// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("apple_music.album", {
  url: "https://music.apple.com/us/album/abbey-road-remastered/1441164426",
});
console.log(run.id, run.status, run.record_count);

// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);

Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

package main

import (
	"context"
	"fmt"
	"log"
	"time"

	enrichednow "github.com/enrichednow/enrichednow-go"
)

func main() {
	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
	defer cancel()

	// Start a run, wait for it to end, and get its records
	run, records, err := client.Scrape(ctx, "apple_music.album", map[string]any{"url": "https://music.apple.com/us/album/abbey-road-remastered/1441164426"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(run.ID, run.Status, run.RecordCount)

	// Read its records: pages are fetched as you go
	for records.Next() {
		fmt.Println(string(records.Current()))
	}
	if err := records.Err(); err != nil {
		log.Fatal(err)
	}
}

Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;

public class Run {
    public static void main(String[] args) {
        EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY

        // Start a run, wait for it to end, and get its records
        ScrapeResult result = client.scrape("apple_music.album", Map.of("url", "https://music.apple.com/us/album/abbey-road-remastered/1441164426"));
        System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());

        // Read its records: pages are fetched as you go
        for (Map<String, Object> record : result.records()) {
            System.out.println(record);
        }
    }
}

Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

enrichednow run apple_music.album --input url=https://music.apple.com/us/album/abbey-road-remastered/1441164426

Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

What comes back

The album with its tracks: artist, release date, genre, copyright line and cover, and each track's number, length, preview and page address. A record has 17 fields. One we could not read is null, never an empty string or a zero.

A record apple_music.album returned
{
  "album_id": "1441164426",
  "name": "Abbey Road (Remastered)",
  "url": "https://music.apple.com/us/album/abbey-road-remastered/1441164426",
  "artist_name": "The Beatles",
  "artist_id": "136975",
  "artist_url": "https://music.apple.com/us/artist/the-beatles/136975",
  "genre": "Rock",
  "release_date": "1969-09-26T07:00:00Z",
  "track_count": 19,
  "explicit": false,
  "copyright": "This Compilation ℗ 2009 Calderstone Productions Limited (a division of Universal Music Group)",
  "price": 12.99,
  "currency": "USD",
  "artwork": "https://is1-ssl.mzstatic.com/image/thumb/Music112/v4/df/db/61/dfdb615d-47f8-06e9-9533-b96daccc029f/18UMGIM31076.rgb.jpg/100x100bb.jpg",
  "tracks": [
    {
      "track_id": "1441164430",
      "name": "Come Together",
      "artist_name": "The Beatles",
      "disc_number": 1,
      "track_number": 1,
      "duration_ms": 258947,
      "explicit": false,
      "kind": "song",
      "url": "https://music.apple.com/us/album/come-together/1441164426?i=1441164430",
      "preview_url": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview221/v4/26/65/7c/26657c20-9fec-56d6-55ff-61a76996f19b/mzaf_6128091568231335556.plus.aac.p.m4a",
      "price": 1.29,
      "streamable": true
    },
    {
      "track_id": "1441164582",
      "name": "Something",
      "artist_name": "The Beatles",
      "disc_number": 1,
      "track_number": 2,
      "duration_ms": 182293,
      "explicit": false,
      "kind": "song",
      "url": "https://music.apple.com/us/album/something/1441164426?i=1441164582",
      "preview_url": "https://audio-ssl.itunes.apple.com/itunes-assets/AudioPreview221/v4/5c/a4/c5/5ca4c55e-d3de-9945-b72f-7dd4874cf1ff/mzaf_4930102790747210494.plus.aac.p.m4a",
      "price": 1.29,
      "streamable": true
    }
  ],
  "country": "us",
  "fetched_at": "2026-11-19T18:07:38.414488Z"
}

The scraper returned this record for the input above, reading a saved copy of the page, not the live site.

Values shortened for this page: tracks: 18 items, the first 2 shown.

The fields of a record

album_idstring
Apple's id of the album: the number at the end of its address.
namestring
The album's title.
urlstring or null
The album's page on Apple Music, in the storefront read.
artist_namestring or null
The artist, as credited.
artist_idstring or null
Apple's id of the artist; null where Apple gives none (a compilation).
artist_urlstring or null
The artist's page on Apple Music.
genrestring or null
The main genre, as Apple names it in the storefront.
release_datedatetime or null
The release date, in UTC.
track_countinteger or null
How many tracks Apple says the album has.
explicitboolean or null
True when Apple marks the album explicit.
copyrightstring or null
The copyright line, e.g. "℗ 2023 Taylor Swift".
pricenumber or null
The price to buy the album in the storefront; null when it is not sold.
currencystring or null
The ISO currency code of the prices.
artworkstring or null
The cover, 100 by 100 pixels.
trackslist of objects
The album's tracks, in order of disc and number.Each holds track_id, name, artist_name, disc_number, track_number, duration_ms, explicit, kind, url, preview_url, price, streamable.
countrystring
The storefront read, as a two-letter country code in lower case.
fetched_atdatetime
When the album was read, in UTC.

The whole schema, in its reference

Units and limits

Counted per request
Billed per request: a run that returns data costs 1 unit, however many records it returns.
A miss costs nothing
A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
What bounds a run
A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.

What it does not do

  • One run reads one album in one country.
  • An album Apple does not offer in that country ends as failed with not_found, and costs nothing.
  • Editorial notes, lyrics and credits are not returned.

Scraper API pricing: how units workThe five ways a run ends

Questions

What does Apple Music album return?

The album with its tracks: artist, release date, genre, copyright line and cover, and each track's number, length, preview and page address. A record has 17 fields, among them album_id, name, url, artist_name, artist_id and artist_url. A value that could not be read is null, never an empty string or a zero.

What do I send?

An album's id or its address on Apple Music, and a country. Optional: album_id, url and country.

How is it counted?

Billed per request: a run that returns data costs 1 unit, however many records it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.

What does it not do?

One run reads one album in one country. An album Apple does not offer in that country ends as failed with not_found, and costs nothing. Editorial notes, lyrics and credits are not returned.

How long are the records kept, and in what format do they come?

Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.

Can an AI assistant call it?

Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id apple_music.album and the same input. It costs what the same API call costs.

Apple Music

Songs, albums and artists in Apple's music catalogue, by country, as Apple publishes them without a sign-in.

  • Apple Music search

    apple_music.search

    A search query, what to look for (songs, albums or artists), and a country. The matching songs, albums or artists: titles, artists, albums, genres, release dates, lengths, prices, preview and page addresses.

Apple Music on the line-up

Where
Worldwide

Run it on an input of your own.

Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.