# Spotify Album Intelligence Scraper (`w3crawler/spotify-album-intelligence-scraper`) Actor

Collect public Spotify album metadata and optional track listings, including labels, genres, copyrights, and artists.

- **URL**: https://apify.com/w3crawler/spotify-album-intelligence-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 albums

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Spotify Album Intelligence Scraper

Extract **public Spotify album metadata** and the rendered track listing from `open.spotify.com` album pages without login, official Web API credentials, or audio downloads. Each saved album record can include album type, release date, total tracks, aggregate duration, copyright notice, artist links, artwork, related album cards, and bounded track rows with position, duration, explicit flag, and availability.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/spotify-album-intelligence-scraper) and select **Try for free** or open the **Input** tab.
2. Add one to 25 public album URLs or 22-character album IDs to `albumUrls`.
3. Leave `includeTracks` enabled if you need the rendered song rows; lower `maxTracks` for a lighter first run.
4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check the outcome and counts.

### Input

`albumUrls` is required. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `albumUrls` | string array | Required | Not supplied | One to 25 public `open.spotify.com/album/...` URLs or 22-character Spotify album IDs. |
| `enrichmentMode` | string enum | Optional | `standard` | `basic` skips track detail, `standard` keeps the current bounded track listing, `deep` raises the track bound to 500. Explicit `includeTracks`/`maxTracks` values still override the mode. |
| `includeTracks` | boolean | Optional | `true` | Keep the public track rows rendered on each album page, including rows Spotify marks unavailable. |
| `maxTracks` | integer | Optional | `100` | Maximum rendered track rows retained per album, 1–500. |
| `requestDelayMs` | integer | Optional | `1000` | Polite delay before each public browser navigation, 0–30000 ms. |
| `maxRequestRetries` | integer | Optional | `1` | Finite retry bound for one browser request, 0–3. Access challenges are not retried indefinitely. |
| `timeoutSecs` | integer | Optional | `45` | Timeout for each bounded public page request, 10–90 seconds. |
| `maxResponseBytes` | integer | Optional | `3000000` | Hard upper bound for one public page response, 100000–5000000 bytes. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy":false}` | Optional Apify Proxy settings, wired to browser requests when enabled. It does not bypass access controls. |

Full default input (supply `albumUrls` before running):

```json
{
  "enrichmentMode": "standard",
  "includeTracks": true,
  "maxTracks": 100,
  "requestDelayMs": 1000,
  "maxRequestRetries": 1,
  "timeoutSecs": 45,
  "maxResponseBytes": 3000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

#### Enrichment modes

`enrichmentMode` is an additive convenience input, not a new data source. It supplies defaults for the existing detail flags; an explicitly supplied `includeTracks` or `maxTracks` always wins. Those two fields intentionally have no platform-level schema default, so the mode's effective default is applied at runtime.

| Mode | `includeTracks` default | `maxTracks` default | Effect |
| --- | --- | --- | --- |
| `basic` | `false` | 100 | Fast album metadata only; no track rows or scroll passes. |
| `standard` | `true` | 100 | Current behaviour: bounded rendered track listing. |
| `deep` | `true` | 500 | More scroll passes to capture a fuller public track listing. Tracks the page does not render stay unreported; `trackListingStatus` remains honest. |

The Actor reads anonymous, public Spotify pages in a single browser session. It does not log in, call the official Web API, capture Web Player tokens, download audio, or solve access challenges.

### Output

The dataset contains one row per saved album. Optional source values are omitted rather than guessed, and no diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable key in the form `spotify_album_<albumId>`. |
| `recordType` | string | Always | Row discriminator; always `album`. |
| `albumId` | string | Always | 22-character public Spotify album ID. |
| `name` | string | Always | Album title rendered on the public page. |
| `description` | string | When Spotify supplies a description | Public structured album description. It was not present in the saved run. |
| `spotifyUrl` | string | Always | Canonical `https://open.spotify.com/album/<id>` URL. |
| `imageUrl` | string | When artwork is exposed | Primary album artwork URL. |
| `images` | object array | When artwork is exposed | Bounded Spotify-hosted artwork, excluding UI and cookie images. |
| `albumType` | string | When the page exposes it | Album classification such as album, single, compilation, or EP. |
| `releaseDate` | string | When the page exposes it | Release date or year as displayed by Spotify. |
| `totalTracks` | integer | When the page exposes it | Declared song count, at least 0. |
| `albumDuration` | string | When the page renders it | Aggregate album duration text. |
| `copyrightNotice` | string | When the page shows one | Public ℗ or © notice below the track listing. |
| `artists` | object array | When artist links are visible | Album artist links with `id`, `name`, and `url`. |
| `artistNames` | string | When artist names are visible | Comma-separated album artist names. |
| `relatedAlbums` | object array | When More by cards are rendered | Bounded related album cards with `albumId`, `name`, `url`, and `imageUrl`. |
| `tracks` | object array | When `includeTracks` is true; may be empty | Bounded rendered track rows. Unavailable rows can keep title, position, artists, duration, and availability without a track ID. |
| `tracksCount` | integer | Always | Number of track rows retained after the `maxTracks` bound. |
| `tracksAvailable` | boolean | Always | Whether at least one track row was retained when tracks were requested. |
| `trackListingStatus` | string | Always | `not_requested`, `unavailable_public_page`, `partial_rendered`, or `available`. |
| `includeTracks` | boolean | Always | Input setting used for this album record. |
| `sourceUrl` | string | Always | Exact public page URL that produced the row. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |

