# Spotify Artist Intelligence Scraper (`w3crawler/spotify-artist-intelligence-scraper`) Actor

Extract public Spotify artist profiles with optional top tracks, discography, related artists, genres, and listener statistics.

- **URL**: https://apify.com/w3crawler/spotify-artist-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 artists

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 Artist Intelligence Scraper

Extract **public Spotify artist profile facts** and visible catalog relationships from `open.spotify.com` artist pages without login, official Web API credentials, or audio downloads. Saved records cover artist identity, monthly listeners, global rank, About text, popular tracks, discography cards, Fans also like cards, and the market context actually observed by the browser.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/spotify-artist-intelligence-scraper) and select **Try for free** or open the **Input** tab.
2. Add one to 25 public artist URLs or 22-character artist IDs to `artistUrls`.
3. Choose which shelves you need with `includeTopTracks`, `includeAlbums`, and `includeRelatedArtists`; keep the default limits for the 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

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

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `artistUrls` | string array | Required | Not supplied | One to 25 public `open.spotify.com/artist/...` URLs or 22-character Spotify artist IDs. |
| `market` | string | Optional | Not supplied | Two-letter market label retained as provenance. The anonymous public page is not forced to use it; `marketApplied` reports this explicitly. |
| `includeTopTracks` | boolean | Optional | `true` | Keep bounded Popular track rows rendered on the public page. |
| `includeAlbums` | boolean | Optional | `true` | Keep bounded Discography/Popular releases cards. |
| `includeRelatedArtists` | boolean | Optional | `true` | Keep bounded Fans also like cards. |
| `maxAlbums` | integer | Optional | `20` | Maximum discography cards per artist, 1–50. |
| `maxRelatedArtists` | integer | Optional | `20` | Maximum Fans also like cards per artist, 1–50. |
| `requestDelayMs` | integer | Optional | `1000` | Polite delay before each browser navigation, 0–30000 ms. |
| `timeoutSecs` | integer | Optional | `45` | Timeout for each public page, 10–90 seconds. |
| `maxResponseBytes` | integer | Optional | `3000000` | Hard initial response-body limit, 100000–5000000 bytes. |
| `proxyConfiguration` | object | Optional | `{"useApifyProxy":false}` | Optional Apify Proxy settings; direct browsing is the default. |

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

```json
{
  "includeTopTracks": true,
  "includeAlbums": true,
  "includeRelatedArtists": true,
  "maxAlbums": 20,
  "maxRelatedArtists": 20,
  "requestDelayMs": 1000,
  "timeoutSecs": 45,
  "maxResponseBytes": 3000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

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

### Output

The dataset contains one row per artist. Optional values are omitted rather than inferred, and no diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `recordId` | string | Always | Stable key in the form `spotify_artist_<artistId>`. |
| `recordType` | string | Always | Row discriminator; always `artist`. |
| `scrapedAt` | string | Always | Time the row was saved, in ISO UTC. |
| `artistId` | string | Always | 22-character public Spotify artist ID. |
| `name` | string | Always | Verified artist name rendered on the page. |
| `biography` | string | When About text is rendered | Public About text, which can include the rendered rank and listener line. |
| `spotifyUrl` | string | Always | Canonical `https://open.spotify.com/artist/<id>` URL. |
| `imageUrl` | string | When `og:image` is exposed | Artist artwork URL. It was not present in the saved run. |
| `monthlyListeners` | integer | When rendered | Public monthly-listener count, at least 0. |
| `worldRank` | integer | When rendered | Public global rank, at least 0. |
| `topTracks` | object array | When `includeTopTracks` is true; may be empty | Bounded Popular track rows. |
| `topTracksCount` | integer | Always | Number of retained popular track rows; zero when not requested or none are rendered. |
| `topTracksStatus` | string | Always | `public_preview`, `unavailable_public_page`, or `not_requested`. |
| `albums` | object array | When `includeAlbums` is true; may be empty | Bounded discography cards. |
| `albumsCount` | integer | Always | Number of retained discography cards; zero when not requested or none are rendered. |
| `albumsStatus` | string | Always | `public_preview`, `unavailable_public_page`, or `not_requested`. |
| `relatedArtists` | object array | When `includeRelatedArtists` is true; may be empty | Bounded Fans also like cards. |
| `relatedArtistsCount` | integer | Always | Number of retained related-artist cards; zero when not requested or none are rendered. |
| `relatedArtistsStatus` | string | Always | `public_preview`, `unavailable_public_page`, or `not_requested`. |
| `requestedMarket` | string | When `market` is supplied | Market context supplied in the input. It was not present in the saved run. |
| `marketObserved` | string | When the browser exposes a region | Region observed from the rendered document or browser locale. |
| `marketApplied` | boolean | Always | Always `false`; the anonymous public page is not forced to a market. |
| `marketNotice` | string | Always | Disclosure explaining how market context was handled. |
| `includeTopTracks` | boolean | Always | Whether popular tracks were requested. |
| `includeAlbums` | boolean | Always | Whether discography cards were requested. |
| `includeRelatedArtists` | boolean | Always | Whether related artists were requested. |
| `sourceUrl` | string | Always | Exact public page URL that produced the row. Observed field not declared in `dataset_schema.json`. |

