# Spotify Scraper (`neuro-scraper/spotify-scraper`) Actor

Spotify Scraper SD - Spotify Scraper is a music data tool that extracts play counts, monthly listeners, followers, world rank, top cities, top tracks, albums, playlists and podcasts from Spotify links or keyword searches. No login, no API key.

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

## Pricing

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

**Spotify Scraper** exports the numbers people actually look for on Spotify: track **play counts**, artist **monthly listeners**, **followers**, **world rank** and **top cities**, plus full album, playlist, podcast and episode records. Paste Spotify links or type search terms - the Spotify Scraper returns clean rows you can download as JSON, CSV or Excel or pull from your own code.

> **Also from us:** [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - export reels, views, likes and captions from any public Facebook page.

No Spotify account, no login, no cookies and no developer API key are needed. The Spotify Scraper does not download audio - it collects public catalogue data and statistics only.

#### What does Spotify Scraper do?

The Spotify Scraper opens every item you give it and returns one row per item:

- **Artists** - monthly listeners, followers, world rank, top 5 cities with listener counts, top 10 tracks with play counts, biography, social links, albums, singles, popular releases, latest release, related artists, the artist's playlists, concert count and (optionally) the full discography.
- **Albums** - every track with its play count, total plays, label, copyright, release date and precision, album type, artists, cover art, duration and "more albums by this artist".
- **Tracks** - play count, duration, explicit flag, track number, album, artists, release date, label, copyright, preview link and the track's position in the artist's top tracks.
- **Playlists** - followers (saves), owner, description, every track with play count and date added, total plays, and social handles / links found in the description.
- **Podcasts (shows)** - publisher, description, rating and number of ratings, topics, explicit flag and the episode list.
- **Episodes** - name, description, release date, duration, show and preview link.
- **Search** - type keywords and the Spotify Scraper finds tracks, artists, albums, playlists, podcasts or episodes and opens each result for its full record.

#### Why use Spotify Scraper?

- **Music marketing and A\&R** - track monthly listeners and play counts of artists you follow or sign.
- **Playlist pitching** - find playlists for a genre, see their followers and the curator's social handles.
- **Royalty and catalogue estimates** - total plays of every track on an album or playlist.
- **Charts and dashboards** - schedule the Spotify Scraper daily and chart the growth of listeners and plays.
- **Podcast research** - ratings, rating counts and episode lists of any show.

#### How to use Spotify Scraper

1. Open the Spotify Scraper on Apify and click **Try for free**.
2. Paste Spotify links into **Spotify links** (artist, album, track, playlist, show or episode) - or type keywords into **Search terms** and choose **Search for**.
3. Optionally raise **Max tracks / episodes per item**, turn on **Full artist discography** or **One row per track**.
4. Click **Start**. A run with a few links finishes in under a minute.
5. Open the dataset and export it, or connect the Spotify Scraper to Google Sheets, Make, Zapier or a webhook.

### Input options - how every feature works

#### `startUrls` - Spotify links

The `startUrls` list takes any Spotify link or URI: `https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02`, `https://open.spotify.com/intl-de/album/...`, `spotify:track:0VjIjW4GlUZAMYd2vXMi3b`, playlist, show and episode links. The Spotify Scraper recognises the type from the link and returns the matching record. A link that is not a Spotify item is reported as an ERROR in the log and skipped; an item that does not exist (deleted or wrong id) is reported too, and the run goes on with the other links. Tip: mix artists, albums and playlists freely in one run.

#### `searchTerms` - Search terms

The `searchTerms` list holds keywords such as artist names, song titles, genres or podcast topics (`lofi beats`, `taylor swift`, `true crime`). The Spotify Scraper searches Spotify for each term, follows the result pages until it has `maxResults` items, and then opens every result for its full record, so search rows carry the same play counts and listener numbers as link rows. Each row records its `searchTerm` and `searchRank`. You can use search terms and links in the same run.

#### `searchType` - Search for

The `searchType` option chooses what the search terms look for: `tracks` (default), `artists`, `albums`, `playlists`, `podcasts` or `episodes`. Example: `"searchType": "playlists"` with `"searchTerms": ["workout"]` returns workout playlists with followers, owners and track lists. It applies to every search term in the run; run the Spotify Scraper twice for two different types.

#### `maxResults` - Max results per search term

The `maxResults` option sets how many results each search term returns (default 20, up to 1,000). The limit is per term: 20 with three terms gives up to 60 items. The Spotify Scraper follows Spotify's own result pages (10 per page) until the limit or the end of the results.

#### `maxTracksPerItem` - Max tracks / episodes per item

The `maxTracksPerItem` option sets how many tracks of an album or playlist, how many episodes of a podcast and how many releases of a full discography the Spotify Scraper reads (default 100). It follows the pages of each list until the limit or the end, so a 1,000-track playlist with `"maxTracksPerItem": 1000` is read completely. Lower it to make runs faster when you only need the headline numbers.

#### `includeDiscography` - Full artist discography

Turn on `includeDiscography` to replace the artist's discography summary with the complete list of albums, singles and compilations, newest first (up to `maxTracksPerItem` releases). Off (default), the `discography` column holds the counts of albums, singles and compilations, and `albums` / `singles` hold the first releases.

#### `expandTracks` - One row per track

Turn on `expandTracks` to also save every track of an album or playlist as its own row, right after the album or playlist row. Each track row has its play count, duration, explicit flag, artists and album. This is the easiest way to get a flat table of play counts for a whole album or playlist. Off (default), tracks are kept as a list in the `tracks` column of the album or playlist row.

#### `scrapePreviewUrls` - Preview audio links

The `scrapePreviewUrls` option (default on) adds the 30-second preview link of tracks and episodes in `previewUrl` / `audioPreviewUrl` when Spotify offers one. Turn it off if you do not need the links. The Spotify Scraper never downloads audio.

#### `includeRaw` - Include raw record

Turn on `includeRaw` to add a `raw` object with the complete original record of each item (artist, album, track, playlist, show or episode). The default is off because raw records are large (an artist record is about 170 KB). Use it when you need a value that is not a column yet.

#### `maxItems` - Max rows in total

The `maxItems` option is a safety cap on all rows of the run (default 1,000), including track rows from `expandTracks`. The run stops cleanly when it is reached and the status says so.

#### `proxyConfiguration` - Proxy configuration

The `proxyConfiguration` option chooses the connection. The default is an Apify residential proxy in the United States, which is also the Spotify market used for availability (the `country` column). Choose another country to read Spotify as a listener in that market sees it.

#### `mode` - Mode

The `mode` option decides which inputs the Spotify Scraper uses: auto (default) reads links, search terms and categories
together; urls reads only the links in `startUrls`; search reads only `searchTerms` and `category`; charts saves only
the latest Spotify Charts. Use it to switch a saved task between link and search runs without deleting inputs.

#### `category` - Playlist categories

The `category` list takes category or genre words such as workout, chill, hip hop or sleep. Each word finds playlists of
that category (up to `maxResults` per word) and opens each playlist for its followers, owner, description and tracks with
play counts. Combine it with `minSaves` and `excludeSpotifyOwned` to find curator playlists for pitching.

#### `includeCharts` - Spotify Charts

Turn on `includeCharts` to also save the latest public Spotify Charts (for example Weekly Top Songs: Global) as rows:
chart position in `rank`, the chart name in `category`, the chart date in `date`, artists and the stream number when
Spotify shows one. Dated (historical) charts are not offered because Spotify shows them only to logged-in users.

#### `followAlbums` - Follow artist albums

Turn on `followAlbums` to have the Spotify Scraper open every album listed on each artist's page as its own album row,
with all tracks and their play counts. One artist link then gives the artist row plus a row per album; `maxTracksPerItem`
limits the tracks read per album.

#### `followSingles` - Follow artist singles

Turn on `followSingles` to also open every single and EP listed on each artist's page as its own row with track play
counts. Useful for artists who release mostly singles; combine with `expandTracks` for one row per track.

#### `followPopularReleases` - Follow popular releases

Turn on `followPopularReleases` to also open the artist's popular releases (the releases Spotify shows first on the
artist page), each as an album row with tracks and play counts - the quickest way to the artist's biggest records.

