# Spotify Listeners Scraper (`codenest/spotify-listeners-scraper`) Actor

Input search keywords or Spotify URLs to extract monthly listeners including metadata: title, authors, narrators, publisher, star ratings, duration. Delivers a clean, null-free dataset ready for Excel, CSV, or JSON.

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

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Monthly Listeners 🎧

**Spotify Monthly Listeners** is a premium audience-sizing actor that delivers clean, structured Spotify monthly listeners data for any artist. The Spotify Monthly Listeners actor centers every row around the audience fields buyers care about first: monthly listeners count, followers, world rank, verification status, public identity links, and visual assets.

Optional enrichment blocks in the Spotify Monthly Listeners output add geo context, track context, artist adjacency, gallery assets, biography, and social links — only when you want a deeper row.

### ✨ Why Use Spotify Monthly Listeners

- The Spotify Monthly Listeners actor is purpose-built for artist audience sizing
- Each Spotify Monthly Listeners row is presentation-ready for comparison across multiple artists
- The Spotify Monthly Listeners default payload is lean while optional enrichment blocks add depth on demand
- Spotify Monthly Listeners data includes visual assets, social links, and geo distribution

### 📦 Output Data Overview

Each run of Spotify Monthly Listeners produces:

- One curated artist row per matched or requested artist
- Core audience fields: monthly listeners, followers, world rank, verified status
- Visual assets: avatar image, header image, gallery
- Optional enrichment: top cities, top tracks, related artists, biography, social links

***

### 📊 Complete Output Fields Reference

#### Core Audience Fields

| Field | Type | Description |
|-------|------|-------------|
| `artist_name` | string | Display name of the artist |
| `artist_id` | string | Spotify internal artist ID |
| `uri` | string | Spotify URI in `spotify:artist:ID` format |
| `url` | string | Public Spotify artist URL |
| `genres` | array | Artist genre labels for audience and market context |
| `followers` | integer | Total follower count reflecting long-term fan commitment |
| `monthlyListeners` | integer | Current Spotify monthly listeners count — the primary audience sizing metric |
| `worldRank` | integer | null | Global rank by Spotify monthly listeners; `null` when Spotify omits it |
| `verified` | boolean | Whether the artist holds a Spotify verified badge |
| `avatarImage` | string | null | Primary avatar image URL |
| `headerImage` | string | null | Header/banner image URL |
| `keyword` | string | Search keyword used to find this artist |
| `timestamp` | string | ISO 8601 extraction timestamp for tracking Spotify monthly listeners over time |

#### Optional Enrichment — Top Cities `topCities[]`

Shows where the artist's Spotify monthly listeners are concentrated geographically.

| Field | Type | Description |
|-------|------|-------------|
| `topCities[].numberOfListeners` | integer | Listener count in the city |
| `topCities[].city` | string | City name |
| `topCities[].country` | string | Country code |
| `topCities[].region` | string | Region identifier |

#### Optional Enrichment — Top Tracks `topTracks[]`

| Field | Type | Description |
|-------|------|-------------|
| `topTracks[].id` | string | Spotify track ID |
| `topTracks[].name` | string | Track title |
| `topTracks[].playcount` | integer | Total stream count |
| `topTracks[].duration` | integer | Track duration in milliseconds |
| `topTracks[].artists` | string | Artist names |
| `topTracks[].album` | string | Album ID |
| `topTracks[].image` | string | Cover art URL |
| `topTracks[].contentRating` | string | Content rating |

#### Optional Enrichment — Related Artists, Gallery, Biography, Social

| Field | Type | Description |
|-------|------|-------------|
| `relatedArtists[]` | array | Adjacent artists with `id`, `name`, `genres`, `image`, `uri`, `url` |
| `gallery[]` | array | Additional public image URLs |
| `biography` | string | Artist bio text (when enabled) |
| `socialLinks` | object | Social profile links: `TWITTER`, `INSTAGRAM`, `OFFICIAL_WEBSITE`, etc. |

