# Spotify Scraper ($0.95/1K): Monthly Listeners, Plays (`tsutseisoftware/spotify-scraper`) Actor

Scrape Spotify artists (monthly listeners, followers, world rank, top cities), play counts of tracks and albums, playlists with all tracks, charts, podcasts, ISRC, credits and audio features. Track changes and playlist placements with notifications. No login.

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

## Pricing

from $0.79 / 1,000 results

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: Monthly Listeners, Play Counts, Playlists and Charts

Get the public numbers of Spotify without an account: **artists** with **monthly listeners, followers, world rank and top cities**, top tracks with **play counts**, discography, related artists, **genres**, **every upcoming concert**, biography and social links; **tracks and albums** with play counts, label, copyright, **30-second previews** and **genres, moods and activities**; **playlists with every track** (position, date added, plays); **charts** of 70+ countries (Top 50 daily, Top Songs weekly, **Top 200 with daily streams**), the global album and artist charts and the top artists by monthly listeners; **concerts** of artists and cities with venues and tickets; **podcasts and episodes** and podcast charts; **user profiles** on request; **recommendations**, new releases and New Music Friday; and searches for artists, tracks, albums, playlists, podcasts, episodes, audiobooks and users, in the countries and languages you choose. Paste open.spotify.com links, spotify: URIs, share links, IDs, artist names, **ISRC or UPC codes**. Add on request **ISRC, UPC and popularity**, **credits** (songwriters, producers) and **audio features** (tempo, key, energy, danceability). Extras: **change tracking between runs** (growth of monthly listeners in %, **streams per day**, new releases, tracks added to and removed from playlists, a history of daily values), **watching where your tracks sit in playlists and charts**, alerts to Slack, Discord, Telegram, WhatsApp or a webhook, and a printable HTML report. Export to Excel, CSV or JSON, or use it as a Spotify API.

This actor is not affiliated with Spotify.

### Why use this scraper?

- **All of Spotify in one actor:** artists, albums, tracks, playlists, charts, podcasts, episodes and audiobooks, from links, URIs, share links (spotify.link), bare IDs, artist names, ISRC and UPC codes or searches. No login, no cookies, no developer key.
- **The numbers Spotify shows, exact:** monthly listeners, followers, world rank, top 5 cities with their listeners, play count of every track (also of every track of a playlist or album), total plays of an album, playlist followers, podcast ratings.
- **For music marketing and A\&R:** related artists in depth ("Fans also like" of the related artists, up to 3 levels), the playlists that discovered an artist, the whole discography, social links (Instagram, Facebook, X, Wikipedia), playlist search with follower limits and without Spotify's own playlists, and curator contacts from playlist descriptions on request.
- **For catalog and royalty work:** ISRC to track and UPC to album, ISRC, UPC, label, copyright and ℗ lines, credits (the roles Spotify lists), languages of the vocals, popularity.
- **Track changes, not only numbers:** with **Track changes** every row has the previous value, the change and the change in %, monthly listeners per day and **streams per day**, a history of up to 60 daily values, new releases of artists, new episodes of podcasts, and the tracks added to or removed from a playlist since the previous run.
- **Playlist placement:** give your tracks or artists in **Watch tracks in playlists** and the run lists every playlist and chart where they are, at which position, and (with **Track changes**) when they were added, moved up or down, or removed.
- **Alerts:** a scheduled run sends what changed to Slack, Discord, Telegram, WhatsApp or your webhook.
- **Charts of 70+ countries:** Top 50 (daily) and Top Songs (weekly) with rank, previous rank, movement (up, down, new), the streams the chart counted and the total play counts; the **Top 200 with daily or weekly streams**, 7-day and total streams, days on the chart and the peak; the global weekly charts of albums and artists, the top artists by monthly listeners and the **chart history of a track** by day, week and country.
- **Concerts:** every upcoming concert of an artist (not only the 10 the page shows), concerts in any city by date, and on request each concert with its venue, coordinates, ticket sellers, prices, availability, line-up and genres.
- **Genres, moods and activities** of every track with their weights (pop 0.92, upbeat 0.76, gaming 0.52 …), and of albums and artists summed over their tracks; a **30-second preview** of every track that has one; the main color of covers.
- **For pitching:** playlist search in other countries and languages, filters for active playlists (last track added within N days), size, collaborative playlists, words, a curator contact, playlists you already pitched to, and the owner's followers on request.
- **Discovery:** recommendations for a track or an artist (sorted by target energy, danceability, mood or tempo if you like), Spotify's hand-picked new releases and New Music Friday of each country, search suggestions, and the releases of an artist as album and track rows with one row per song.
- **Podcasts:** episodes between two dates, chapters, links, sponsors and guests read from the descriptions, and the podcast charts of about 26 countries.
- **Cheap and fast:** about 150 artists or 1,000 playlist tracks a minute, no proxy needed, a printable HTML report and a Markdown table besides Excel, CSV and JSON.

### What data can you get?