#### `minSaves` - Minimum playlist saves

The `minSaves` option keeps only playlists with at least this many saves (followers), for example 10000 to skip small
playlists in search and category results. Default 0 keeps every playlist; other item types are not affected.

#### `excludeSpotifyOwned` - Skip Spotify playlists

Turn on `excludeSpotifyOwned` to skip playlists owned by Spotify itself (editorial playlists such as Today's Top Hits),
so search and category results only contain playlists made by users and curators you can contact.

#### `excludePlaylistIds` - Skip playlists

The `excludePlaylistIds` list takes playlist ids or links that should never be saved - for example your own playlists or
ones you already pitched. They are skipped in link, search and category results alike.

#### `enrichConcertDetails` - Concert details

Turn on `enrichConcertDetails` to add the artist's upcoming concerts to every artist row in the `concerts` column (title,
date, venue, city, country and link). The list is empty when Spotify lists no concert for the artist in your market.

#### `geoHash` - Concert location (geohash)

The `geoHash` option takes a geohash such as dr5r (New York) or gcpv (London). With `enrichConcertDetails` on, Spotify
then also returns concerts near that place. Leave it empty to get the artist's concert list without a location.

#### `market` - Market

The `market` option sets a 2-letter country code (US, GB, DE, BR ...). Spotify answers as a listener in that country sees
it - availability, playable flags and charts follow the market - so the Spotify Scraper routes the run through a
residential proxy in that country. The `country` column shows the market each row was read in.

