# Spotify Scraper - Streams, Monthly Listeners, Charts (`pshivam/spotify-stats-scraper`) Actor

Scrape Spotify stream counts for every track and album of an artist, monthly listeners, top artists and daily or weekly charts for 70+ countries. No login or API key. Daily numbers, only-new mode. Export to Excel, CSV or API.

- **URL**: https://apify.com/pshivam/spotify-stats-scraper.md
- **Developed by:** [Shivam Prajapati](https://apify.com/pshivam) (community)
- **Categories:** For creators, 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 $1.40 / 1,000 records

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 - Streams, Monthly Listeners, Charts

**Get Spotify's numbers as clean rows, without a login or an API key.** Give artist names or Spotify links and get the **stream count of every track and album**, the daily streams, the artist's **monthly listeners** and total streams. Get Spotify's **daily and weekly charts for 70+ countries**, the **top artists by monthly listeners** and by streams, and the **most streamed songs of all time or of any year**. The numbers are updated every day, so you can schedule the Actor and keep a history. Export to Excel, CSV, JSON or the API.

**Actively maintained.** Last update: 2026-11-13. Every release passes 130+ automated tests on real saved pages, and Apify test-runs it every day.

### What can you use it for?

- **Play counts per track.** See which songs of an artist carry the streams, and which grow fastest today.
- **Artist scouting for labels, managers and A\&R.** Rank artists by monthly listeners and by the change in the last day. Find artists with a rising number.
- **Playlist and chart research.** Daily and weekly charts of any country with position change, peak, days on chart and streams.
- **Market comparisons.** The same song or artist across countries.
- **Music journalism and newsletters.** Records, milestones and the most streamed songs of a year.
- **Dashboards.** Schedule the Actor daily with **Only new records** to build your own history of streams and listeners in Sheets or a database.

### What data do you get?

One row per track, album, artist or chart entry. The `recordType` says which.

| Field | What it is |
|---|---|
| `recordType` | `track`, `artist`, `album` or `chart` |
| `rank` | Position in the ranking: chart position, rank among top listeners or streams |
| `artist`, `artistId` | The artist's name and Spotify id |
| `featuredArtists` | Featured artists of a chart song |
| `track`, `trackId` | The track's title and Spotify id |
| `album`, `albumId` | The album's title and Spotify id |
| `isFeature` | True when the artist is only featured on the track |
| `country`, `period` | The chart's country code (`global` for the world) and `daily` or `weekly` |
| `dataDate` | The date the numbers are for |
| `positionChange` | Chart position change: `=`, `+3`, `-1` or `NEW` |
| `periodsOnChart`, `peakPosition`, `peakTimes` | Days or weeks on the chart, the best position and how often it was reached |
| `streams` | All-time streams of a track, album or artist. For charts: the streams of the day or week |
| `dailyStreams` | Streams per day now |
| `streamsChange` | Chart streams change against the previous day or week |
| `weeklyStreams`, `weeklyStreamsChange` | Streams of the last 7 days and their change (daily charts) |
| `chartTotalStreams` | Streams since the song entered this chart |
| `monthlyListeners`, `listenersChange` | The artist's monthly listeners and the change in the last day |
| `listenersPeakRank`, `listenersPeak` | The best listener rank and the highest number of monthly listeners |
| `streamsAsLead`, `streamsSolo`, `streamsAsFeature`, `trackCount` | An artist's streams split by role and the number of tracks |
| `spotifyUrl` | The Spotify link |
| `sourceUrl`, `scrapedAt` | The page the numbers come from and when the record was collected |

#### Example results

```json
{"recordType": "track", "artist": "Taylor Swift", "artistId": "06HL4z0CvFAxyc27GXpf02", "track": "Cruel Summer", "trackId": "1BxfuPKGuaTgP7aM0Bbdwr", "isFeature": false, "dataDate": "2026-11-12",
 "streams": 3535308675, "dailyStreams": 765585, "spotifyUrl": "https://open.spotify.com/track/1BxfuPKGuaTgP7aM0Bbdwr", "sourceUrl": "https://kworb.net/spotify/artist/06HL4z0CvFAxyc27GXpf02_songs.html"}
```

```json
{"recordType": "artist", "rank": 6, "artist": "Taylor Swift", "artistId": "06HL4z0CvFAxyc27GXpf02", "dataDate": "2026-11-12", "streams": 133365072608, "dailyStreams": 43121711,
 "monthlyListeners": 96961117, "listenersChange": -148324, "streamsAsLead": 129385640040, "streamsSolo": 118451534652, "streamsAsFeature": 3979432568, "trackCount": 670}
```

```json
{"recordType": "chart", "rank": 1, "artist": "Tate McRae", "artistId": "45dkTj5sMRSjrmBSBeiHym", "featuredArtists": [], "track": "Housewife", "trackId": "2sFepQNyl1WjpROruP8bJ0", "country": "us",
 "period": "daily", "dataDate": "2026-11-11", "positionChange": "=", "periodsOnChart": 27, "peakPosition": 1, "peakTimes": 23, "streams": 1009385, "streamsChange": -52983,
 "weeklyStreams": 7481241, "weeklyStreamsChange": -189790, "chartTotalStreams": 40055776}
```

### How to use it

1. Choose **What to get**: tracks, artists, albums, charts, top listeners, top artists or top tracks.
2. For tracks, artists and albums, enter the **Artists**: names, Spotify links or ids, one per line.
3. For charts, enter the **Countries** (names or codes such as `us`, `gb`, `de`) and the **Chart periods**.
4. Press Start. Each page takes a fraction of a second.

#### Input options

| Input | What it does |
|---|---|
| `resultType` | `tracks`, `artists`, `albums`, `charts`, `topListeners`, `topArtists` or `topTracks` |
| `artists` | Names, Spotify links or artist ids for tracks, artists and albums. A link or id always works. A name must be among the top artists the source lists |
| `countries` | For charts: country names or codes, or `global`. Empty means `global` |
| `periods` | For charts: `daily`, `weekly` or both. Empty means `daily` |
| `songsYear` | For `topTracks`: `all` or a year such as `2025` |
| `includeFeatures` | For tracks: also return the tracks where the artist is featured. On by default |
| `onlyNew` | Skip rows of days that earlier runs of the same search already returned |
| `maxItems` | Stop after this many records. 1,000 by default |
| `maxConcurrency` | Pages read at the same time. 2 by default |
| `secondsBetweenRequests` | Pause between requests. 0.5 seconds by default |

### How much does it cost?

You pay per record returned, nothing else. The 500 tracks of a big artist cost about $1.00 on the Free plan. A country chart of 200 songs costs $0.40. The first Apify plan includes free monthly credit to try it.

| Plan | Price per 1,000 records |
|---|---|
| Free | $2.00 |
| Bronze | $1.80 |
| Silver | $1.60 |
| Gold | $1.40 |

### Use it via API, on a schedule, or with your tools

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/spotify-stats-scraper").call(run_input={
    "resultType": "tracks",
    "artists": ["Taylor Swift", "Bad Bunny"],
    "maxItems": 200,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["artist"], row["track"], row["streams"], row["dailyStreams"])