| Row | Main fields |
|---|---|
| Artist | `name`, `monthlyListeners`, `followers`, `worldRank`, `topCities` (city, country, listeners), `topCity`, `verified`, `biography`, `imageUrl`, `headerImageUrl`, `galleryImageUrls`, `externalLinks`, `instagramUrl`, `facebookUrl`, `twitterUrl`, `wikipediaUrl`, `topTracks` (10 with play counts and previews), `topTracksPlayCount`, `albumCount`, `singleCount`, `compilationCount`, `appearsOnCount`, `latestRelease`, `discography`, `relatedArtists`, `discoveredOn`, `featuredInPlaylists`, `artistPlaylists`, `genres`, `moods`, `activities`, `descriptors`, `concerts` (every upcoming one), `concertCount`, `coverColor`; with **Add merch** `merch` (products, prices, availability); with **Add contacts from artists' websites** `website`, `websiteEmails`, `websitePhones` |
| Album | `name`, `albumType`, `artists`, `releaseDate`, `label`, `copyright`, `phonogramCopyright`, `trackCount`, `tracks` (each with play count and preview), `totalPlayCount`, `durationMs`, `coverUrl`, `coverColor`, `genres`, `moods`, `upc`, `popularity`, `moreAlbumsByArtist` |
| Track | `name`, `playCount`, `durationMs`, `explicit`, `artists`, `albumName`, `releaseDate`, `coverUrl`, `hasVideo`, `audioPreviewUrl`, `genres`, `moods`, `activities`, `descriptors`; with **Chart history of tracks** `chartHistory`, `chartPeaks`; with **Add ISRC, UPC and popularity** `isrc`, `popularity`, `languages`, `label`, `unavailableCountries`; with **Add credits** `credits`, `songwriters`, `producers` (as many credits as Spotify lists); with **Add audio features** `audioFeatures`; with **Add links on Deezer and Apple Music** `deezerUrl`, `appleMusicUrl` |
| Playlist | `name`, `description`, `followers`, `trackCount`, `isSpotifyOwned`, `ownerName`, `imageUrl`, `coverColor`, `lastUpdated`, `lastTrackAddedAt`, `firstTrackAddedAt`, `collaborative`, `memberCount`, `tracksAdded`, `tracksRemoved`; with **Add profiles of playlist owners** `ownerFollowers`, `ownerPlaylistCount`, `ownerVerified` |
| Playlist track | `playlistName`, `position`, `name`, `artistNames`, `playCount`, `addedAt`, `albumName`, `releaseDate`, `audioPreviewUrl`, `genres`, `moods` (+ ISRC, credits and audio features on request) |
| Chart entry | `chartName`, `chartCountry`, `chartDate`, `rank`, `previousRank`, `rankChange`, `entryStatus`, `chartStreams` (the streams the chart counted), `name`, `artistNames`, `playCount`; Top 200: `chartStreamsChange`, `sevenDayStreams`, `totalStreams`, `daysOnChart` or `weeksOnChart`, `peakRank`, `peakCount`; album and artist charts: `entityType`, `entityId`; top artists: `monthlyListeners`, `monthlyListenersDailyChange`, `peakListeners` |
| Concert | `name`, `startsAt`, `venue`, `city`, `region`, `country`, `artistNames`, `lineup`; with **Concert details** `latitude`, `longitude`, `metroArea`, `ticketOffers`, `ticketProviders`, `ticketUrls`, `availability`, `minPrice`, `maxPrice`, `currency`, `festival`, `genres` |
| Recommendation | `seedId`, `seedType`, `rank`, `name`, `artistNames`, `playCount`, `audioPreviewUrl`, `genres`, `targetDistance` (with targets) |
| User profile (personal data) | `name`, `followers`, `publicPlaylistCount`, `verified`, `imageUrl`, `userPlaylists`, `followerProfiles` (with **Followers of users**) |
| Podcast chart entry, search suggestion | `chartName`, `chartCountry`, `rank`, `entryStatus`, `name`, `podcastName`, `publisher`; suggestions: `name`, `searchRank` |
| Watched track | `name`, `playlistName`, `position`, `previousPosition`, `positionChange`, `playlistFollowers`, `addedAt`, `changeType` |
| Podcast and episode | `name`, `publisher`, `rating`, `ratingCount`, `topics`, `episodeCount`, `latestEpisodeDate`, `newEpisodes`; episodes: `releaseDate`, `durationMs`, `description`, `hasVideo`, `audioPreviewUrl`; with **Read episode descriptions** `chapters`, `links`, `sponsorDomains`, `mentionedHandles`, `guestHints` |
| Audiobook | `name`, `authors`, `narrators`, `publisher`, `price`, `listPrice`, `currency`, `rating`, `ratingCount`, `durationMs`, `releaseDate`, `topics` |

Search rows have `foundInCountries` and `foundInLanguages` with **Search in countries** and **Search in languages**. With **Track changes**: `changeType`, `changedFields`, `previous…`, `…Change`, `…ChangePercent`, `streamsPerDay`, `monthlyListenersPerDay`, `followersPerDay`, `daysSincePrevious`, `history`, `newReleases`. Every row has `id`, `rowType`, `url`, `uri`, `inputSource` and `scrapedAt`; with **Add the raw data** also `raw`, the whole answer of Spotify for the item.

Extra export formats: a printable HTML report or a Markdown table, besides Excel, CSV and JSON.

### How to use it

1. Paste Spotify links into **Spotify URLs, URIs or IDs**, or names into **Artist names**, or words into **Search terms**.
2. Turn on what you need: **Tracks of playlists**, **Whole discography of artists**, **Follow related artists**, **Add ISRC, UPC and popularity**, **Add credits**, **Add audio features**.
3. For a daily report schedule the run with **Track changes since the previous run** (and a notification channel).
4. Run it and download the results as Excel, CSV or JSON, or open the **Artists**, **Tracks**, **Playlist tracks**, **Charts** or **Changes** view.

### Use cases

#### Monthly listeners, followers and top cities of a list of artists

```json
{"artistNames": ["Taylor Swift", "Bad Bunny", "Daft Punk"]}
```

#### Every track of a playlist with play counts and ISRC

```json
{"startUrls": ["https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"], "maxTracksPerPlaylist": 0, "includeTrackCodes": true}
```

#### Today's Top 50 of the US, the UK and Germany

```json
{"chartCountries": ["US", "GB", "DE"], "chartType": "top50"}
```

#### Playlists to pitch to: user playlists about "lofi beats" with 1,000 to 50,000 followers, with curator contacts

```json
{"searchTerms": ["lofi beats"], "searchTypes": ["playlists"], "maxResultsPerSearch": 50, "excludeSpotifyPlaylists": true,
 "minFollowers": 1000, "maxFollowers": 50000, "includePlaylistTracks": false, "includeOwnerDetails": true}
```

#### Daily growth of your artists with an alert to Slack

```json
{"startUrls": ["https://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJ"], "trackChanges": true,
 "monitoringKey": "my-roster", "slackWebhookUrl": "https://hooks.slack.com/services/..."}
```

#### Where are my tracks in the charts and big playlists?

```json
{"startUrls": ["https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"], "chartCountries": ["Global", "US"],
 "watchTracks": ["https://open.spotify.com/track/0VjIjW4GlUZAMYd2vXMi3b"], "trackChanges": true, "includePlaylistTracks": false}
```

#### Catalog check: tracks by ISRC with credits and audio features