#### `maxConcurrency` - Parallel items

The `maxConcurrency` option sets how many Spotify items (artists, albums, tracks, playlists, shows) are read at the same
time (default 5, up to 20). Higher numbers make big runs faster; the rows are saved as soon as each item is read.

#### `delayMs` - Extra delay (ms)

The `delayMs` option adds a pause in milliseconds before each item (default 0 = no pause). The Spotify Scraper is already
polite; use a delay only if you want to spread a very large run over a longer time.

### Input examples

Artist, album and playlist statistics:

```json
{
  "startUrls": [
    "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
    "https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj",
    "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"
  ],
  "maxTracksPerItem": 100
}
```

One row per track with play counts for a whole album:

```json
{
  "startUrls": ["https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj"],
  "expandTracks": true
}
```

Find playlists for a genre (followers, owners, curator handles):

```json
{
  "searchTerms": ["lofi beats", "deep focus"],
  "searchType": "playlists",
  "maxResults": 25,
  "maxTracksPerItem": 30
}
```

Full discography of an artist:

```json
{
  "startUrls": ["https://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJ"],
  "includeDiscography": true,
  "maxTracksPerItem": 500
}
```

Podcast with its latest 200 episodes:

```json
{
  "startUrls": ["https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk"],
  "maxTracksPerItem": 200
}
```

### Output - every field explained

Every row of the Spotify Scraper has the same columns; a column that does not apply to the row's `type` is empty (null). For example `monthlyListeners` is filled on artist rows, `followers` on artist and playlist rows, `rating` on podcast rows.

#### Identity and links

| field | meaning |
|---|---|
| `type`, `record_type` | artist, album, track, playlist, show or episode |
| `id`, `spotifyId` | the Spotify id |
| `uri` | spotify:type:id |
| `url`, `spotifyUrl`, `href` | the Spotify link |
| `external_urls` | `{spotify: link}` |
| `name` | artist, album, track, playlist, show or episode name |
| `imageUrl`, `coverArt` | artist picture or cover art (largest size) |
| `albumArt` | the album cover of a track |
| `headerImageUrl` | the artist's header (banner) image |
| `inputUrl` | the link the row came from (empty for search rows) |
| `scrapedAt` | when the row was saved (UTC) |
| `dataSource` | always spotify |
| `country` | the Spotify market the data was read in |
| `mode` | urls or search |

#### Statistics