Each `tracks` entry contains `position`, `trackId`, `name`, `url`, `artists`, `artistNames`, `durationFormatted`, `explicit`, and `availability` when Spotify renders them. Each `images` entry contains `url`, `width`, `height`, and optionally `alt`.

#### Full JSON output

The example below is a real saved row from the 2026-10-25 verification run. The `images`, `relatedAlbums`, and `tracks` arrays are shortened; all scalar values are unchanged.

```json
{
  "recordId": "spotify_album_4aawyAB9vmqN3uQ7FjRGTy",
  "recordType": "album",
  "albumId": "4aawyAB9vmqN3uQ7FjRGTy",
  "name": "Global Warming",
  "spotifyUrl": "https://open.spotify.com/album/4aawyAB9vmqN3uQ7FjRGTy",
  "imageUrl": "https://i.scdn.co/image/ab67616d0000e1a32c5b24ecfa39523a75c993c4",
  "images": [
    {
      "url": "https://i.scdn.co/image/ab67616d0000e1a32c5b24ecfa39523a75c993c4",
      "width": 232,
      "height": 232
    },
    {
      "url": "https://i.scdn.co/image/ab6761610000101fe75db75543a89589514259b2",
      "width": 160,
      "height": 160,
      "alt": "Pitbull"
    },
    {
      "url": "https://i.scdn.co/image/ab67616d00001e021dc7483a9fcfce54822a2f19",
      "width": 300,
      "height": 300
    }
  ],
  "albumType": "album",
  "releaseDate": "November 16, 2012",
  "totalTracks": 18,
  "albumDuration": "1 hr 6 min",
  "copyrightNotice": "℗ 2012 RCA Records, a division of Sony Music Entertainment",
  "artists": [
    {
      "id": "0TnOYISbd1XYRBk9myaseg",
      "name": "Pitbull",
      "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
    }
  ],
  "artistNames": "Pitbull",
  "relatedAlbums": [
    {
      "albumId": "4rG0MhkU6UojACJxkMHIXB",
      "name": "Planet Pit (Deluxe Version)",
      "url": "https://open.spotify.com/album/4rG0MhkU6UojACJxkMHIXB",
      "imageUrl": "https://i.scdn.co/image/ab67616d00001e021dc7483a9fcfce54822a2f19"
    },
    {
      "albumId": "4EUf4YyNjuXypWY6W5wEDm",
      "name": "Globalization",
      "url": "https://open.spotify.com/album/4EUf4YyNjuXypWY6W5wEDm",
      "imageUrl": "https://i.scdn.co/image/ab67616d00001e02e6efeff81a318670a292090f"
    },
    {
      "albumId": "2F7tejLHzTqFq2XLol9ZGy",
      "name": "Global Warming: Meltdown (Deluxe Version)",
      "url": "https://open.spotify.com/album/2F7tejLHzTqFq2XLol9ZGy",
      "imageUrl": "https://i.scdn.co/image/ab67616d00001e022ffc2c580b6595a3e675a730"
    }
  ],
  "tracks": [
    {
      "position": 1,
      "trackId": "292kifgxa7S78AuzA5NMpL",
      "name": "Global Warming (feat. Sensato)",
      "url": "https://open.spotify.com/track/292kifgxa7S78AuzA5NMpL",
      "artists": [
        {
          "id": "0TnOYISbd1XYRBk9myaseg",
          "name": "Pitbull",
          "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
        },
        {
          "id": "7iJrDbKM5fEkGdm5kpjFzS",
          "name": "Sensato",
          "url": "https://open.spotify.com/artist/7iJrDbKM5fEkGdm5kpjFzS"
        }
      ],
      "artistNames": "Pitbull, Sensato",
      "durationFormatted": "1:25",
      "explicit": true,
      "availability": "available"
    },
    {
      "position": 2,
      "trackId": "3Tu7uWBecS6GsLsL8UONKn",
      "name": "Don't Stop the Party (feat. TJR)",
      "url": "https://open.spotify.com/track/3Tu7uWBecS6GsLsL8UONKn",
      "artists": [
        {
          "id": "0TnOYISbd1XYRBk9myaseg",
          "name": "Pitbull",
          "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
        },
        {
          "id": "2L8yW8GIoirHEdeW4bWQXq",
          "name": "TJR",
          "url": "https://open.spotify.com/artist/2L8yW8GIoirHEdeW4bWQXq"
        }
      ],
      "artistNames": "Pitbull, TJR",
      "durationFormatted": "3:26",
      "availability": "available"
    },
    {
      "position": 3,
      "trackId": "0Hf4aIJpsN4Os2f0y0VqWl",
      "name": "Feel This Moment (feat. Christina Aguilera)",
      "url": "https://open.spotify.com/track/0Hf4aIJpsN4Os2f0y0VqWl",
      "artists": [
        {
          "id": "0TnOYISbd1XYRBk9myaseg",
          "name": "Pitbull",
          "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
        },
        {
          "id": "1l7ZsJRRS8wlW3WfJfPfNS",
          "name": "Christina Aguilera",
          "url": "https://open.spotify.com/artist/1l7ZsJRRS8wlW3WfJfPfNS"
        }
      ],
      "artistNames": "Pitbull, Christina Aguilera",
      "durationFormatted": "3:49",
      "availability": "available"
    }
  ],
  "tracksCount": 18,
  "tracksAvailable": true,
  "trackListingStatus": "available",
  "includeTracks": true,
  "sourceUrl": "https://open.spotify.com/album/4aawyAB9vmqN3uQ7FjRGTy",
  "scrapedAt": "2026-10-25T20:55:09.683Z"
}
```