```json
{"isrcCodes": ["USUG11904206", "FR6P12602660"], "includeCredits": true, "includeAudioFeatures": true, "includeTrackCodes": true}
```

#### Every concert in Prague next month, with tickets and venues

```json
{"concertLocations": ["Prague, CZ"], "concertDateFrom": "2026-12-01", "concertDateTo": "2026-12-31", "concertDetails": true}
```

#### Today's Top 200 of Germany with daily streams

```json
{"chartCountries": ["DE"], "chartType": "top200Daily", "maxItems": 200}
```

#### Active curator playlists to pitch to, searched in the US, the UK and Brazil

```json
{"searchTerms": ["indie pop"], "searchTypes": ["playlists"], "searchCountries": ["US", "GB", "BR"], "excludeSpotifyPlaylists": true,
 "minFollowers": 500, "lastAddedWithinDays": 60, "skipCollaborative": true, "requireContact": "any", "includePlaylistTracks": false}
```

#### 50 recommendations for a track, the most energetic first

```json
{"recommendationSeeds": ["https://open.spotify.com/track/0VjIjW4GlUZAMYd2vXMi3b"], "targetEnergy": 0.9}
```

#### Genres of an artist and every track of their albums, one row per song

```json
{"startUrls": ["https://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJ"], "readReleases": true, "discographyTypes": ["albums"],
 "albumTracksAsRows": true, "dedupeTracks": true, "maxItems": 500}
```

#### A podcast's episodes of this year with chapters and sponsors

```json
{"startUrls": ["https://open.spotify.com/show/79CkJF3UJTHFV8Dse3Oy0P"], "episodesFrom": "2026-01-01", "maxEpisodesPerPodcast": 0,
 "parseEpisodeDescriptions": true}
```

#### A podcast with its 100 newest episodes

```json
{"startUrls": ["https://open.spotify.com/show/79CkJF3UJTHFV8Dse3Oy0P"], "maxEpisodesPerPodcast": 100}
```

#### An artist's network: related artists two levels deep

```json
{"startUrls": ["https://open.spotify.com/artist/4tZwfgrHOc3mvqYlEYSvVi"], "relatedArtistsDepth": 2, "maxItems": 200}
```

### Input details

- **Inputs:** a text or CSV file with Spotify links (**File with Spotify URLs**, e.g. a Google Sheet published as CSV), the dataset of another run (**Dataset with Spotify URLs**), open.spotify.com links of artists, albums, tracks, playlists, podcasts (show) and episodes (also with /intl-xx/, /embed/ and ?si=), spotify: URIs, share links (spotify.link, spoti.fi), bare 22-character IDs (**Type of bare IDs** says what they are), **Artist names** (the exact name first), **ISRC codes**, **UPC codes**, **Search terms** with **What to search**, and **Charts** (Global or a country name or code).
- **Filters and shape:** **Min monthly listeners** and **Min plays** leave out smaller artists and tracks (not charged), **Tracks of albums as rows** saves each album track as its own row, **Add the raw data** adds Spotify's whole answer.
- **Limits:** **Max results** counts every saved row (an artist, a playlist and its tracks together); **Max tracks per playlist**, **Max episodes per podcast** and **Max results per search** limit each source.
- **Search:** results come in Spotify's order, up to 1,000 per search term and kind; **Full details of search results** reads each result's own page (monthly listeners, play counts, followers). The follower, track and activity filters read each playlist, and the run reads on until the search has its results. **Search in countries** and **Search in languages** search again as a listener of each country or language and keep each result once. **Language of the results** sets the language of everything Spotify translates.
- **Concerts:** **Concerts in cities** takes city names (add the country for a common name: "Paris, FR") or GeoNames IDs, with **Concerts from** and **Concerts until**; **Concert details** saves each concert of the artists and cities as its own row.
- **Charts and discovery:** **Chart** chooses the chart of each country in **Charts**; **New releases**, **New Music Friday** and **Podcast charts** take country codes; **Recommendations for** takes tracks or artists.
- **Personal data:** user profiles (user links, user search, **Followers of users**), playlist owners and curators, the owner's profile and the contacts on artists' websites come only with the personal data options, off by default; you are responsible for processing personal data lawfully (GDPR).
- **Change tracking:** every row is compared with the previous run that had the same **Monitoring key**. The first run saves the baseline (`changeType: new`). **Only changed rows** returns only new and changed rows (with **Min change (%)**); playlists and podcasts are read in full for added and removed tracks and new episodes.

### How much does it cost to scrape Spotify?

Pay per event (the **Pricing** tab always shows the current prices):