***

### 📥 Example Input

```json
{
  "keyword": ["Taylor Swift", "The Weeknd"],
  "includeTopCities": true,
  "includeTopTracks": true,
  "includeRelatedArtists": true,
  "includeBiography": true,
  "includeSocialLinks": true
}
```

### 📤 Example Output Row

```json
{
  "artist_name": "The Weeknd",
  "artist_id": "1Xyo4u8uXC1ZmMpatF05PJ",
  "uri": "spotify:artist:1Xyo4u8uXC1ZmMpatF05PJ",
  "url": "https://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJ",
  "genres": ["r&b", "canadian contemporary r&b"],
  "followers": 52000000,
  "monthlyListeners": 85000000,
  "worldRank": 5,
  "verified": true,
  "avatarImage": "https://i.scdn.co/image/...",
  "headerImage": "https://i.scdn.co/image/...",
  "topCities": [
    { "numberOfListeners": 2500000, "city": "London", "country": "GB", "region": "ENG" }
  ],
  "topTracks": [
    {
      "id": "0VjIjW4GlUZAMYd2vXMi3b",
      "name": "Blinding Lights",
      "playcount": 4300000000,
      "duration": 200040,
      "artists": "The Weeknd",
      "album": "4yP0hdKOZPNshxUOjY0cZj",
      "image": "https://i.scdn.co/image/...",
      "contentRating": "NONE"
    }
  ],
  "relatedArtists": [
    { "id": "3TVXtAsR1Inumwj472S9r4", "name": "Drake", "image": "https://i.scdn.co/image/...", "uri": "spotify:artist:3TVXtAsR1Inumwj472S9r4", "url": "https://open.spotify.com/artist/3TVXtAsR1Inumwj472S9r4" }
  ],
  "biography": "Abel Tesfaye, known professionally as The Weeknd...",
  "socialLinks": { "INSTAGRAM": "https://instagram.com/theweeknd", "TWITTER": "https://twitter.com/theweeknd" },
  "keyword": "The Weeknd",
  "timestamp": "2026-04-10T12:00:00.000000+00:00"
}
```

### 🧠 How to Use Spotify Monthly Listeners Data

- Use `monthlyListeners` and `followers` together from Spotify Monthly Listeners to separate broad awareness from fan retention
- Use `worldRank` from Spotify Monthly Listeners to quickly rank artists by relative market scale
- Use `topCities[]` from Spotify Monthly Listeners to spot geographic concentration and inform regional campaigns
- Track Spotify Monthly Listeners data over time using the `timestamp` field for growth analysis

### 🎯 Use Cases

- A\&R teams reviewing audience size with Spotify Monthly Listeners data before deeper research
- Agencies building artist one-sheets powered by Spotify Monthly Listeners metrics
- Analysts comparing market reach across rosters using Spotify Monthly Listeners world rank
- Campaign planning teams using Spotify Monthly Listeners geo data for tour routing

### ❓ FAQ

**What is the Spotify Monthly Listeners metric?**
Spotify Monthly Listeners represents the number of unique listeners an artist had in the last 28 days on Spotify.

**Can I track Spotify Monthly Listeners over time?**
Yes. Each Spotify Monthly Listeners row includes a `timestamp` field. Schedule recurring runs to build time-series data.

**Does Spotify Monthly Listeners require an API key?**
No. The Spotify Monthly Listeners actor handles session management internally.

### 💰 Pricing & Pay-Per-Event (PPE) Model

This actor uses Apify's **Pay-Per-Event (PPE)** pricing model. You only pay for successful results scraped:

| Event Name | Price (USD) | Description |
|---|---|---|
| `apify-actor-start` | **$0.00005** / run | Container startup and proxy initialization |
| `result` | **$0.005** / artist | Extracted Spotify artist with monthly listeners, followers, and audience data |

#### 🎁 Free Tier Policy