Each `topTracks` entry contains `position`, `trackId`, `name`, `url`, `artists`, `artistNames`, `playCount`, and `durationFormatted` when rendered. Each `albums` or `relatedArtists` entry contains `id`, `name`, `url`, `imageUrl`, and `subtitle` when rendered.

#### Full JSON output

The example below is a real saved row from the 2026-10-25 verification run. `biography` and the three card arrays are shortened; scalar values are unchanged.

```json
{
  "recordId": "spotify_artist_0TnOYISbd1XYRBk9myaseg",
  "recordType": "artist",
  "scrapedAt": "2026-10-25T20:56:46.725Z",
  "artistId": "0TnOYISbd1XYRBk9myaseg",
  "name": "Pitbull",
  "biography": "#18 in the world 77,211,224 monthly listeners Armando Christian Pérez, globally known as Pitbull, invites disruption on a global scale as a GRAMMY® Award-winning independent international superstar, education ambassador, entrepreneur, and motivational speaker. With billions of audio streams and video views, along with hundreds of gold and platinum certifications, his career stands as one of the mo…",
  "spotifyUrl": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg",
  "monthlyListeners": 77211224,
  "worldRank": 18,
  "topTracks": [
    {
      "position": 1,
      "trackId": "3C0nOe05EIt1390bVABLyN",
      "name": "On The Floor",
      "url": "https://open.spotify.com/track/3C0nOe05EIt1390bVABLyN",
      "artists": [
        {
          "id": "2DlGxzQSjYe5N6G9nkYghR",
          "name": "Jennifer Lopez",
          "url": "https://open.spotify.com/artist/2DlGxzQSjYe5N6G9nkYghR"
        },
        {
          "id": "0TnOYISbd1XYRBk9myaseg",
          "name": "Pitbull",
          "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
        }
      ],
      "artistNames": "Jennifer Lopez, Pitbull",
      "playCount": 1313346286,
      "durationFormatted": "4:44"
    },
    {
      "position": 2,
      "trackId": "4QNpBfC0zvjKqPJcyqBy9W",
      "name": "Give Me Everything (feat. Nayer)",
      "url": "https://open.spotify.com/track/4QNpBfC0zvjKqPJcyqBy9W",
      "artists": [
        {
          "id": "0TnOYISbd1XYRBk9myaseg",
          "name": "Pitbull",
          "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
        },
        {
          "id": "4D75GcNG95ebPtNvoNVXhz",
          "name": "AFROJACK",
          "url": "https://open.spotify.com/artist/4D75GcNG95ebPtNvoNVXhz"
        },
        {
          "id": "21E3waRsmPlU7jZsS13rcj",
          "name": "Ne-Yo",
          "url": "https://open.spotify.com/artist/21E3waRsmPlU7jZsS13rcj"
        },
        {
          "id": "1ruutHJcECI7cos2n5TqpO",
          "name": "Nayer",
          "url": "https://open.spotify.com/artist/1ruutHJcECI7cos2n5TqpO"
        }
      ],
      "artistNames": "Pitbull, AFROJACK, Ne-Yo, Nayer",
      "playCount": 2332941754,
      "durationFormatted": "4:12"
    },
    {
      "position": 3,
      "trackId": "3cHyrEgdyYRjgJKSOiOtcS",
      "name": "Timber",
      "url": "https://open.spotify.com/track/3cHyrEgdyYRjgJKSOiOtcS",
      "artists": [
        {
          "id": "0TnOYISbd1XYRBk9myaseg",
          "name": "Pitbull",
          "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
        },
        {
          "id": "6LqNN22kT3074XbTVUrhzX",
          "name": "Kesha",
          "url": "https://open.spotify.com/artist/6LqNN22kT3074XbTVUrhzX"
        }
      ],
      "artistNames": "Pitbull, Kesha",
      "playCount": 2294971907,
      "durationFormatted": "3:24"
    }
  ],
  "topTracksCount": 5,
  "topTracksStatus": "public_preview",
  "albums": [
    {
      "id": "4Lkkfpt8ZkDmw4viHHi0IM",
      "name": "PITCOIN",
      "url": "https://open.spotify.com/album/4Lkkfpt8ZkDmw4viHHi0IM",
      "imageUrl": "https://i.scdn.co/image/ab67616d00001e02fb5868a9fc3d54f8f0b95b0a",
      "subtitle": "Latest Release • Album"
    },
    {
      "id": "4rG0MhkU6UojACJxkMHIXB",
      "name": "Planet Pit (Deluxe Version)",
      "url": "https://open.spotify.com/album/4rG0MhkU6UojACJxkMHIXB",
      "imageUrl": "https://i.scdn.co/image/ab67616d00001e021dc7483a9fcfce54822a2f19",
      "subtitle": "2011 • Album"
    },
    {
      "id": "4EUf4YyNjuXypWY6W5wEDm",
      "name": "Globalization",
      "url": "https://open.spotify.com/album/4EUf4YyNjuXypWY6W5wEDm",
      "imageUrl": "https://i.scdn.co/image/ab67616d00001e02e6efeff81a318670a292090f",
      "subtitle": "2014 • Album"
    }
  ],
  "albumsCount": 10,
  "albumsStatus": "public_preview",
  "relatedArtists": [
    {
      "id": "0jnsk9HBra6NMjO2oANoPY",
      "name": "Flo Rida",
      "url": "https://open.spotify.com/artist/0jnsk9HBra6NMjO2oANoPY",
      "imageUrl": "https://i.scdn.co/image/ab67616100005174655ca8f3196953554b479452",
      "subtitle": "Artist"
    },
    {
      "id": "1yxSLGMDHlW21z4YXirZDS",
      "name": "Black Eyed Peas",
      "url": "https://open.spotify.com/artist/1yxSLGMDHlW21z4YXirZDS",
      "imageUrl": "https://i.scdn.co/image/ab67616100005174f2200ce505d25e1d7e1561be",
      "subtitle": "Artist"
    },
    {
      "id": "2DlGxzQSjYe5N6G9nkYghR",
      "name": "Jennifer Lopez",
      "url": "https://open.spotify.com/artist/2DlGxzQSjYe5N6G9nkYghR",
      "imageUrl": "https://i.scdn.co/image/ab6761610000517430c4971f3bebe2bcb3e007c3",
      "subtitle": "Artist"
    }
  ],
  "relatedArtistsCount": 10,
  "relatedArtistsStatus": "public_preview",
  "marketObserved": "US",
  "marketApplied": false,
  "marketNotice": "No market was requested; observed market comes from the rendered document/browser locale when available.",
  "includeTopTracks": true,
  "includeAlbums": true,
  "includeRelatedArtists": true,
  "sourceUrl": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg"
}
```