| field | meaning |
|---|---|
| `playCount`, `streamCount` | track: its play count; album / playlist: the sum of the read tracks; artist: the sum of the top 10 tracks; empty for podcasts |
| `monthlyListeners` | artist monthly listeners |
| `followers`, `saveCount` | artist followers / playlist saves |
| `worldRank` | the artist's world rank (empty when Spotify shows none, i.e. outside the top 500) |
| `topCities` | top 5 cities: city, country, region, listeners |
| `topTracks` | artist top 10 tracks: rank, name, play count, duration, explicit, album |
| `topTracksCount` | number of top tracks |
| `topTrackRank` | a track's position in its artist's top 10 (empty when it is not there) |
| `rank` | search rank, or top-track / world rank |
| `rating`, `ratingCount` | podcast average rating and number of ratings |

#### Artist details

| field | meaning |
|---|---|
| `biography` | the artist's "About" text (empty when the artist wrote none) |
| `externalLinks` | social links (Instagram, Facebook, X, Wikipedia ...) |
| `relatedArtists` | "Fans also like" artists with links and pictures |
| `playlists` | the artist's own playlists and playlists featuring the artist |
| `albums`, `singles` | the first albums / singles (id, name, type, date, label, tracks, cover) |
| `popularReleases` | the artist's popular releases |
| `discography` | counts of albums, singles, compilations - or the full release list with `includeDiscography` |
| `latest` | the latest release |
| `appearsOnCount` | number of releases the artist appears on |
| `concertsCount` | number of upcoming concerts listed |
| `hasVideo` | the artist / track has music videos |
| `genres`, `category` | podcast topics (Spotify does not show artist genres to logged-out visitors) |

#### Album, track and episode details

| field | meaning |
|---|---|
| `artists` | list of artists (id, name, link) |
| `artist`, `artistName`, `artistId`, `artistIds` | artist names joined, first artist name / id, all ids |
| `album` | the album of a track (id, name, type, release date, link) |
| `albumName`, `albumId`, `albumUri`, `albumType` | album name, id, URI and type (ALBUM, SINGLE, COMPILATION, EP) |
| `label` | record label |
| `copyright` | copyright lines (C and P) |
| `releaseDate`, `date` | release date (podcast: latest episode date) |
| `releaseDatePrecision` | DAY, MONTH or YEAR |
| `duration`, `durationFormatted` | duration as m:ss (h:mm:ss when longer) |
| `durationMs` | duration in milliseconds (album / playlist: of the read tracks) |
| `contentRating` | EXPLICIT / NONE, podcast rating labels |
| `explicit`, `isExplicit` | explicit content |
| `isPlayable` | playable in the market |
| `trackNumber` | the track's number on its album |
| `discNumber` | disc number (filled on track rows from albums and playlists with `expandTracks`) |
| `previewUrl`, `audioPreviewUrl` | 30-second preview link when Spotify offers one |
| `tracks` | album / playlist tracks: rank, name, play count, duration, explicit, track and disc number, artists, album, date added |
| `trackCount`, `totalTracks`, `itemCount` | number of tracks / episodes in the item |
| `moreAlbums` | more albums by the same artist |
| `episodes` | podcast episodes: name, description, release date, duration, explicit, image, preview |
| `showName`, `showId`, `showUrl` | podcast of an episode / the show itself |
| `publisher` | podcast publisher |

#### Playlist details

| field | meaning |
|---|---|
| `owner`, `ownerUsername`, `ownerProfileUrl` | playlist owner name, username and profile link |
| `isSpotifyOwned` | true for Spotify editorial playlists |
| `description` | playlist / album / podcast description (HTML removed) |
| `contactHandles` | @handles written in the playlist description (empty when there are none) |
| `contactLinks` | web links written in the playlist description |

#### Search and raw

| field | meaning |
|---|---|
| `searchTerm`, `query` | the search term that found the row |
| `searchType` | the search type used |
| `searchRank` | the position in the search results |
| `raw` | the complete original record when `includeRaw` is on |
| `concerts` | upcoming concerts of an artist (with `enrichConcertDetails`): title, date, venue, city, country, link |

### How much does Spotify Scraper cost?

The Spotify Scraper uses pay-per-event pricing: a small start fee per run and a fixed price per saved row (see the Pricing tab). Worked example: at $2.00 per 1,000 rows, 1,000 track rows cost $2.00 plus the start fee, and 50 artist rows cost $0.10. With `expandTracks` every track is a row, so a 14-track album gives 15 rows.