| Event | When |
|---|---|
| Result | every saved row (an artist, album, track, playlist, playlist track, chart entry, watched track, podcast, episode or audiobook) |
| Track credits | a saved track with credits (with **Add credits**) |
| Audio features | a saved track with audio features (with **Add audio features**) |
| Personal data | a saved row with personal data: a playlist owner's name or profile, curator contacts, a user profile (with **Add playlist owners, curators and profiles**) or contacts from an artist's website (with **Add contacts from artists' websites**) |
| Actor start | once per run |
| Monitoring page | with **Only changed rows**: an item read and left out because it did not change |
| Extra page | a read that saved nothing (a code or name not found, a search without results, an item left out by a filter), and at the end of a run only if the run would otherwise cost more than it charged |
| Notification | once per run that sent its notification |

ISRC, UPC and popularity (with **Add ISRC, UPC and popularity**), links on Deezer and Apple Music, previews, genres, moods and activities, concerts and concert details, related artists, top cities, top tracks, discography, social links, chart movement and history, the Top 200 with streams, recommendations, merch, search in other countries and languages, change tracking and the exports are included in the price of the row. The platform (compute, traffic) is included. You can set a maximum cost per run; the actor stops when it is reached and saves only what the limit covers.

### Input example

```json
{
  "startUrls": ["https://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJ", "https://open.spotify.com/playlist/37i9dQZEVXbMDoHDwVN2tF"],
  "maxTracksPerPlaylist": 50,
  "includeTrackCodes": true,
  "maxItems": 100
}
```

### Output example

```json
{
  "rowType": "artist",
  "id": "1Xyo4u8uXC1ZmMpatF05PJ",
  "name": "The Weeknd",
  "url": "https://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJ",
  "verified": true,
  "monthlyListeners": 117278983,
  "followers": 130524416,
  "worldRank": 2,
  "topCity": "Mexico City",
  "topCityListeners": 1652572,
  "topCities": [{"city": "Mexico City", "country": "MX", "region": "CMX", "listeners": 1652572}],
  "topTracks": [{"rank": 1, "trackId": "7CyPwkp0oE8Ro9Dd5CUDjW", "trackName": "One Of The Girls (with JENNIE, Lily Rose Depp)", "playCount": 2976889720}],
  "albumCount": 15,
  "singleCount": 63,
  "relatedArtists": [{"artistId": "5pKCCKE2ajJHZ9KAiaK11H", "artistName": "Rihanna"}],
  "instagramUrl": "https://instagram.com/theweeknd/",
  "monthlyListenersChange": 250000,
  "monthlyListenersChangePercent": 0.214,
  "changeType": "changed"
}
```

```json
{
  "rowType": "playlistTrack",
  "playlistName": "Today's Top Hits",
  "position": 1,
  "name": "Flower In A Hurricane (feat. Tame Impala, SZA, King Gizzard & the Lizard Wizard) [From GTAVI: Original Score]",
  "artistNames": "Justice, Tame Impala, SZA, Grand Theft Auto VI, King Gizzard & The Lizard Wizard",
  "playCount": 66546931,
  "addedAt": "2026-11-20T05:02:01.898Z",
  "isrc": "FR6P12602660",
  "popularity": 93,
  "url": "https://open.spotify.com/track/4HCOHRCSQelz2GPX8iTamO"
}
```

### Limitations

- **Only what Spotify shows without an account.** Play counts are Spotify's (exact, over 1,000 plays); streams per day are computed from two runs. Spotify for Artists data (listener demographics, saves, sources of streams) is not public.
- **Lyrics are not provided:** full song lyrics are licensed, copyrighted texts (we decided not to offer them).
- **No audio downloads:** the actor never downloads songs or episodes (copyright).
- **Podcast transcripts** (and whether an episode has one) need a signed-in account, so they are not available.
- **Who a user follows** is not public without an account; a user's profile, public playlists and followers are (with the personal data option).
- **Credits** are as many as Spotify lists for a track (often the main roles only).
- **Concerts** are the upcoming concerts Spotify lists; an artist who is not on tour has none. Ticket prices are there only when the seller gives them to Spotify.
- **Genres** come from Spotify's descriptors of tracks; an artist's genres are summed over their top tracks (Spotify no longer shows artist genres on its pages).
- **Charts:** the daily Top 50 and weekly Top Songs of each country as Spotify shows them, and the latest daily or weekly Top 200 with streams; the Viral charts and a whole chart of a past date need an account of Spotify Charts (the history of one track is available with **Chart history of tracks**).
- **Previews:** Spotify has no 30-second preview for some tracks (label decisions); `audioPreviewUrl` is empty then.
- **Search** returns what Spotify shows for the words in the country of the run's address, at most 1,000 results per search term and kind.
- **Refusals:** when Spotify refuses a request, the actor asks again; it never solves CAPTCHAs. Items it could not read are listed in `SUMMARY` and the status.

### For AI agents and API users

Minimal input: `{"startUrls": ["https://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJ"]}`. Each row is flat at the top level with a stable `id` and a `rowType`; billing is per saved row, so `maxItems` caps the cost. `SUMMARY` in the run's key-value store has the rows by kind, the changes since the previous run, the watched tracks found and the inputs not found.

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("tsutseisoftware/spotify-scraper").call(
    run_input={"artistNames": ["Taylor Swift", "Bad Bunny"]})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["name"], row["monthlyListeners"], row["worldRank"])
```

cURL (runs the actor and returns the rows as JSON):

```bash
curl -X POST "https://api.apify.com/v2/acts/tsutseisoftware~spotify-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"chartCountries": ["Global"]}'
```

### Troubleshooting

- **"not found on Spotify":** check the link in the browser; an artist link looks like `https://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJ`. A bare ID needs the right **Type of bare IDs**.
- **An artist name gives another artist:** the run log says which artist each name meant; give the artist's link instead.
- **Fewer rows than expected:** check **Max results**, **Max tracks per playlist**, **Max episodes per podcast** and **Max results per search**.
- **"Spotify refused ...":** keep **Proxy configuration** on its default and try again later.

### Integrations

Connect the results to the tools you already use with the built-in integrations of Apify (the **Integrations** tab of the actor or of a saved task), with no code:

- **Google Sheets or Google Drive:** the results of every run in a spreadsheet or a file.
- **Zapier, Make and n8n:** start a workflow when a run finishes, or start the actor from one.
- **Slack or e-mail:** a message from Apify when a run finishes or fails.
- **Webhooks:** your own address gets the details of each run.
- **API and MCP:** run the actor from your code, or let an AI assistant run it through the Apify MCP server.

The results also download as Excel, CSV, JSON or XML from the **Output** tab.

### Privacy and error reports

When a run fails, the actor sends its developer a short error report: the error, the run ID and your input with secrets left out (tokens, webhooks, e-mails and similar values are hidden). Your results are never sent. Reports are deleted after at most 120 hours (5 days). To send nothing, turn off **Send error reports** (`sendErrorReports: false`). Questions about your data: open an issue in the **Issues** tab of this actor.

### WhatsApp notifications: setup

The actor sends the message from your own WhatsApp business number through the WhatsApp Cloud API of your Meta business account. You need a Meta business account; the actor uses only the values you enter in the **Notifications** section (the token and the numbers are stored encrypted and never written to the log).