### Run summary

**Run summary** is stored in the run's key-value store under `OUTPUT_SUMMARY`; the same object is also written to `OUTPUT` for compatibility. It reports the run outcome, settings, and counts for saved albums.

| Field | Meaning |
| --- | --- |
| `recordType` | Always `runSummary`. |
| `status` | Actor outcome: `SUCCEEDED` or `FAILED`. |
| `requestedAlbumCount` | Album inputs requested. |
| `albumRecordCount` | Album records produced. |
| `recordsStored` | Album rows saved to the dataset. |
| `errorRecordCount` | Album pages that failed extraction. |
| `enrichmentMode` | Enrichment mode used for the run. |
| `includeTracks` | Track-listing setting used for the run. |
| `maxTracks` | Per-album track-row bound used for the run. |
| `authenticationMode` | Always `anonymous_public_page`. |
| `startedAt` | Run start time, in ISO UTC. |
| `completedAt` | Time the summary was written, in ISO UTC. |
| `durationMs` | Run duration in milliseconds. |
| `runStatus` | Canonical run status; matches `status`. |
| `dataStatus` | Completeness of saved rows: `COMPLETE`, `PARTIAL`, `NO_RESULTS`, or `FAILED`. |
| `failureCount` | Operational failures and failed dataset writes. |
| `outputWriteFailureCount` | Summary or optional key-value writes that failed. |

| Status | Data status | Meaning |
| --- | --- | --- |
| `SUCCEEDED` | `COMPLETE` | Every requested album produced a row without an extraction problem. |
| `SUCCEEDED` | `PARTIAL` | At least one row was saved, but another album or output write failed. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The run completed cleanly and produced no album rows. |
| `FAILED` | `FAILED` | The run failed before any usable album row was saved. |

Example `OUTPUT_SUMMARY` from the saved run (also written to `OUTPUT`). This verification run used `maxTracks: 25`; the input default remains `100`.