### Run summary

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

| Field | Meaning |
| --- | --- |
| `recordType` | Always `runSummary`. |
| `status` | Actor outcome: `SUCCEEDED` or `FAILED`. |
| `requestedArtistCount` | Artist inputs requested. |
| `artistRecordCount` | Artist records produced. |
| `errorRecordCount` | Artist pages that failed extraction. |
| `recordsStored` | Artist rows saved to the dataset. |
| `includeTopTracks` | Whether popular tracks were requested. |
| `includeAlbums` | Whether discography cards were requested. |
| `includeRelatedArtists` | Whether related artists were requested. |
| `marketApplied` | Always `false` for this public-page workflow. |
| `requestedMarket` | Market context supplied in the input, when present. |
| `authenticationMode` | Always `anonymous_public_page`. |
| `sourceTransport` | Transport description recorded for the run. |
| `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 artist produced a row without an extraction problem. |
| `SUCCEEDED` | `PARTIAL` | At least one row was saved, but another artist or output write failed. Saved rows remain available. |
| `SUCCEEDED` | `NO_RESULTS` | The run completed cleanly and produced no artist rows. |
| `FAILED` | `FAILED` | The run failed before any usable artist row was saved. |

Example `OUTPUT_SUMMARY` from the saved run (also written to `OUTPUT`):

```json
{
  "recordType": "runSummary",
  "status": "SUCCEEDED",
  "requestedArtistCount": 1,
  "artistRecordCount": 1,
  "errorRecordCount": 0,
  "recordsStored": 1,
  "includeTopTracks": true,
  "includeAlbums": true,
  "includeRelatedArtists": true,
  "marketApplied": false,
  "authenticationMode": "anonymous_public_page",
  "sourceTransport": "anonymous Chromium public page",
  "startedAt": "2026-10-25T20:56:40.133Z",
  "completedAt": "2026-10-25T20:56:47.101Z",
  "durationMs": 6968,
  "runStatus": "SUCCEEDED",
  "dataStatus": "COMPLETE",
  "failureCount": 0,
  "outputWriteFailureCount": 0
}
```

### Coverage and limitations

The Actor reads only the public artist page a normal visitor can see. Monthly listeners, world rank, About text, track order, and shelf contents are point-in-time values and can change after the run. Popular tracks, discography cards, and Fans also like cards are limited by rendered content, bounded scrolling, and the selected maximums; a shelf can be empty even when it exists in the Spotify app.

`market` is retained as requested context but is not applied to a private market endpoint. `marketObserved` reflects the document language or browser locale, and `marketApplied` is always `false`. Biography text is captured as rendered and may repeat the rank and listener headline. Artwork, counts, and shelves are omitted when Spotify does not expose them. Failed pages are counted in the summary and logged, never written as data rows.

### Usage and support

Apify compute and storage costs vary with browser time, the number of artists, scroll passes, and retained shelf cards. Start with one or two artists and small maximums, 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-artist-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-artist-intelligence-scraper/changelog.md

# Actor input Schema

## `artistUrls` (type: `array`):

One to 25 Spotify artist URLs or 22-character IDs.

## `market` (type: `string`):

Optional two-letter market label retained as provenance. The anonymous public page is not forced to use it; marketApplied is reported explicitly.

## `includeTopTracks` (type: `boolean`):

Include the bounded Popular track rows rendered publicly.

## `includeAlbums` (type: `boolean`):

Include the bounded Discography/Popular releases shelf rendered publicly.

## `includeRelatedArtists` (type: `boolean`):

Include the bounded Fans also like shelf rendered publicly.

## `maxAlbums` (type: `integer`):

Maximum public release cards per artist.

## `maxRelatedArtists` (type: `integer`):

Maximum Fans also like cards per artist.

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

Polite delay before each browser navigation.

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

Timeout for each public page.

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

Hard initial response-body limit.

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

Optional Apify Proxy configuration; direct browsing is default.

## Actor input object example

```json
{
  "artistUrls": [
    "https://open.spotify.com/artist/4gzpq5DPGxSnKTe4SA8HAU"
  ],
  "includeTopTracks": true,
  "includeAlbums": true,
  "includeRelatedArtists": true,
  "maxAlbums": 20,
  "maxRelatedArtists": 20,
  "requestDelayMs": 1000,
  "timeoutSecs": 45,
  "maxResponseBytes": 3000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

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

Artist counts, enrichment settings, and authentication mode. Failure details stay in logs.

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

No description

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

No description

# 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 = {
    "artistUrls": [
        "https://open.spotify.com/artist/4gzpq5DPGxSnKTe4SA8HAU"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/spotify-artist-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 = { "artistUrls": ["https://open.spotify.com/artist/4gzpq5DPGxSnKTe4SA8HAU"] }

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/spotify-artist-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 '{
  "artistUrls": [
    "https://open.spotify.com/artist/4gzpq5DPGxSnKTe4SA8HAU"
  ]
}' |
apify call w3crawler/spotify-artist-intelligence-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/spotify-artist-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/wa5eSF42XwZLo7CIf/builds/c7xQ3Po4gO0HOEChf/openapi.json
