# Spotify Scraper: Tracks, Albums, Artists, Playlists, Podcasts (`zhtech/spotify-scraper`) Actor

Scrape Spotify tracks, albums with tracklists, artists (monthly listeners, followers, top tracks with play counts, discography), playlists with track play counts, podcast shows and episodes. Paste any links. No login, no API key.

- **URL**: https://apify.com/zhtech/spotify-scraper.md
- **Developed by:** [ZH Tech](https://apify.com/zhtech) (community)
- **Categories:** Social media, Marketing, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 spotify items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper: Tracks, Albums, Artists, Playlists and Podcasts

Scrape public Spotify data from any link: tracks, albums with full tracklists, artist profiles with monthly listeners, followers and top tracks with play counts, playlists with per track play counts, podcast shows and episodes. Paste links, get clean JSON, CSV or Excel. No Spotify account, no API key, no developer app.

### What does Spotify Scraper do?

You give it Spotify links (any mix of types). For each link it reads the public open.spotify.com page and saves:

| Link type | What you get |
|---|---|
| **Track** | name, artists, album, release date, duration, track and disc number, explicit flag, 30 second preview MP3, cover images, copyrights, music video link, play count when the track is one of the artist's top tracks |
| **Album** | name, type (album, single, compilation), artists, release date, label, copyrights, total tracks, total duration, cover images, the full tracklist, more releases by the artist |
| **Artist** | monthly listeners, followers, biography, social links (Instagram, Facebook, X, Wikipedia), top tracks **with play counts**, latest release, popular releases, albums, singles, compilations, appears on, related artists, artist playlists, playlists the artist is featured in, upcoming concerts |
| **Playlist** | name, description, owner, followers, total track count, and the first 30 tracks **each with its play count** |
| **Podcast show** | publisher, description, language, topics, rating and number of ratings, explicit and exclusive flags, total episodes, the latest episodes (up to 12) |
| **Episode** | title, description (text and HTML), release time, duration, explicit flag, video flag, audio and video preview, show and publisher |

Tracks of albums and playlists, artist top tracks and show episodes can also be saved as their own rows, so a playlist becomes a ready to use spreadsheet.

### Why this Spotify scraper?

- **Does not depend on a Spotify token.** Many Spotify scrapers break whenever Spotify changes how its web player gets access tokens ("api/token 400", "401", "no results"). This actor reads the same public page that anyone sees when they open a Spotify link, so there is no token to break.
- **Fast and light.** One small HTTP request per link, no browser. In a local test 24 links produced 221 rows in 7 seconds.
- **Never loses work.** Every row is saved the moment it is read. A bad link becomes an error row with a clear reason (not found, not available in this country, not a Spotify link), never a crashed run. Error rows are free.
- **Honest data.** No columns that are always empty. Rows that only have basic data are marked. Playlist and show rows tell you how many tracks or episodes exist and how many the public page includes.
- **Cheap.** Low price per link and an even lower price per track or episode row. See Pricing.
- **Polite and compliant.** Reads only public pages allowed by open.spotify.com/robots.txt, never the disallowed `/embed/` pages, identifies itself honestly, waits when Spotify asks it to slow down. Nothing behind a login.

### Use cases

- **Music marketing and A\&R:** track monthly listeners and followers of artists, compare top track play counts, find related artists.
- **Playlist pitching and curation:** check playlist followers, owners and the play counts of the tracks on a playlist.
- **Label and catalog research:** release dates, labels, copyrights, tracklists and durations of albums.
- **Podcast research:** ratings, number of ratings, publishers, topics and release cadence of shows.
- **Data enrichment:** turn a list of Spotify links from a spreadsheet or CRM into clean structured data.
- **Monitoring:** schedule the actor daily or weekly to follow monthly listeners, followers and play counts over time.
- **AI agents:** give an LLM agent a reliable tool to read Spotify links (see MCP below).

### How to use it

1. Open the actor and paste Spotify links into **Spotify links**, one per line. Accepted forms:
   - `https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg` (also with `/intl-de/` and `?si=...`)
   - `spotify:track:4cOdK2wGLETKBW3PvgPWqT`
   - `https://spotify.link/...` short links from the Spotify app
2. Keep **Save tracks and episodes as separate rows** on if you want one row per track or episode, or turn it off to get one row per link (the tracks are still inside that row as a compact list).
3. Click **Start**. Download the results as JSON, CSV, Excel or HTML, or use the API.

#### Input example

```json
{
    "urls": [
        "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT",
        "https://open.spotify.com/album/2ODvWsOgouMbaA5xf0RkJe",
        "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg",
        "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
        "https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk"
    ],
    "includeListItems": true,
    "maxItems": 0
}
```

| Field | Description |
|---|---|
| `urls` | Spotify links, URIs or short links. If the field is left out, the five example links above are used. |
| `includeListItems` | Save album tracks, playlist tracks, artist top tracks and show episodes as separate rows. Default on. |
| `maxItems` | Cap on saved rows for the whole run. 0 means no cap. |
| `maxConcurrency` | Pages loaded in parallel, 1 to 10. Default 3. |
| `proxyConfiguration` | Off by default. See Proxy below. |

#### Proxy

The actor runs **without a proxy by default**, and that is the recommended setting. Each link is one light request to a public page, so a proxy is not needed for normal runs and adds nothing to the data. Turn a proxy on only if:

- Spotify starts answering `429 Too Many Requests` or empty pages on very large runs (error code `RATE_LIMITED` or `BLOCKED`), or
- you want items that are region locked in the default country: pick a proxy in a country where they are available.

Apify datacenter proxy, optionally with a country, is enough in almost all cases. Residential proxy is rarely needed and much slower.

### Output

Each row has a `type` (`track`, `album`, `artist`, `playlist`, `show`, `episode` or `error`), a `source` (`input` for the links you gave, or `album-tracks`, `playlist-tracks`, `artist-top-tracks`, `show-episodes` for list rows) and `scrapedAt`. List rows also have `position`, `parentType`, `parentId`, `parentName` and `parentUrl`. `market` is the country Spotify served the page for.

#### Artist row (shortened)

```json
{
    "type": "artist",
    "id": "0TnOYISbd1XYRBk9myaseg",
    "url": "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg",
    "name": "Pitbull",
    "monthlyListeners": 73283658,
    "followers": 13648947,
    "biography": "Armando Christian Pérez, globally known as Pitbull, ...",
    "externalLinks": [{ "name": "INSTAGRAM", "url": "https://instagram.com/pitbull" }],
    "imageUrl": "https://i.scdn.co/image/ab6761610000e5eb700606d9484bcfff3fba700d",
    "topTracks": [
        { "position": 1, "id": "4QNpBfC0zvjKqPJcyqBy9W", "name": "Give Me Everything (feat. Nayer)", "playCount": 2366438295, "artistNames": "Pitbull, AFROJACK, Ne-Yo, Nayer", "albumName": "Planet Pit (Deluxe Version)" }
    ],
    "latestRelease": { "id": "2vCZdkjVYlWjg61JjAlkQQ", "name": "Ooh Laka Laka La", "type": "single", "releaseDate": "2026" },
    "albums": [{ "id": "4Lkkfpt8ZkDmw4viHHi0IM", "name": "PITCOIN", "type": "album", "releaseDate": "2026", "url": "https://open.spotify.com/album/4Lkkfpt8ZkDmw4viHHi0IM" }],
    "relatedArtists": [{ "id": "0jnsk9HBra6NMjO2oANoPY", "name": "Flo Rida", "url": "https://open.spotify.com/artist/0jnsk9HBra6NMjO2oANoPY" }],
    "upcomingConcertsCount": 13,
    "upcomingConcerts": [{ "title": "Pitbull, Lil Jon", "date": "2026-11-22T20:00+01:00", "venue": "O2 arena", "city": "Praha 9" }],
    "source": "input",
    "market": "US",
    "detailsComplete": true,
    "scrapedAt": "2026-11-21T06:30:12.345Z"
}
```

#### Playlist track row

```json
{
    "type": "track",
    "id": "2sFepQNyl1WjpROruP8bJ0",
    "url": "https://open.spotify.com/track/2sFepQNyl1WjpROruP8bJ0",
    "name": "Housewife",
    "artists": [
        {
            "id": "45dkTj5sMRSjrmBSBeiHym",
            "name": "Tate McRae",
            "url": "https://open.spotify.com/artist/45dkTj5sMRSjrmBSBeiHym"
        }
    ],
    "artistNames": "Tate McRae",
    "albumName": "Housewife",
    "durationMs": 208810,
    "duration": "3:29",
    "explicit": false,
    "playCount": 197765736,
    "previewUrl": "https://p.scdn.co/mp3-preview/724b097d9dc53e0541de27d199adfe3f610944ba",
    "imageUrl": "https://i.scdn.co/image/ab67616d0000b273f2d3185e46b03c243f60ce53",
    "position": 2,
    "source": "playlist-tracks",
    "parentType": "playlist",
    "parentId": "37i9dQZF1DXcBWIGoYBM5M",
    "parentName": "Today’s Top Hits"
}
```

#### Album row (shortened)

```json
{
    "type": "album",
    "name": "Starboy",
    "albumType": "album",
    "artistNames": "The Weeknd",
    "releaseDate": "2016-11-25",
    "totalTracks": 18,
    "tracksIncluded": 18,
    "tracksComplete": true,
    "totalDuration": "1:08:36",
    "label": "The Weeknd XO, Inc., Manufactured and Marketed by Republic Records, a Division of UMG Recordings, Inc.",
    "tracks": [{ "position": 1, "id": "7MXVkk9YMctZqd1Srtv4MB", "name": "Starboy", "artistNames": "The Weeknd, Daft Punk", "durationMs": 230453, "explicit": true }]
}
```

The dataset has ready made views: **Overview**, **Tracks**, **Albums**, **Artists**, **Playlists**, **Podcasts** and **Errors**. A `RUN_SUMMARY` record in the key value store lists counts, errors and timing.

### Pricing

Pay per event, you only pay for rows actually saved:

- **Actor start:** a tiny fee once per run.
- **Item:** one per Spotify link you entered (a full track, album, artist, playlist, show or episode row).
- **List item:** one per extra track or episode row taken from an album, playlist, artist or show. Priced lower than an item because these rows come from the same page. Turn off "Save tracks and episodes as separate rows" to skip them.

Never charged: error rows (invalid links, not found, not available in your country), duplicate links, and anything after your Max results or your maximum cost per run. The current prices are on the Pricing tab.

Example: one playlist link gives 1 item plus up to 30 list items. One artist link gives 1 item plus 5 list items (the top tracks). One show link gives 1 item plus up to 12 list items (the latest episodes).

### Limitations (please read)

These limits come from what Spotify shows on its public pages without an account. This actor does not use Spotify's internal access tokens, so it cannot go past them:

- **Playlists:** the first **30 tracks** of each playlist, plus the playlist's total track count. `tracksIncluded`, `totalTracks` and `tracksComplete` tell you when a playlist is longer. Playlists with up to 30 tracks are complete.
- **Shows:** the **latest 12 episodes** of each show, plus the total episode count. Older episodes can be scraped from their episode links.
- **Artists:** the top 5 tracks and the first releases of each discography group (about 8 albums, 8 singles, 8 compilations) as shown on the artist page.
- **Play counts** are available for artist top tracks and playlist tracks. A single track link includes its play count only if it is one of the artist's top tracks.
- **Not available:** search by keyword, ISRC codes, Spotify popularity score, audio features, top cities and world rank of artists, playlist "date added", user profiles, audiobooks.
- **Albums:** the full tracklist in all our tests. Very long albums could show fewer tracks than they have; `tracksComplete` is then false.
- **Country:** Spotify serves the page for the country of the request IP (usually US on Apify). Items not available there return a "not available in your country" error row. Use a proxy in another country to read them.

### FAQ

**Do I need a Spotify account or API key?** No. The actor reads public open.spotify.com pages only.

**Can I search Spotify by keyword?** No. Spotify does not show search results on public pages without its web player token. Paste links instead. Album and artist rows include links to related albums and artists you can feed back in.

**Why are there only 30 tracks of my playlist?** That is all Spotify shows on the public playlist page. The row tells you the real total. If you need every track of long playlists, use a tool that works with your own Spotify developer credentials.

**How fast is it?** About 3 links per second with the default settings, without a proxy.

**What happens with a wrong or deleted link?** You get an error row with the reason (for example `NOT_FOUND`, `REGION_UNAVAILABLE`, `INVALID_INPUT`) and you are not charged for it. The run still succeeds. A run only fails when Spotify could not be read at all (for example `BLOCKED` or `RATE_LIMITED` on every link), or when the input contains no Spotify link.

**Is scraping Spotify legal?** The actor collects only publicly visible data from pages that Spotify's robots.txt allows for automated clients. You are responsible for how you use the data, including Spotify's terms and copyright and data protection laws in your country. Note that Spotify's robots.txt asks AI training crawlers not to collect its catalog: do not use the output to train AI models.

### Integrations and API

Run it from your code with the Apify API or the official clients.

**JavaScript**

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('zhtech/spotify-scraper').call({
    urls: ['https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg'],
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].monthlyListeners);
```

**Python**

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("zhtech/spotify-scraper").call(run_input={
    "urls": ["https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"],
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["type"], item.get("name"), item.get("playCount"))
```

**HTTP:** `POST https://api.apify.com/v2/acts/zhtech~spotify-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN` with the input JSON as the body returns the rows directly.

**No code:** connect it to Google Sheets, Make, Zapier, n8n, Slack or webhooks from the Integrations tab, and schedule it to track monthly listeners or play counts over time.

**LLM agents and MCP:** add this actor as a tool through the Apify MCP server (`https://mcp.apify.com`), for example in Claude Desktop, Cursor or any MCP client, then ask things like "get the monthly listeners and top tracks of these three artists". The small, predictable input (a list of links) makes it easy for agents to call.

### Support

Found a link that does not work or a field that looks wrong? Open an issue in the Issues tab with the link, and it will be looked at as soon as possible.

# Actor input Schema

## `urls` (type: `array`):

Any mix of Spotify track, album, artist, playlist, podcast show and episode links. The type is detected from each link. Accepted forms: https://open.spotify.com/track/ID (also with /intl-xx/ or ?si=...), spotify:album:ID URIs, and spotify.link short links. Search terms are not supported. If you leave the field out entirely, the five example links are used.

## `includeListItems` (type: `boolean`):

On: every track of an album, every track (with play count) of a playlist, every top track (with play count) of an artist and every listed episode of a show is also saved as its own row, ready for spreadsheets. Each of these rows is a list-item event. Off: you get one row per link, and the tracks or episodes are still included as a compact list inside that row (cheaper).

## `maxItems` (type: `integer`):

Hard cap on saved rows for the whole run (link rows plus track and episode rows), a safety limit on cost. 0 means no cap besides your max charge.

## `maxConcurrency` (type: `integer`):

How many pages are loaded in parallel. The default is polite and fast enough for thousands of links per hour. Raise it only with a proxy.

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

Off by default and not needed for normal use: the actor reads light public pages without a proxy. Turn one on only if Spotify starts answering 429 Too Many Requests or empty pages on very large runs, or to read items that are region locked in the default country (Spotify shows content for the country of the request IP). Apify datacenter proxy, optionally with a country, is enough in almost all cases; residential proxy is rarely needed.

## Actor input object example

```json
{
  "urls": [
    "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT",
    "https://open.spotify.com/album/2ODvWsOgouMbaA5xf0RkJe",
    "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg",
    "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
    "https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk"
  ],
  "includeListItems": true,
  "maxItems": 0,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `tracks` (type: `string`):

No description

## `albums` (type: `string`):

No description

## `artists` (type: `string`):

No description

## `playlists` (type: `string`):

No description

## `podcasts` (type: `string`):

No description

## `errors` (type: `string`):

No description

## `allResults` (type: `string`):

No description

## `runSummary` (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 = {
    "urls": [
        "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT",
        "https://open.spotify.com/album/2ODvWsOgouMbaA5xf0RkJe",
        "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg",
        "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
        "https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhtech/spotify-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 = {
    "urls": [
        "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT",
        "https://open.spotify.com/album/2ODvWsOgouMbaA5xf0RkJe",
        "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg",
        "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
        "https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("zhtech/spotify-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 '{
  "urls": [
    "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT",
    "https://open.spotify.com/album/2ODvWsOgouMbaA5xf0RkJe",
    "https://open.spotify.com/artist/0TnOYISbd1XYRBk9myaseg",
    "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
    "https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call zhtech/spotify-scraper --silent --output-dataset

```

## MCP server setup

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