```json
{
  "recordType": "runSummary",
  "status": "SUCCEEDED",
  "requestedAlbumCount": 1,
  "albumRecordCount": 1,
  "recordsStored": 1,
  "errorRecordCount": 0,
  "includeTracks": true,
  "maxTracks": 25,
  "authenticationMode": "anonymous_public_page",
  "startedAt": "2026-10-25T20:55:01.535Z",
  "completedAt": "2026-10-25T20:55:10.073Z",
  "durationMs": 8538,
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "failureCount": 0,
  "outputWriteFailureCount": 0
}
```

### Coverage and limitations

The Actor captures only what the anonymous public album page renders. Track tables are virtualized, so the Actor scrolls a bounded number of times and stops at `maxTracks`; `trackListingStatus` becomes `partial_rendered` when fewer rows than the declared total were observed. Rows Spotify marks unavailable may have no track ID or URL. Descriptions, artwork, related albums, copyright text, and artist links are page-dependent and are omitted when Spotify does not expose them.

The page locale can affect rendered text, release dates, and availability. The Actor does not crawl the whole discography, follow every track, access private or region-locked content, or recover data Spotify no longer renders. Failed album pages are counted in `OUTPUT_SUMMARY` and logged; they are never written as dataset rows.

### Usage and support

Apify compute and storage costs vary with browser time, the number of albums, scroll passes, and track rows retained. Start with a few albums and a modest `maxTracks`, inspect the dataset and run summary, then scale gradually. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/spotify-album-intelligence-scraper/issues) to report a problem. Include the run ID, the input used, and the `OUTPUT_SUMMARY`; do not include tokens, cookies, or private data. This Actor is an independent community tool and is not affiliated with, endorsed by, or sponsored by Spotify. Use it only for public data and in accordance with Spotify's terms, robots guidance, and applicable law.

# Changelog

This Actor's version history is a separate document: https://apify.com/w3crawler/spotify-album-intelligence-scraper/changelog.md

# Actor input Schema

## `albumUrls` (type: `array`):

One to 25 public open.spotify.com album URLs or 22-character Spotify album IDs.

## `enrichmentMode` (type: `string`):

basic skips track detail for the fastest trustworthy album record; standard keeps the current bounded track listing; deep raises the per-album track bound to 500 while still fetching only what the public page renders. Explicit includeTracks/maxTracks values override the mode.

## `includeTracks` (type: `boolean`):

When true, keep the public track rows currently rendered on each album page, including rows that Spotify marks unavailable. When omitted, enrichmentMode supplies the effective default.

## `maxTracks` (type: `integer`):

Bound for rendered track rows retained per album. When omitted, enrichmentMode supplies the effective default.

## `requestDelayMs` (type: `integer`):

Polite delay before each public browser navigation.

## `maxRequestRetries` (type: `integer`):

Finite retry bound for an individual browser request. Access challenges are not retried indefinitely.

## `timeoutSecs` (type: `integer`):

Timeout for each bounded public page request.

## `maxResponseBytes` (type: `integer`):

Hard upper bound for one public page response.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy configuration. It is wired to browser requests when useApifyProxy is true; it does not bypass access controls.

## Actor input object example

```json
{
  "albumUrls": [
    "https://open.spotify.com/album/4aawyAB9vmqN3uQ7FjRGTy"
  ],
  "enrichmentMode": "standard",
  "requestDelayMs": 1000,
  "maxRequestRetries": 1,
  "timeoutSecs": 45,
  "maxResponseBytes": 3000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

Album success/error counts, settings, and diagnostics stored under OUTPUT_SUMMARY.

## `compatibilitySummary` (type: `string`):

No description

## `sourceMetadata` (type: `string`):

Anonymous public-page access policy and secret-safety declarations.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "albumUrls": [
        "https://open.spotify.com/album/4aawyAB9vmqN3uQ7FjRGTy"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/spotify-album-intelligence-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "albumUrls": ["https://open.spotify.com/album/4aawyAB9vmqN3uQ7FjRGTy"] }

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/spotify-album-intelligence-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "albumUrls": [
    "https://open.spotify.com/album/4aawyAB9vmqN3uQ7FjRGTy"
  ]
}' |
apify call w3crawler/spotify-album-intelligence-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/spotify-album-intelligence-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/zhppBbtkpeQuga673/builds/oE898giTEg3jLzAH6/openapi.json