1. **Create an app.** In Meta for Developers open **My Apps → Create app** and choose the use case **Connect with customers through WhatsApp**.
2. **Get a sending number.** In the app open **WhatsApp → API Setup**. You can start with the test number Meta gives you and add your own business number there later. Copy the **Phone number ID** (not the number itself) into **WhatsApp phone number ID**.
3. **Confirm the recipients (test number only).** A test number sends only to numbers on its list: in **API Setup**, under **To**, add each recipient's number and confirm it with the code WhatsApp sends to it.
4. **Create a permanent access token.** The token shown in API Setup expires within hours. In **Business settings → System users** add a system user, use **Assign assets** to give it your app (and your WhatsApp account), then **Generate token** for the app with the permissions `whatsapp_business_messaging` and `whatsapp_business_management` and the expiry you want. Paste it into **WhatsApp access token**.
5. **Create a message template (recommended).** In **WhatsApp Manager → Message templates → Create template** choose the category **Utility**, a name (e.g. `apify_results`) and a language, and write a body with two variables, for example: `New results of your Apify task: {{1}} Open the dataset: {{2}} (sent automatically after each run).` Meta does not accept a body that starts or ends with a variable and asks for sample values (e.g. `3 new jobs` and a dataset link); keep the text factual, a promotional text is moved to the Marketing category. Approval can take up to 24 hours. Enter the name in **WhatsApp template name** and its language code (e.g. `en_US`, `cs`, `pl`, `de`, as WhatsApp Manager shows it) in **WhatsApp template language**.
6. **Enter the recipients.** **WhatsApp recipient number** takes up to 5 numbers with the country code (e.g. `+420601234567`), separated by commas or new lines. Each number gets its own message.

**What the message contains.** With a template: `{{1}}` is the run summary with the first results on one line (title, company or price, place; never descriptions or contacts) and `{{2}}` the link to the dataset. A template with only `{{1}}` works too, it then gets the link at the end. Without a template the actor sends a text message with one link per result, like in Slack or Telegram.

**Without a template** WhatsApp delivers the message only when the recipient wrote to your business number in the last 24 hours (the customer service window), so a daily or hourly schedule needs a template. The run log says so once per run.

**What it costs.** Meta bills your business account, not this actor: per delivered message, by the message category (a template of the Utility category, or a service message for text in the 24-hour window, with a monthly free allowance per business number) and by the recipient's country. The current rates are in Meta's pricing of the WhatsApp Business Platform. The actor's own notification charge (see the **Pricing** tab) is once per run that delivered its notification, whatever the number of channels and recipients.

**Checked at the start.** When the run starts, the actor checks the token, the phone number ID and, when the token shows its WhatsApp account, the template (name, language, approval), without sending anything. Settings that can't work stop the run with a message that says what to fix, before anything is read from the website.

**When nothing arrives**, the run log names the WhatsApp error and what to do: a template that does not exist in that language or is not approved yet, a template with another number of variables, a recipient missing from the test number's list, an expired token, or the 24-hour window. A failed notification never fails the run and is not charged. Meta can accept a message and still not deliver it later (for example when the recipient's phone is not on WhatsApp); such a run counts as notified.

### More news, social and trend scrapers

The same clean output and alerts for another news, social or trend source:

- [Google Trends Scraper](https://apify.com/tsutseisoftware/google-trends-scraper): interest over time, by region and city, related queries, Trending now, keyword alerts and more than 5 terms on one scale
- [Google News Scraper](https://apify.com/tsutseisoftware/google-news-scraper): articles for any search, topic or country with the real publisher URL, full text and new article alerts
- [Telegram Channel Scraper](https://apify.com/tsutseisoftware/telegram-channel-scraper): posts of public Telegram channels with views, reactions and media, any date range, new, edited and deleted post alerts
- [Reddit Scraper](https://apify.com/tsutseisoftware/reddit-scraper): subreddit posts, full comment threads, searches and users without login, keyword and thread monitoring with alerts

### FAQ

#### Is there an official Spotify API for monthly listeners and play counts?

Spotify's official Web API does not give monthly listeners, play counts, world rank, top cities or credits. This actor reads the public numbers the Spotify web player shows to every visitor.

#### How do I get the play count of a Spotify song?

Paste the track link (or the album or playlist link for all its tracks) and run the actor: `playCount` is the number Spotify shows.

#### How do I track the growth of an artist on Spotify?

Schedule a daily run with **Track changes since the previous run**: each row has the change of monthly listeners and followers in numbers and percent, listeners per day and a history of daily values. Add a Slack, Discord, Telegram or WhatsApp channel for an alert.

#### Can I find playlists to pitch my music to?

Yes: search **Playlists** with your genre words, turn on **Leave out Spotify's own playlists** and set **Min followers** and **Max followers**. Curator contacts that are written in playlist descriptions come with **Add playlist owners and curator contacts (personal data)**.

#### Is it legal to scrape Spotify?

The actor reads only public data without signing in, at a polite pace, and it never solves CAPTCHAs or other access checks. Spotify's terms of service may restrict automated access and reuse, and some data (playlist owners and curator contacts) are personal data, available only on request; you are responsible for processing them lawfully (GDPR). If in doubt, consult a lawyer. This actor is not affiliated with, endorsed by or connected to Spotify.

#### Do I need a Spotify account, cookies or a proxy?

No. The actor needs no login, cookies or developer key, and no proxy, also for the results of other countries.

#### Can I get the concerts of an artist or a city?

Yes. Artist rows have every upcoming concert by default; **Concerts in cities** lists the concerts of a city by date, and **Concert details** adds the venue with coordinates, the ticket sellers, prices and availability, the line-up and the genres.

#### Does it give genres?

Yes: every track has its genres, moods and activities with their weights, and albums and artists have them summed over their tracks.

#### How is it different from other Spotify scrapers?

One actor for artists, albums, tracks, playlists, charts, podcasts, audiobooks, ISRC and UPC, with credits and audio features on request, and with what others do not have: change tracking with streams per day and history, playlist placement of your tracks, alerts, and a printable report.

#### Can I use it via API, Make, Zapier or n8n?

Yes, like any Apify actor: run it through the Apify API or an integration, schedule it, and read the dataset in JSON, CSV or Excel. Notifications can also post to any webhook.

### Your feedback

Missing a field or an option? Every run's log ends with a link where you can tell us. Also known as a Spotify API, Spotify monthly listeners scraper, Spotify play count checker, Spotify playlist scraper, Spotify charts scraper or Spotify artist data tool.

# Actor input Schema

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

Artists, albums, tracks, playlists, podcasts, episodes, concerts and user profiles: open.spotify.com links (also with /intl-xx/, /embed/ and ?si=), spotify: URIs, short share links (spotify.link), artist shops (shop.spotify.com) or bare IDs (see "Type of bare IDs"). E.g. https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M. User profiles need the personal data option.

## `artistNames` (type: `array`):

Names of artists (e.g. Taylor Swift, Daft Punk); each is looked up on Spotify, the exact name first.

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

Keywords to search on Spotify (e.g. "lofi beats", "techno berlin"); what is searched is set in "What to search".

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

The most rows the run saves (artists, tracks, playlist tracks, episodes … together); 0 = no limit.

## `startUrlsFileUrl` (type: `string`):

Link to a text or CSV file (e.g. a published Google Sheet as CSV) with Spotify URLs, URIs or share links anywhere in it; every link found is read.

## `inputDatasetId` (type: `string`):

A dataset of your earlier runs (of this or another actor): the url or uri of every item is read. The run can read only the dataset you pick here.

## `searchTypes` (type: `array`):

Kinds of results of every search term (each kind is a separate search). User profiles need "Add playlist owners, curators and profiles (personal data)"; search suggestions are what Spotify suggests while you type the term.

## `maxResultsPerSearch` (type: `integer`):

Results of each search term and kind, in Spotify's order (up to 1,000).

## `searchDetails` (type: `boolean`):

Read each result's own page: monthly listeners, followers, world rank and top tracks of artists, play counts of tracks, followers and tracks of playlists. Off: the data of the search results only (name, artists, image, release date), faster.

## `searchCountries` (type: `array`):

Search as a listener in each of these countries (codes such as US, BR, DE; up to 20): each result once, with foundInCountries. Empty: the results of the country the run reads from.

## `searchLanguages` (type: `array`):

Search again in each of these languages (codes such as en, es, ja; up to 20): each result once, with foundInLanguages.

## `excludeSpotifyPlaylists` (type: `boolean`):

Playlist search: only playlists of users and curators (for pitching), not the editorial ones.

## `minFollowers` (type: `integer`):

Playlist search: only playlists with at least this many followers (reads each playlist).

## `maxFollowers` (type: `integer`):

Playlist search: only playlists with at most this many followers (reads each playlist).

## `minTracks` (type: `integer`):

Playlist search and playlists of users: only playlists with at least this many tracks.

## `lastAddedWithinDays` (type: `integer`):

Playlist search and playlists of users: only active playlists, with a track added in the last N days (e.g. 90).

## `skipCollaborative` (type: `boolean`):

Playlist search and playlists of users: leave out playlists that other users can edit.

## `excludeKeywords` (type: `array`):

Playlist search and playlists of users: leave out playlists whose name or description has one of these words (e.g. "christmas", "sleep").

## `requireContact` (type: `string`):

Playlist search and playlists of users: only playlists whose description has a contact of the curator. The contacts themselves are in the rows only with "Add playlist owners, curators and profiles".

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

Playlist URLs or IDs to leave out of searches (e.g. the ones you already pitched to).

## `excludePlaylistsDatasetId` (type: `string`):

A dataset of an earlier run: its playlists are left out of the searches of this run.

## `isrcCodes` (type: `array`):

Tracks by ISRC (e.g. USUG11904206); the match is checked against the track's own code.

## `upcCodes` (type: `array`):

Albums by UPC or EAN barcode (e.g. 00602508924224).

## `chartCountries` (type: `array`):

Spotify charts of these countries: "Global" or a country name or code (US, GB, DE, CZ, BR …). One row per chart entry with rank, previous rank, movement and play count.

## `chartType` (type: `string`):

Which chart of each country. The Top 200 has the daily or weekly streams, 7-day and total streams, days on the chart and the peak (about 70 countries); the global charts of albums and artists and the top artists by monthly listeners need "Charts" = Global.

## `chartDetails` (type: `boolean`):

Artist charts: save each artist as a full artist row (monthly listeners, followers, top cities …) instead of a chart row.

## `includeChartHistory` (type: `boolean`):

Track rows: the track's positions and streams in the Spotify charts by day and week and by country, with the totals and peaks.

## `newReleasesCountries` (type: `array`):

Spotify's hand-picked new releases of these countries (codes such as US, DE, CZ): one album row each.

## `newMusicFridayCountries` (type: `array`):

Spotify's New Music Friday playlist of these countries (US, GB, DE, FR, CZ, Global …) with its tracks.

## `podcastChartCountries` (type: `array`):

Spotify's podcast charts of these countries (US, GB, DE, FR, BR, AU … about 26 countries).

## `podcastChart` (type: `string`):

Which podcast chart of each country.

## `concertLocations` (type: `array`):

Cities (e.g. Prague, London, "Paris, FR") or GeoNames IDs: one concert row per upcoming concert, by date.

## `concertDateFrom` (type: `string`):

With "Concerts in cities": the first day (YYYY-MM-DD, or +7 = in 7 days).

## `concertDateTo` (type: `string`):

With "Concerts in cities": the last day (YYYY-MM-DD, or +90).

## `maxConcertsPerCity` (type: `integer`):

Concerts of each city, the soonest first; 0 = all.

## `includeConcerts` (type: `boolean`):

Artist rows: every upcoming concert in "concerts" (the artist page shows the first 10).

## `concertDetails` (type: `boolean`):

Save each concert of the artists and cities as its own row with the venue, coordinates, tickets (sellers, prices, availability), line-up and genres.

## `recommendationSeeds` (type: `array`):

Track or artist URLs: up to 50 recommended tracks each (Spotify's radio of the seed), as recommendation rows.

## `maxRecommendations` (type: `integer`):

Recommended tracks of each seed.

## `targetEnergy` (type: `number`):

Recommendations: sort by how close the track is to this value (0–1); the tracks get their audio features, charged as "Audio features".

## `targetDanceability` (type: `number`):

Recommendations: sort by how close the track is to this value (0–1); the tracks get their audio features, charged as "Audio features".

## `targetValence` (type: `number`):

Recommendations: sort by how close the track is to this value (0–1); the tracks get their audio features, charged as "Audio features".

## `targetTempo` (type: `number`):

Recommendations: sort by how close the track is to this value (BPM); the tracks get their audio features, charged as "Audio features".

## `defaultType` (type: `string`):

What a 22-character ID without a URL is.

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

All albums, singles and compilations of each artist (release date, type, number of tracks). Off: the latest 10 of each kind, as the artist page shows.

## `readReleases` (type: `boolean`):

Read each release of the artists as an album row (with "Tracks of albums as rows" every track with its play count); "Kinds of releases" and "Max releases per artist" choose which.

## `discographyTypes` (type: `array`):

With "Releases of artists as rows": which releases (empty = albums, singles and compilations).

## `maxReleasesPerArtist` (type: `integer`):

With "Releases of artists as rows": the newest N; 0 = all.

## `dedupeTracks` (type: `boolean`):

With "Tracks of albums as rows": a song on several releases (album, single, deluxe) is saved once, from the newest release read.

## `relatedArtistsDepth` (type: `integer`):

Also read the artists of "Fans also like": 1 = the related artists of your artists, 2 = their related artists too, and so on (each one is a row; "Max results" stops it).

## `includePlaylistTracks` (type: `boolean`):

Save every track of a playlist as its own row (position, date added, play count, artists, album).

## `maxTracksPerPlaylist` (type: `integer`):

Tracks of each playlist, from the top; 0 = all.

## `includeEpisodes` (type: `boolean`):

Save the episodes of a podcast as rows, the newest first.

## `episodesFrom` (type: `string`):

Only episodes released on this day or later (YYYY-MM-DD, or -30 = in the last 30 days).

## `episodesTo` (type: `string`):

Only episodes released on this day or earlier (YYYY-MM-DD).

## `parseEpisodeDescriptions` (type: `boolean`):

Episode rows: the chapters (time and title), links, sponsors' websites, @handles and guests named in the description and title.

## `maxEpisodesPerPodcast` (type: `integer`):

Episodes of each podcast; 0 = all.

## `albumTracksAsRows` (type: `boolean`):

Also save every track of an album as its own track row (play count, number, length); the album row keeps the list either way.

## `minMonthlyListeners` (type: `integer`):

Leave out artists with fewer monthly listeners (not charged).

## `minPlayCount` (type: `integer`):

Leave out tracks, playlist tracks and chart entries with fewer plays (not charged).

## `includePreviewUrls` (type: `boolean`):

The 30-second preview (audioPreviewUrl) of every track, playlist track, chart entry and album track that has one.

## `includeGenres` (type: `boolean`):

Genres, moods and activities with their weights of tracks, playlist tracks and chart entries; of albums and artists summed over their tracks.

## `language` (type: `string`):

Language code (en, es, de, ja, pt-BR …): the language of names Spotify translates (genres, editorial playlists, descriptions) and of search results.

## `includeMerch` (type: `boolean`):

Artist rows: the products of the artist's shop on Spotify (title, price, currency, availability, variants, link).

## `includeRawData` (type: `boolean`):

Add the whole answer of Spotify for each artist, album, track, playlist, podcast and episode as the field raw (large rows; for developers who want every field).

## `includeTrackCodes` (type: `boolean`):

ISRC, popularity (0–100), languages and the countries where a track is not available, of tracks and playlist tracks; UPC and popularity of albums. Included in the price of the row.

## `includeCredits` (type: `boolean`):

Songwriters, producers and the other roles Spotify credits for tracks and playlist tracks. Charged as "Track credits" per row that has them.

## `includeAudioFeatures` (type: `boolean`):

Tempo (BPM), key, mode, energy, danceability, valence, loudness, acousticness and more of tracks and playlist tracks. Charged as "Audio features" per row that has them.

## `includeOwnerDetails` (type: `boolean`):

Names and usernames of the users who own a playlist or added a track, the e-mails, @handles and profile links a curator wrote into the description, and user profiles (from user links or a search). Off: only Spotify's own name is kept, contacts are removed from descriptions and profiles are not read. You are responsible for processing personal data lawfully (GDPR). Charged as "Personal data" per row that has them.

## `includeOwnerProfile` (type: `boolean`):

With the personal data option, playlist rows: the owner's followers, number of public playlists and verified badge.

## `readUserPlaylists` (type: `boolean`):

User profiles: every public playlist of the user in the row, and each playlist read as a playlist row (the playlist filters of the search apply).

## `includeUserFollowers` (type: `boolean`):

User profiles: the list of the users who follow them, with their followers.

## `includeArtistContacts` (type: `boolean`):

Artist rows: the artist's own website (from its Spotify profile or its encyclopedia entry) and the e-mails and phone numbers on it (booking, management). You are responsible for processing personal data lawfully (GDPR). Charged as "Personal data" per row that has them.

## `includeCrossPlatformLinks` (type: `boolean`):

The same track on Deezer (matched by ISRC) and the same album on Deezer and Apple Music (by UPC) with its tracks. Included in the price of the row.

## `trackChanges` (type: `boolean`):

Adds the previous value, the change and the change in percent of monthly listeners, followers, world rank, play counts and chart ranks, streams and listeners per day, a history of up to 60 daily values, new releases of artists, tracks added to and removed from playlists and new podcast episodes.

## `onlyChanged` (type: `boolean`):

Return only rows that are new or changed since the previous run (with "Min change"). Every item read and left out is charged as one "Monitoring page".

## `minChangePercent` (type: `number`):

With "Only changed rows": a change of monthly listeners, followers or plays smaller than this is not returned (e.g. 5 = 5 %). New releases, added or removed tracks and new episodes always are.

## `watchTracks` (type: `array`):

Tracks (URL, ID or ISRC) or artists (URL) to look for in the playlists, charts and playlist searches of the run: one row per playlist where they are, with the position; with "Track changes" also when they were added, moved or removed.

## `monitoringKey` (type: `string`):

Name of the remembered state; use a different key for every watch list. Empty = "default".

## `telegramBotToken` (type: `string`):

Token of your bot from @BotFather.

## `telegramChatId` (type: `string`):

Chat, group or channel to send to (e.g. 123456789 or -1001234567890).

## `slackWebhookUrl` (type: `string`):

Incoming webhook (https://hooks.slack.com/...).

## `discordWebhookUrl` (type: `string`):

Webhook of your Discord channel (https://discord.com/api/webhooks/...). In Discord: channel settings → Integrations → Webhooks → Copy Webhook URL. Stored encrypted.

## `webhookUrl` (type: `string`):

Any HTTPS URL (Zapier, Make, n8n, your server): receives the rows as JSON.

## `whatsappAccessToken` (type: `string`):

Access token of the WhatsApp Cloud API of your Meta business account, used with "WhatsApp phone number ID" and "WhatsApp recipient number" (step by step in the README, section "WhatsApp notifications: setup"). For scheduled runs use a permanent token of a system user: Business settings → System users → Generate token, with the permissions whatsapp_business_messaging and whatsapp_business_management; the token of WhatsApp → API Setup expires within hours. Stored encrypted.

## `whatsappPhoneNumberId` (type: `string`):

ID of your WhatsApp business number that sends the message (not the number itself), e.g. 106540352242922. In your Meta app: WhatsApp → API Setup → Phone number ID.

## `whatsappTo` (type: `string`):

Phone number that gets the message, in international format with the country code (e.g. +420601234567); up to 5 numbers separated by commas or new lines, each gets its own message and the notification is charged once per run. A test number of Meta sends only to numbers you added and confirmed under API Setup → To. Stored encrypted.

## `whatsappTemplateName` (type: `string`):

Name of your approved message template (WhatsApp Manager → Message templates, e.g. apify_results), recommended: WhatsApp delivers a template message at any time. Its body gets the run summary with the first results in {{1}} and the dataset link in {{2}} (a template with only {{1}} gets both in {{1}}). Empty: a plain text message, which WhatsApp delivers only when the recipient wrote to your business number in the last 24 hours, so a scheduled run usually needs a template. Meta charges your business account for template messages (step by step in the README, section "WhatsApp notifications: setup").

## `whatsappTemplateLanguage` (type: `string`):

Language code of the template exactly as WhatsApp Manager → Message templates shows it next to the template, e.g. en_US, en_GB, cs, sk, pl or de. Used only with "WhatsApp template name".

## `webhookHeaders` (type: `object`):

HTTP headers sent with the webhook, e.g. {"Authorization": "Bearer <your token>"} for a server that needs a key. Header values are hidden in error reports.

## `notificationLimit` (type: `integer`):

How many rows the message lists.

## `notifyOnlyChanges` (type: `boolean`):

No message after a run that saved nothing (with "Track changes": that found no change).

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

Not needed: Spotify works without a proxy (a run whose address is refused goes on through Apify Proxy by itself). For the search results of other countries use "Search in countries".

## `exportFormats` (type: `array`):

Off by default. Printable HTML report: the results as a clean, branded table with the main columns, made for printing, saving as PDF or sending to someone; for working with the data use Excel or CSV, which have every field. Markdown table: the same columns as text for AI tools, docs or GitHub. The Output tab links the files. Each file has the overview columns of every saved row and nothing is left out, so a run with tens of thousands of rows makes a file of tens of MB that can be slow to open; for big runs use the dataset or its Excel export. Excel (XLSX), CSV and JSON are always in the Output tab and under Export, at no extra cost.

## `sendErrorReports` (type: `boolean`):

When a run fails, send the developer a short error report: the error and your input with secrets left out (tokens, webhooks and e-mails are hidden). Your results are never sent. Reports are deleted after at most 120 hours. Turn off to send nothing.

## Actor input object example

```json
{
  "startUrls": [
    "https://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJ",
    "https://open.spotify.com/playlist/37i9dQZEVXbMDoHDwVN2tF"
  ],
  "maxItems": 20,
  "searchTypes": [
    "artists"
  ],
  "maxResultsPerSearch": 20,
  "searchDetails": false,
  "excludeSpotifyPlaylists": false,
  "skipCollaborative": false,
  "requireContact": "none",
  "chartType": "top50",
  "chartDetails": false,
  "includeChartHistory": false,
  "podcastChart": "topPodcasts",
  "maxConcertsPerCity": 100,
  "includeConcerts": true,
  "concertDetails": false,
  "maxRecommendations": 50,
  "defaultType": "artist",
  "includeDiscography": false,
  "readReleases": false,
  "dedupeTracks": false,
  "relatedArtistsDepth": 0,
  "includePlaylistTracks": true,
  "maxTracksPerPlaylist": 100,
  "includeEpisodes": true,
  "parseEpisodeDescriptions": false,
  "maxEpisodesPerPodcast": 20,
  "albumTracksAsRows": false,
  "includePreviewUrls": true,
  "includeGenres": true,
  "language": "en",
  "includeMerch": false,
  "includeRawData": false,
  "includeTrackCodes": false,
  "includeCredits": false,
  "includeAudioFeatures": false,
  "includeOwnerDetails": false,
  "includeOwnerProfile": false,
  "readUserPlaylists": false,
  "includeUserFollowers": false,
  "includeArtistContacts": false,
  "includeCrossPlatformLinks": false,
  "trackChanges": false,
  "onlyChanged": false,
  "whatsappTemplateLanguage": "en_US",
  "notificationLimit": 10,
  "notifyOnlyChanges": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "exportFormats": [],
  "sendErrorReports": true
}
```

# Actor output Schema

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

No description

## `summary` (type: `string`):

No description

## `excel` (type: `string`):

All saved rows as an Excel file, with every field.

## `htmlReport` (type: `string`):

The saved rows with the main columns as a clean table to print, save as PDF or send; only when "Extra export formats" includes it. Excel has every field.

## `markdown` (type: `string`):

The saved rows as a Markdown table, handy for AI tools, docs and GitHub; only when "Extra export formats" includes Markdown.

# 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/1Xyo4u8uXC1ZmMpatF05PJ",
        "https://open.spotify.com/playlist/37i9dQZEVXbMDoHDwVN2tF"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tsutseisoftware/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/1Xyo4u8uXC1ZmMpatF05PJ",
        "https://open.spotify.com/playlist/37i9dQZEVXbMDoHDwVN2tF",
    ],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("tsutseisoftware/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/1Xyo4u8uXC1ZmMpatF05PJ",
    "https://open.spotify.com/playlist/37i9dQZEVXbMDoHDwVN2tF"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call tsutseisoftware/spotify-scraper --silent --output-dataset

```

## MCP server setup

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