# Spotify Play Count Scraper (`datamole/spotify-play-count-scraper`) Actor

Get exact Spotify play counts for tracks, albums, playlists and artists, data the official Spotify API does not provide. Includes artist monthly listeners, followers, world rank and top cities, plus track duration, release date, label and playlist position for each song.

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

## Pricing

from $10.00 / 1,000 result-items

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

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

![DataMole](https://raw.githubusercontent.com/YoiderD/datamole-assets/main/banner.png)

## 🎧 Spotify Play Count Scraper

> **Exact Spotify stream counts for any track, album, playlist or artist. That data is not in Spotify's official API.** Plus artist monthly listeners, followers, world rank and top listening cities.

**Spotify Play Count Scraper** reads the play counts that the Spotify web player shows and returns them as clean numbers. Paste any mix of track, album, playlist and artist links. For artists you get a profile row (**monthly listeners, followers, world rank, top 5 cities, biography, social links**), their top 10 tracks, and optionally every track from their latest albums and singles with play counts. Playlist tracks also include their **position and date added**, which makes playlist tracking easy.

| 🎯 Who uses it | 💡 What for |
|---|---|
| Labels and A\&R, artist managers, music marketers, playlist curators, music investors and catalog buyers, journalists | Release performance tracking, catalog valuation, A\&R scouting, playlist impact analysis, touring decisions (top cities), chart research |

### 📋 What it does

- 🎵 **Tracks:** exact play count, duration, explicit flag, album, release date and artists.
- 💿 **Albums:** every track with play counts, plus label and release date.
- 📜 **Playlists:** every track with play count, playlist position, date added, playlist owner and followers.
- 🎤 **Artists:** monthly listeners, followers, world rank, top 5 cities with listener counts, biography, social links, album and single counts, top 10 tracks.
- 📀 **Discography mode:** play counts for every track on the artist's latest albums and singles.
- 🧹 **Minimum play count filter.**
- 🔄 **Self-healing.** The Actor looks up the current version of Spotify's web player on every run, so it keeps working when Spotify updates its site.

> ℹ️ **Free Apify plan:** runs return a preview of up to 10 results. Any paid Apify plan unlocks the full results.

### 📊 Output

Real artist record:

```json
{
    "type": "artist",
    "artistName": "Taylor Swift",
    "artistUrl": "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
    "monthlyListeners": 103946428,
    "followers": 164872722,
    "worldRank": 5,
    "topCities": [
        { "city": "London", "country": "GB", "region": "ENG", "listeners": 1650378 },
        { "city": "Quezon City", "country": "PH", "region": "00", "listeners": 1476039 },
        { "city": "São Paulo", "country": "BR", "region": "SP", "listeners": 1161360 }
    ],
    "externalLinks": [{ "name": "INSTAGRAM", "url": "https://instagram.com/taylorswift" }],
    "albumCount": 34,
    "singleCount": 80
}
```

Real playlist track record:

```json
{
    "type": "track",
    "trackName": "Nicole Kidman",
    "trackUrl": "https://open.spotify.com/track/70cHKK8bHAfJrOGVnfRG9J",
    "playCount": 74912323,
    "artists": ["ADÉLA"],
    "albumName": "PRIMA",
    "releaseDate": "2026-09-04T00:00:00.000Z",
    "durationMs": 181270,
    "explicit": true,
    "playlistName": "Today's Top Hits",
    "playlistOwner": "Spotify",
    "playlistFollowers": 33756434,
    "playlistPosition": 1,
    "addedAt": "2026-09-11T04:01:53.033Z"
}
```

### ⚙️ Input example

```json
{
    "urls": [
        "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
        "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
        "https://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC"
    ],
    "includeDiscography": true,
    "minPlayCount": 1000000
}
```

### ✨ Why this one

- ✅ **All four link types in one run:** tracks, albums, playlists and artists.
- ✅ **Artist intelligence:** world rank and top cities, not only listeners.
- ✅ **Playlist tracking fields:** position and date added.
- ✅ **Self-healing** against Spotify site updates.
- ✅ **Fast.** 300+ tracks in about 10 seconds in our tests. No browser, no Spotify account.

### ❓ FAQ

**Are play counts exact?** Yes. They are the exact counts Spotify shows in its player. Spotify shows play counts only for tracks above 1,000 plays.

**How often do counts update?** Spotify refreshes them about once a day. Schedule the Actor daily to track growth.

**Do I need Spotify API keys?** No.

**Can I get every album of an artist?** Discography mode covers the latest 10 albums and the latest 10 singles/EPs. For older releases, add the album links directly.

### ⚖️ Disclaimer

This Actor collects publicly available data from Spotify's web player. It is not affiliated with Spotify. Use the data responsibly.

# Actor input Schema

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

Track, album, artist or playlist links (https://open.spotify.com/...) or Spotify URIs (spotify:track:...).

## `maxTracksPerSource` (type: `integer`):

Stop after this many tracks for each album or playlist.

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

Hard cap for the whole run. Leave empty for no cap.

## `includeArtistProfile` (type: `boolean`):

Monthly listeners, followers, world rank, top 5 cities, biography, social links and release counts.

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

The artist's 10 most popular tracks with exact play counts.

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

Also read the artist's latest albums and singles and return every track with its play count.

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

Skip tracks with fewer plays than this.

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

Not needed in most cases.

## Actor input object example

```json
{
  "urls": [
    "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"
  ],
  "maxTracksPerSource": 500,
  "includeArtistProfile": true,
  "includeTopTracks": true,
  "includeDiscography": false,
  "minPlayCount": 0
}
```

# Actor output Schema

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

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datamole/spotify-play-count-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": ["https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"] }

# Run the Actor and wait for it to finish
run = client.actor("datamole/spotify-play-count-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"
  ]
}' |
apify call datamole/spotify-play-count-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datamole/spotify-play-count-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/H1vYffyhbVFkOBVwa/builds/SnKEgcqnz3zAKpYEl/openapi.json