### Use Spotify Scraper from your code

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("neuro-scraper/spotify-scraper").call(run_input={
    "startUrls": ["https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"]})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["name"], row["monthlyListeners"], row["followers"], row["worldRank"])
```

Schedule the Spotify Scraper daily in Apify Schedules to build a history of listeners and plays, and send each dataset to Google Sheets, a webhook or your database.

### Spotify Scraper at a glance

- The Spotify Scraper gives play counts for every track of an album or playlist in one run.
- The Spotify Scraper gives monthly listeners, followers, world rank and top cities of any artist.
- The Spotify Scraper searches tracks, artists, albums, playlists, podcasts and episodes.
- The Spotify Scraper follows long playlists, discographies and podcast episode lists page by page.
- The Spotify Scraper needs no Spotify account and no developer key.
- The Spotify Scraper never downloads audio.

### Which columns can be empty

Every row has every column, so a column that belongs to another item type is empty on purpose. Columns and the rows that fill them:

- artist rows only: `monthlyListeners`, `worldRank`, `topCities`, `topTracks`, `topTracksCount`, `biography`, `externalLinks`, `relatedArtists`, `playlists`, `albums`, `singles`, `popularReleases`, `discography`, `latest`, `appearsOnCount`, `concertsCount`, `headerImageUrl`.
- artist and playlist rows only: `followers`, `saveCount`.
- album, track and expanded-track rows only: `album`, `albumName`, `albumId`, `albumUri`, `albumType`, `albumArt`, `label`, `copyright`, `releaseDatePrecision`, `trackNumber`, `moreAlbums`.
- track and expanded-track rows only: `topTrackRank`, `discNumber`, `contentRating`, `hasVideo`.
- track and episode rows, when Spotify offers a 30-second preview (most tracks have none): `previewUrl`, `audioPreviewUrl`.
- album and playlist rows only: `tracks`, `moreAlbums`.
- playlist rows only: `owner`, `ownerUsername`, `ownerProfileUrl`, `isSpotifyOwned`, `contactHandles`, `contactLinks`.
- podcast (show) and episode rows only: `publisher`, `showName`, `showId`, `showUrl`, `rating`, `ratingCount`, `episodes`, `genres`, `category`.
- album, playlist, show and episode rows (description text): `description`.
- item rows with several entries (album, playlist, show): `itemCount`, `trackCount`, `totalTracks`.
- artist / album / track rows (artist columns): `artists`, `artist`, `artistName`, `artistId`, `artistIds`.
- rows that have a picture: `imageUrl`, `coverArt`.
- search rows only (input echo): `searchTerm`, `query`, `searchType`, `searchRank`.
- link rows only (input echo): `inputUrl`.
- only with includeRaw: `raw`.
- only with enrichConcertDetails, artist rows: `concerts` (an empty list when Spotify lists no concert in the market - The Weeknd and Coldplay had none on 2026-11-21).
- `playCount` / `streamCount` are empty on podcast and episode rows (Spotify shows no plays for them); `worldRank` is empty for artists outside the top 500; `genres` is empty for artists (not shown to logged-out listeners); `contactHandles` / `contactLinks` are empty when the playlist description has no handle or link; `biography` is empty when the artist wrote none.

### FAQ

**Does the Spotify Scraper need a Spotify account or API key?** No. The Spotify Scraper works logged out, with no developer app.

**Are the play counts exact?** Yes - the Spotify Scraper returns the exact play count Spotify shows for each track (for example 5,690,093,854 for Blinding Lights on 2026-11-21). Spotify updates the counts about once a day.

**Why is `worldRank` empty for some artists?** Spotify shows a world rank only for the top 500 artists.

**Why are `genres` and the verified badge missing for artists?** Spotify does not show them to logged-out listeners. Podcasts have topics, which the Spotify Scraper returns in `genres`.

**Can I get lyrics?** No - Spotify shows lyrics only to logged-in listeners.

**Can the Spotify Scraper download songs?** No. Audio is protected; the Spotify Scraper only collects catalogue data and statistics.

**How many tracks can a playlist give?** All of them - set `maxTracksPerItem` high enough; the Spotify Scraper follows the playlist pages to the end.

**What happens with a broken link?** The Spotify Scraper logs an ERROR naming the link and continues; the run status lists every failed link.

### Limits

- Play counts are shown for tracks only, not for podcast episodes.
- `contactHandles` / `contactLinks` exist only when the playlist description contains them.
- A Spotify item that is not available in the chosen market can come back as not playable.

The Spotify Scraper is maintained actively. If a field you need is missing, open an issue and we will add it to the Spotify Scraper.

# Actor input Schema

## `startUrls` (type: `array`):

Artist, album, track, playlist, podcast (show) or episode links, e.g. https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02 or spotify:track:0VjIjW4GlUZAMYd2vXMi3b.

## `searchTerms` (type: `array`):

Optional: keywords to search Spotify for (artist names, song titles, genres, podcast topics). Each term gives up to 'Max results per search term' items.

## `searchType` (type: `string`):

What kind of item the search terms look for. Every result is opened for its full record (play counts, listeners ...).

## `maxResults` (type: `integer`):

How many search results to keep for each search term (follows the search pages).

## `maxTracksPerItem` (type: `integer`):

How many tracks of an album or playlist, episodes of a podcast, or releases of a full discography to read (follows the pages).

## `includeDiscography` (type: `boolean`):

For artists: read every album, single and compilation (newest first), not only the first ones.

## `expandTracks` (type: `boolean`):

For albums and playlists: also save every track as its own row (with its play count).

## `scrapePreviewUrls` (type: `boolean`):

Add the 30-second preview link of tracks and episodes when Spotify offers one.

## `includeRaw` (type: `boolean`):

Adds the complete original record as a raw object to every item row.

## `mode` (type: `string`):

auto uses every input; urls only the links; search only the search terms and categories; charts only the latest Spotify Charts.

## `category` (type: `array`):

Optional: category / genre words (workout, chill, hip hop); each finds playlists of that category.

## `includeCharts` (type: `boolean`):

Also save the latest public Spotify Charts (top songs / artists / albums) as rows.

## `followAlbums` (type: `boolean`):

For artists: also open every album on the artist page (each with its tracks and play counts).

## `followSingles` (type: `boolean`):

For artists: also open every single on the artist page.

## `followPopularReleases` (type: `boolean`):

For artists: also open the artist's popular releases.

## `minSaves` (type: `integer`):

Keep only playlists with at least this many saves (followers).

## `excludeSpotifyOwned` (type: `boolean`):

Skip playlists owned by Spotify (editorial).

## `excludePlaylistIds` (type: `array`):

Playlist ids or links to skip.

## `enrichConcertDetails` (type: `boolean`):

For artists: add the list of upcoming concerts (date, venue, city).

## `geoHash` (type: `string`):

Optional geohash (e.g. dr5r for New York) to include concerts near that place.

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

2-letter country code (US, GB, DE ...): read Spotify as a listener in that market sees it (the proxy country follows it).

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

How many items are read at the same time.

## `delayMs` (type: `integer`):

Optional pause before each item, in milliseconds (0 = none).

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

Safety cap on the number of rows saved in one run.

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

Residential proxy is the default and recommended. The proxy country decides the Spotify market (availability of some items).

## Actor input object example

```json
{
  "startUrls": [
    "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
    "https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj"
  ],
  "searchType": "tracks",
  "maxResults": 20,
  "maxTracksPerItem": 100,
  "includeDiscography": false,
  "expandTracks": false,
  "scrapePreviewUrls": true,
  "includeRaw": false,
  "mode": "auto",
  "includeCharts": false,
  "followAlbums": false,
  "followSingles": false,
  "followPopularReleases": false,
  "minSaves": 0,
  "excludeSpotifyOwned": false,
  "enrichConcertDetails": false,
  "maxConcurrency": 5,
  "delayMs": 0,
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per result, in the run's default dataset.

# 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 = {
    "startUrls": [
        "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
        "https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/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 = {
    "startUrls": [
        "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
        "https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/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 '{
  "startUrls": [
    "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
    "https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call neuro-scraper/spotify-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/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/PvK4aVX5HPiQReRKe/builds/zfapbRgoY9FVSRi19/openapi.json