- Free users (`APIFY_USER_IS_PAYING != 1`) can scrape up to **5 artists per run**, with a maximum lifetime limit of **20 artists across all runs**.
- To scrape unlimited artists and run high-volume batch queries, simply upgrade to any Apify paid plan.

# Actor input Schema

## `keyword` (type: `array`):

One or more artist keywords. Each keyword is searched and then enriched automatically to return monthly listeners. Leave empty if you want to use artist URIs/URLs only.

## `spotifyUris` (type: `array`):

One or more Spotify artist URIs or open.spotify.com artist URLs. These are fetched directly and always return the curated monthly-listeners output.

## `proxyCountry` (type: `string`):

Residential proxy exit country. US is recommended for the widest Spotify catalog coverage.

## `searchOffset` (type: `integer`):

Starting position for keyword search pagination. 0 = first result.

## `searchLimit` (type: `integer`):

Maximum number of artists to return per keyword before enrichment.

## `numberOfTopResults` (type: `integer`):

Number of top-ranked Spotify artist matches to request.

## `includeBiography` (type: `boolean`):

Extra enrichment. Adds the artist biography text to each result.

## `includeSocialLinks` (type: `boolean`):

Extra enrichment. Adds social links like FACEBOOK, INSTAGRAM, and TWITTER when Spotify exposes them.

## `includeTopCities` (type: `boolean`):

Extra enrichment. Adds Spotify top listener cities for each artist.

## `includeRelatedArtists` (type: `boolean`):

Extra enrichment. Adds a curated related-artists list.

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

Extra enrichment. Adds a curated top-tracks list with play counts.

## `includeGallery` (type: `boolean`):

Extra enrichment. Adds artist gallery image URLs when Spotify exposes them.

## `topCitiesLimit` (type: `integer`):

Maximum number of top cities to keep per artist when Top Cities is enabled.

## `relatedArtistsLimit` (type: `integer`):

Maximum number of related artists to keep per result when Related Artists is enabled.

## `topTracksLimit` (type: `integer`):

Maximum number of top tracks to keep per artist when Top Tracks is enabled.

## Actor input object example

```json
{
  "keyword": [
    "Taylor Swift",
    "Eminem"
  ],
  "spotifyUris": [
    "spotify:artist:06HL4z0CvFAxyc27GXpf02",
    "https://open.spotify.com/artist/7dGJo4pcD2V6oG08qCgod6"
  ],
  "proxyCountry": "US",
  "searchOffset": 0,
  "searchLimit": 10,
  "numberOfTopResults": 10,
  "includeBiography": false,
  "includeSocialLinks": false,
  "includeTopCities": false,
  "includeRelatedArtists": false,
  "includeTopTracks": false,
  "includeGallery": false,
  "topCitiesLimit": 10,
  "relatedArtistsLimit": 10,
  "topTracksLimit": 5
}
```

# Actor output Schema

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

Comprehensive list of scraped Spotify artists containing monthly listeners, followers, global world rank, and top audience cities.

# 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 = {
    "keyword": [
        "Taylor Swift",
        "Eminem"
    ],
    "spotifyUris": [
        "spotify:artist:06HL4z0CvFAxyc27GXpf02",
        "https://open.spotify.com/artist/7dGJo4pcD2V6oG08qCgod6"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("codenest/spotify-listeners-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 = {
    "keyword": [
        "Taylor Swift",
        "Eminem",
    ],
    "spotifyUris": [
        "spotify:artist:06HL4z0CvFAxyc27GXpf02",
        "https://open.spotify.com/artist/7dGJo4pcD2V6oG08qCgod6",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("codenest/spotify-listeners-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 '{
  "keyword": [
    "Taylor Swift",
    "Eminem"
  ],
  "spotifyUris": [
    "spotify:artist:06HL4z0CvFAxyc27GXpf02",
    "https://open.spotify.com/artist/7dGJo4pcD2V6oG08qCgod6"
  ]
}' |
apify call codenest/spotify-listeners-scraper --silent --output-dataset

```

## MCP server setup

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