# Spotify Artist Stats — Monthly Listeners & Play Counts (`istmobot/spotify-artist-stats`) Actor

Track Spotify artists daily: monthly listeners, followers, world rank, top cities, top tracks with exact play counts, related artists and latest release. Optional album tracks with play counts. One stable row per artist per run, ready to chart. No API key, no login. $3 per 1,000 artists.

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

## Pricing

from $2.40 / 1,000 artists

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 Artist Stats — Monthly Listeners, Followers & Play Counts

Track **Spotify artists every day**: **monthly listeners**, **followers**, **world rank**, **top cities**, **top tracks with exact play counts**, related artists and latest release. Optionally get **every track of the newest releases with its exact play count**. One stable row per artist per run, so scheduled runs build a clean history you can chart. No Spotify API key, no login.

### What does Spotify Artist Stats do?

Give it artist URLs, URIs or IDs (or artist names). For each artist you get one record with:

- **Monthly listeners** and **followers**.
- **World rank** (Spotify's global top-500 by monthly listeners; `null` when the artist is not ranked).
- **Top 5 cities** with listener counts, plus the #1 city as flat columns for easy charting.
- **Top 10 tracks** with **exact play count**, duration, album and explicit flag, and their summed plays.
- **Verified** badge, profile image and header image.
- **Related artists** (up to 20, name and ID), album and single counts, and the **latest release** with its date.
- **Album tracks** (optional): one row per track of the newest releases with exact play count, track number and duration.
- `date` (YYYY-MM-DD) and `scrapedAt` on every row. Export as **JSON, CSV, Excel**, or use the Apify API, Google Sheets, Make, Zapier, n8n and webhooks.

### Use cases

- **Labels and managers**: schedule a daily run for your roster and chart listeners, followers and plays over time.
- **A\&R and scouting**: compare growth of emerging artists and see where their listeners are.
- **Release tracking**: follow the play counts of a new album track by track, day by day.
- **Tour planning**: top cities show where an artist's audience lives.
- **Dashboards and datasets**: stable flat columns load straight into Looker Studio, Sheets, BigQuery or a spreadsheet.

### How to use it

1. Add **artists** as Spotify URLs (`https://open.spotify.com/artist/...`), URIs (`spotify:artist:...`) or IDs, and/or **artist names**.
2. Optional: turn on **Include album tracks** and choose how many releases per artist.
3. Click **Start** and download your data.

For history, [schedule](https://docs.apify.com/platform/schedules) the Actor once a day and send each run to the same Google Sheet or database. Every run has the same columns; `artistId` + `date` identifies a row.

### How much does it cost?

Pay per result, no subscription:

| Event | Price |
|---|---|
| Actor start | $0.001 per run |
| `artist` (one artist row) | **$0.003**, or $3 per 1,000 artists |
| `track` (one album track row, only with *Include album tracks*) | $0.0003, or $0.30 per 1,000 tracks |

Errors (invalid input, artist not found) are **never charged**. Proxy costs are included. Tracking 50 artists every day costs about $4.50 a month.

### Input

| Field | Default | Description |
|---|---|---|
| `artists` | | Spotify artist URLs, `spotify:artist:` URIs or 22-character IDs |
| `searchQueries` | | Artist names; the exact-name match (or top result) is scraped |
| `includeAlbumTracks` | `false` | Add one row per track of the newest releases, with play counts |
| `maxAlbumsPerArtist` | `5` | Releases per artist (albums, singles, compilations, newest first) |
| `proxyConfiguration` | Apify Proxy | Rotates IPs automatically if a request is blocked |

Example:

```json
{
    "artists": ["https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02", "4q3ewBCX7sLwd24euuV69X"],
    "searchQueries": ["Karol G"],
    "includeAlbumTracks": false
}
```

### Output

One artist row (arrays shortened):

```json
{
    "rowType": "artist",
    "artistId": "06HL4z0CvFAxyc27GXpf02",
    "name": "Taylor Swift",
    "url": "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
    "monthlyListeners": 103015669,
    "followers": 165885930,
    "worldRank": 5,
    "verified": true,
    "topCity": "London",
    "topCityCountry": "GB",
    "topCityListeners": 1610768,
    "topCities": [{ "city": "London", "country": "GB", "region": "ENG", "listeners": 1610768 }],
    "topTracksPlayCount": 11278061011,
    "topTracks": [{ "position": 1, "id": "11hcBLPtbMp4aQI6zGQLub", "name": "Patient Zero", "url": "https://open.spotify.com/track/11hcBLPtbMp4aQI6zGQLub", "playCount": 122808256, "durationMs": 225868, "albumId": "4hF2gTGuPYlykYuphDxi8J", "albumName": "The Life of a Showgirl: The Encore", "explicit": false }],
    "relatedArtists": [{ "id": "1McMsnEElThX1knmY4oliG", "name": "Olivia Rodrigo" }],
    "albumCount": 34,
    "singleCount": 80,
    "latestReleaseId": "3rU7c934ngxDXPfjgXyzyu",
    "latestReleaseName": "Patient Zero",
    "latestReleaseType": "SINGLE",
    "latestReleaseDate": "2026-10-16",
    "imageUrl": "https://i.scdn.co/image/ab6761610000e5eb12184bdd29403de54cb9d9c7",
    "headerImageUrl": "https://image-cdn-ak.spotifycdn.com/image/ab6761860000eab13b4424dc244fb1e1f454ca2b",
    "input": "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02",
    "searchQuery": null,
    "date": "2026-10-27",
    "scrapedAt": "2026-10-27T01:09:26.451Z"
}
```

One album track row (with *Include album tracks*):

```json
{
    "rowType": "track",
    "trackId": "0Gms8M0f1kJxAA2pXuLdtI",
    "trackName": "The Fate of Ophelia",
    "trackUrl": "https://open.spotify.com/track/0Gms8M0f1kJxAA2pXuLdtI",
    "playCount": 1753434063,
    "durationMs": 226073,
    "trackNumber": 1,
    "discNumber": 1,
    "explicit": false,
    "trackArtists": "Taylor Swift",
    "albumId": "4hF2gTGuPYlykYuphDxi8J",
    "albumName": "The Life of a Showgirl: The Encore",
    "albumType": "ALBUM",
    "releaseDate": "2026-09-25",
    "artistId": "06HL4z0CvFAxyc27GXpf02",
    "artistName": "Taylor Swift",
    "date": "2026-10-27",
    "scrapedAt": "2026-10-27T01:09:26.482Z"
}
```

Artist and track rows share one dataset; filter by `rowType`. The **Artists** and **Album tracks** tabs in the console show each kind. Failed inputs come back as `rowType: "error"` with `errorType` and `error`.

### FAQ

**Do I need a Spotify account or API key?** No. The Actor reads the same public data the Spotify web player shows to logged-out visitors.

**How fresh are the numbers?** Spotify updates monthly listeners and play counts about once a day, so one run per day is the right schedule.

**Does it return genres?** No. Spotify's web player no longer exposes artist genres; related artists are included instead.

**Why is `worldRank` empty?** Spotify only ranks the top 500 artists worldwide.

**Are play counts exact?** Yes, they are the exact counters Spotify stores, not rounded like in the app.

**Is it legal?** It collects public data only. Make sure your use complies with Spotify's terms and the laws that apply to you.

# Actor input Schema

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

Artists to track. Accepts artist URLs (https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02, any /intl-xx/ variant), URIs (spotify:artist:...) or bare 22-character artist IDs.

## `searchQueries` (type: `array`):

Optional. Artist names to look up, e.g. "Bad Bunny". The exact-name match (or the top artist result) is scraped. For daily tracking, prefer URLs or IDs: names can be ambiguous.

## `includeAlbumTracks` (type: `boolean`):

Also return one row per track (exact play count, duration, track number) for the artist's newest releases. Charged per track row.

## `maxAlbumsPerArtist` (type: `integer`):

With album tracks on: how many releases (albums, singles, compilations, newest first) to read per artist. Up to about 30 releases are available per artist.

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

Apify Proxy spreads requests over several IPs. The Actor rotates to a fresh IP when a request is blocked.

## Actor input object example

```json
{
  "artists": [
    "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"
  ],
  "includeAlbumTracks": false,
  "maxAlbumsPerArtist": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `tracks` (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 = {
    "artists": [
        "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("istmobot/spotify-artist-stats").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": ["https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("istmobot/spotify-artist-stats").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": [
    "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call istmobot/spotify-artist-stats --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,istmobot/spotify-artist-stats"
        }
    }
}
```

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/nZswcwOS5TrMl20pf/builds/ejJjH9775lKT40wLo/openapi.json