```

**Build your own history.** Schedule the Actor in the Apify Console (Schedules), for example every day, with **Only new records** on. The numbers change every day, so each new day is returned and charged once. Connect the dataset to Google Sheets, a database, Slack, Make, Zapier or n8n with Apify's integrations.

#### Use it in Clay, n8n, Make or Zapier

Use the Actor ID `pshivam/spotify-stats-scraper` and this input:

```json
{"resultType": "charts", "countries": ["us", "gb", "de"], "periods": ["daily"], "onlyNew": true}
```

### This scraper vs. the alternatives

| | This Actor | Spotify Web API | Other scrapers |
|---|---|---|---|
| Login or API key | None | Developer account and keys | Often none |
| Stream counts per track | Yes | No (popularity score only) | Some |
| Monthly listeners | Top 2,500 artists | No | Some |
| Charts of 70+ countries | Yes | No | Some |
| Most streamed songs by year | Yes | No | Rarely |
| Only new days | Yes | By code | Some |
| Price | $2.00 per 1,000 records | Free, your time | $1 to $4 per 1,000 |

### Good to know

- **Where the numbers come from.** The Actor reads the public statistics site Kworb, which collects Spotify's public numbers every day. The numbers are as fresh as the site: one update a day. `dataDate` tells which day.
- **Up to 500 tracks per artist.** The source lists the 500 most streamed tracks of an artist. `trackCount` in the artist row is the full number of tracks counted.
- **Monthly listeners** are available for the 2,500 artists with the most listeners. For other artists `monthlyListeners` is empty and the streams are still returned.
- **Names need the list.** A name is matched against the top artists that the source lists (listeners and total streams). An artist outside those lists needs the Spotify link or id.
- **Rounded totals in `topArtists`.** The source gives these totals in millions to one decimal, so they are exact to 100,000 streams (daily to 1,000).
- **Playlists, followers and podcasts** are not part of the data.
- **Independent tool.** Not affiliated with or endorsed by Spotify or Kworb. It reads public pages at a gentle pace.

### FAQ

#### How do I get the play count of every track of an artist?

Enter the artist in `artists`, leave `resultType` on `tracks` and press Start. You get one row per track with `streams` (all-time play count) and `dailyStreams`.

#### How do I get an artist's monthly listeners?

Set `resultType` to `artists`. The row has `monthlyListeners` and `listenersChange` for artists in the top 2,500. Set `resultType` to `topListeners` to get the whole ranking.

#### Do I need a Spotify account or API key?

No. The Actor reads public pages and never logs in.

#### Which countries have charts?

More than 70, including `global`, `us`, `gb`, `de`, `fr`, `br`, `mx`, `in`, `jp`, `au` and `ca`. Use the country name or the two-letter code.

#### How do I get the charts every day?

Schedule the Actor daily with `resultType` `charts` and `onlyNew` on. Each day's chart is returned once.

#### What are the most streamed songs of a year?

Set `resultType` to `topTracks` and `songsYear` to a year such as `2025`. Use `all` for all time.

#### How fresh are the numbers?

The source updates once a day. `dataDate` in every row is the day of the numbers.

#### Can I get playlists, followers or podcasts?

No. The Actor returns streams, monthly listeners and charts.

# Actor input Schema

## `resultType` (type: `string`):

tracks: every track of the artists with its total streams and daily streams. artists: one summary row per artist with total streams and monthly listeners. albums: every album of the artists with streams. charts: Spotify's daily or weekly chart of countries. topListeners: the artists with the most monthly listeners. topArtists: the artists with the most streams. topTracks: the most streamed songs of all time or of a year.

## `artists` (type: `array`):

For tracks, artists and albums: artist names (Taylor Swift), Spotify links (https://open.spotify.com/artist/...) or Spotify artist ids. One per line. Names are matched against the top artists that Kworb lists; a link or id always works.

## `countries` (type: `array`):

For charts: country names or two-letter codes (us, gb, de, in, br), or global. One per line. Empty means global. More than 70 countries have a chart.

## `periods` (type: `array`):

For charts: daily (the last day, with the 7-day numbers), weekly, or both. Empty means daily.

## `songsYear` (type: `string`):

For topTracks: all for all time, or a year such as 2025. Years before 2010 are available for 2005, 2000, 1990 and so on.

## `includeFeatures` (type: `boolean`):

For tracks: also return the tracks where the artist is a featured artist, marked with isFeature.

## `onlyNew` (type: `boolean`):

Skip rows of days that earlier runs of this same search already returned, so you get and pay for new days only. Schedule it daily to collect a history. The first run works as usual and remembers what it returned, in your key-value store 'spotify-stats-scraper-only-new'.

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

Stop after this many records in total. You are charged per record.

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

How many pages are read in parallel. The source is a small site, so keep it low.

## `secondsBetweenRequests` (type: `number`):

Pause between requests. After a slow-down answer the Actor doubles the pause and switches to Apify Proxy when it can.

## Actor input object example

```json
{
  "resultType": "tracks",
  "artists": [
    "Taylor Swift"
  ],
  "songsYear": "all",
  "includeFeatures": true,
  "onlyNew": false,
  "maxItems": 100,
  "maxConcurrency": 2,
  "secondsBetweenRequests": 0.5
}
```

# Actor output Schema

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

Tracks and albums with total and daily streams.

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

Artists with streams and monthly listeners.

## `charts` (type: `string`):

Chart rows with position, streams and change.

## `runStats` (type: `string`):

Requests made, time spent and number of records for this run (RUN_STATS record).

# 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 = {
    "artists": [
        "Taylor Swift"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("pshivam/spotify-stats-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 = {
    "artists": ["Taylor Swift"],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("pshivam/spotify-stats-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 '{
  "artists": [
    "Taylor Swift"
  ],
  "maxItems": 100
}' |
apify call pshivam/spotify-stats-scraper --silent --output-dataset

```

## MCP server setup

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