# apple_music.album

One album in Apple's music catalogue with its tracks: artist, release date, genre, copyright line, and each track's length and preview.

Apple Music album, one of the Apple Music scrapers.

| | |
| --- | --- |
| Id | `apple_music.album` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/apple_music.album/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `album_id` | string | no | Apple's id of the album: the number at the end of its address, e.g. 1708308989. Limit: matches ^[0-9]{1,20}$. |
| `url` | string | no | The album's address instead, e.g. https://music.apple.com/us/album/1989-taylors-version/1708308989; its storefront is the one read. Limit: at most 2048 characters. |
| `country` | string | no | With album_id: the storefront, as a two-letter country code. us when not given. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `album_id` | string | Apple's id of the album: the number at the end of its address. |
| `name` | string | The album's title. |
| `url` | string or null | The album's page on Apple Music, in the storefront read. |
| `artist_name` | string or null | The artist, as credited. |
| `artist_id` | string or null | Apple's id of the artist; null where Apple gives none (a compilation). |
| `artist_url` | string or null | The artist's page on Apple Music. |
| `genre` | string or null | The main genre, as Apple names it in the storefront. |
| `release_date` | string (date-time) or null | The release date, in UTC. |
| `track_count` | integer or null | How many tracks Apple says the album has. |
| `explicit` | boolean or null | True when Apple marks the album explicit. |
| `copyright` | string or null | The copyright line, e.g. "℗ 2023 Taylor Swift". |
| `price` | number or null | The price to buy the album in the storefront; null when it is not sold. |
| `currency` | string or null | The ISO currency code of the prices. |
| `artwork` | string or null | The cover, 100 by 100 pixels. |
| `tracks` | array of object | The album's tracks, in order of disc and number. |
| `tracks[].track_id` | string | Apple's id of the track. |
| `tracks[].name` | string | The track's title. |
| `tracks[].artist_name` | string or null | The artist, as credited on the track. |
| `tracks[].disc_number` | integer or null | The disc the track is on, from 1. |
| `tracks[].track_number` | integer or null | The track's number on its disc. |
| `tracks[].duration_ms` | integer or null | The length in milliseconds. |
| `tracks[].explicit` | boolean or null | True when Apple marks the track explicit. |
| `tracks[].kind` | string or null | What the track is, in Apple's word: song, or music-video. |
| `tracks[].url` | string or null | The track's page on Apple Music. |
| `tracks[].preview_url` | string or null | The address of Apple's audio preview. |
| `tracks[].price` | number or null | The price to buy the track alone; null when it is sold only with the album. |
| `tracks[].streamable` | boolean or null | True when the track can be streamed on Apple Music. |
| `country` | string | The storefront read, as a two-letter country code in lower case. |
| `fetched_at` | string (date-time) | When the album was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
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"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "apple_music.album",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "url": "https://music.apple.com/us/album/abbey-road-remastered/1441164426"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "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"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `tracks`: 18 items, the first 2 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Apple Music scrapers](https://docs.enrichednow.com/results-and-statuses.md#apple-music) are in their own section there.
