# Spotify Streaming Stats: Artist, Track, Playlist and Chart Data (`nabeelbaghoor/spotify-streaming-stats-music-analytics`) Actor

Spotify streaming stats plus Apple Music, YouTube, TikTok, Shazam, Deezer and Beatport data for artists, tracks and labels: streams, followers, monthly listeners, playlists, charts, history, catalog and audience, through the Songstats API. Bring your own key.

- **URL**: https://apify.com/nabeelbaghoor/spotify-streaming-stats-music-analytics.md
- **Developed by:** [Nabeel Hassan](https://apify.com/nabeelbaghoor) (community)
- **Categories:** Social media, Business, Developer tools
- **Features:** 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 current stats for one entity and sources

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Streaming Stats: Artist, Track, Playlist and Chart Data

Get Spotify streaming stats and Apple Music, YouTube, TikTok, Shazam, Deezer, Amazon Music, SoundCloud, Beatport and 1001Tracklists data for any artist, track, record label or songwriter from Songstats with your own API key, as clean rows you can export to CSV, Excel or JSON.

Songstats (The Stats Company Limited) is a music analytics platform used by labels, artist managers, distributors, A\&R teams and music marketers. This actor wraps the read endpoints of the Songstats Enterprise API: current and historic stats per source, profiles and links, search, track catalogs, top tracks and top playlists, audience by city and country, activities, and the key's own usage. Use it for artist and catalog reporting, A\&R scouting, playlist and chart tracking, royalty and label dashboards, BI pipelines and spreadsheets. Bring your own API key.

BYOK, not live tested: every route, parameter and response field comes from Songstats' own OpenAPI document (songstats.com/openapi.json) and developer docs (developers.stats.company/songstats), and the routes were probed on 2026-11-02 with an invalid key. The actor has not been run against a live key.

### What it does

- **Current stats**: one row per source with streams, followers, monthly listeners, popularity, playlists, editorial playlists, playlist reach, charts, Shazams, TikTok and YouTube views and every other metric Songstats reports, for artists, tracks, labels and collaborators.
- **Historic stats**: one row per source and day over your date range, for charting streams, followers and playlist reach over time.
- **Track detail lists**: for tracks, add the playlists, charts, videos and source links behind the numbers, current only or all time, greatest or latest first.
- **Profiles**: name, country, genres, release date, artists, labels, distributor, bio, links on every platform, credits and related artists, plus audio analysis for tracks.
- **Search**: find the Songstats ID of any artist, track, label or collaborator by name.
- **Catalogs**: every track of an artist, label or collaborator with ISRCs, newest first, read page by page.
- **Top tracks and top playlists**: ranked per source by playlists, streams, playlist reach, charts, Shazams or any other rank type.
- **Audience**: monthly listeners by city and the cities and countries where the artist or label charted.
- **Activities**: playlist adds, chart entries, DJ support and milestones, filtered by tier, editorial or recent releases.
- **Links accepted**: paste Songstats, Spotify or Apple Music links, or ISRCs, instead of IDs.
- **Read only and pay only for results**: empty answers and refused lookups become a free row that says why.

### How to get your own key

1. Songstats issues Enterprise API keys after approving your use case. Write to api@songstats.com describing your application.
2. Read the Developer Terms of Service (developers.stats.company/terms), which you accept by using the key.
3. Paste the key into the **Songstats Enterprise API key** field, or set the DATA_API_KEY environment secret. The actor sends it in the documented `apikey` header.
4. Run the **API usage and bill** mode first to confirm the key works and see this month's requests.

### Input

| Field | Modes | Notes |
| --- | --- | --- |
| `mode` | all | `stats`, `historicStats`, `info`, `search`, `catalog`, `topTracks`, `topPlaylists`, `audience`, `activities`, `sources`, `definitions`, `status` |
| `apiKey` | all | your key; falls back to the DATA_API_KEY secret |
| `entityType` | entity modes | `artist`, `track`, `label`, `collaborator` (catalog, top lists and audience: not tracks) |
| `idType` | lookup modes | `songstats`, `spotify`, `apple_music`, `isrc` (tracks), `beatport` (labels), `tidal` (collaborators) |
| `identifiers` | lookup modes | one ID or link per line; each is one lookup |
| `searchQueries` | search | one name per line |
| `sources` | stats, history, activities, audience, top lists | source ids such as spotify, apple_music, youtube, tiktok; empty for all |
| `startDate`, `endDate` | historicStats | YYYY-MM-DD |
| `withAggregates` | historicStats | add Songstats' aggregated data points |
| `trackDetails` | stats (tracks), catalog | `links`, `playlists`, `charts`, `videos` |
| `onlyCurrent`, `sort` | stats (tracks) | current playlists and charts only; `greatest` or `latest` first |
| `metric` | topTracks | rank type, default `playlists` |
| `scope` | top lists | time scope, default `total` |
| `onlyEditorial` | topPlaylists, activities | editorial only |
| `activityTier`, `recentOnly` | activities | tier 1 (most significant) to 4 (all); recent releases only |
| `perLookupLimit` | paged and top list modes | results per request, default 20 |
| `maxResults` | all | stop after this many rows (default 1,000) |

### Output

A current stats row:

```json
{
    "mode": "stats",
    "recordType": "sourceStats",
    "query": "pod5zlug",
    "found": true,
    "entityType": "artist",
    "entityId": "pod5zlug",
    "entityName": "DONT BLINK",
    "source": "spotify",
    "streamsTotal": 3664151174,
    "followersTotal": 1872200,
    "monthlyListeners": 6131306,
    "popularity": 65,
    "playlistsCurrent": 27419,
    "playlistReachCurrent": 107333253,
    "chartsCurrent": 0,
    "viewsTotal": null,
    "stats": { "monthly_listeners_current": 6131306, "streams_total": 3664151174, "playlists_editorial_current": 41, "charted_countries_total": 63 }
}
```

A top track row:

```json
{
    "mode": "topTracks",
    "recordType": "topTrack",
    "query": "48ra1cnv",
    "found": true,
    "entityType": "artist",
    "entityName": "Don Diablo",
    "source": "spotify",
    "metric": "playlists",
    "scope": "total",
    "rank": 1,
    "songstatsId": "eafmg2qr",
    "name": "High Hopes",
    "artistNames": "Panic! At The Disco, Don Diablo",
    "rankValue": 11924,
    "siteUrl": "https://songstats.com/track/eafmg2qr/high-hopes"
}
```

History rows carry `source`, `date`, the headline columns and a `stats` object; profile rows carry `name`, `country`, `genres`, `links`, `labelNames` and `relatedArtists`; catalog rows carry `songstatsId`, `name`, `releaseDate`, `isrcs` and `tracksTotal`; activity rows carry `date`, `activityType`, `activityText` and `activityTier`; audience rows carry an `audience` object per source. The values above are taken from the Songstats documentation examples and are illustrative.

### Pricing

Pay per event, only for rows with data:

| Event | Price |
| --- | --- |
| Current stats (one entity and source) | $0.01 |
| Historic stats (one source and day) | $0.005 |
| Profile | $0.01 |
| Search result | $0.005 |
| Catalog track | $0.005 |
| Top track or top playlist entry | $0.005 |
| Audience breakdown (one source) | $0.02 |
| Activity | $0.005 |
| Sources, definitions and usage rows | free |

Your Songstats plan is billed separately by Songstats. Songstats allows 10 requests a second per key and, by default, 1,000 requests per exact artist, track or label per calendar month; the actor stays under the first and turns a monthly cap into a free row for that one lookup.

### FAQ

#### What is the Songstats API?

The Songstats Enterprise API is a REST API from The Stats Company Limited, the company behind Songstats, Radiostats and Socialstats. It returns JSON stats for music artists, tracks, labels and collaborators from the Songstats database, aggregated across Spotify, Apple Music, Amazon Music, Deezer, YouTube, TikTok, Instagram, Shazam, SoundCloud, TIDAL, Beatport, Traxsource and 1001Tracklists.

#### Do I need my own Songstats API key?

Yes. This actor is bring your own key: your key, your approved use case and your Songstats plan. Keys are issued by Songstats on request at api@songstats.com, not by self sign up.

#### Can I get Spotify stream counts and monthly listeners?

Yes. The current stats mode with the spotify source returns streams_total, monthly_listeners_current, followers_total, popularity_current, playlist and editorial playlist counts, playlist reach and chart counts, and the historic stats mode returns the same metrics day by day.

#### How far back does the history go?

Playlist and chart history is available for every track whenever it was added. Follower, stream and popularity history starts on the day Songstats first added the artist, track or label to its database.

#### Why does a new ISRC return no data?

When an ISRC or Spotify track ID is new to Songstats, the API queues the track for discovery and answers 404. The actor writes a free row saying so; run again later and the data will be there.

#### How is this different from scraping streaming dashboards?

It calls the official Songstats Enterprise API with your own key, so you get Songstats' cross platform data under your own agreement, every documented read endpoint and flat rows with headline columns, instead of scraped pages.

#### What do I pay?

$0.005 per history point, search result, catalog track, top list entry or activity, $0.01 per current stats source row or profile and $0.02 per audience breakdown. Source, definition and usage rows, empty answers and refused lookups are free.

### Keyword map

Spotify streaming stats, Spotify monthly listeners, Spotify stream count API, music analytics API, Songstats API, artist analytics, track stats, playlist tracking, chart tracking, Apple Music charts, TikTok music stats, YouTube music views, Shazam counts, Beatport charts, record label analytics, ISRC lookup, A\&R data.

### Routes and verification

| Mode | Route | Probe with invalid key (twice) |
| --- | --- | --- |
| Profile | GET /enterprise/v1/{entity}/info | 403 JSON Forbidden on /artists/info |
| Current stats | GET /enterprise/v1/{entity}/stats | 403 JSON Forbidden on /tracks/stats |
| Usage | GET /enterprise/v1/status | 403 JSON Forbidden |
| Historic stats, search, catalog, top tracks, top playlists, audience, activities, sources, definitions | GET /enterprise/v1/... as documented | not probed, read from the OpenAPI document |
| Control: no key, or the key in an Authorization header | GET /enterprise/v1/artists/info | 401 JSON Unauthorized |

The invalid key in the apikey header changes the answer from 401 to 403, so the gateway reads that header. No invented route was probed, because the Developer Terms forbid probing undocumented endpoints. Every request sends the key in the `apikey` header, never in a URL or a log line. For entity based (artist or label) and member keys, Songstats asks track lookups to name the owning artist or label as well; this actor sends the track identifier only, which is what request based keys need.

### Licensing and data use

This actor works only with your own Songstats Enterprise API key, and the Songstats Developer Terms of Service and your Commercial Agreement with The Stats Company apply. API access is granted for the use case Songstats approved, and you may share the key only with service providers acting on your behalf. Commercial use is permitted within a product that adds meaningful functionality; the terms forbid selling, syndicating or redistributing API Data as a standalone product, raw feed, bulk export or downloadable dataset, building a competing database, sharing or pooling credentials, and training general purpose AI models on API Data without consent. You may cache or retain API Data only as long as reasonably necessary for the approved use, and must delete it within 30 days after your access ends. Use the rows in your own approved application and reporting and do not resell the raw data. This actor is not affiliated with or endorsed by Songstats or The Stats Company.

# Actor input Schema

## `mode` (type: `string`):

Each mode calls one documented read endpoint of the Songstats Enterprise API. Catalog, top tracks, top playlists and audience are documented for artists, labels and collaborators only.

## `apiKey` (type: `string`):

Your own Songstats Enterprise API key, issued by Songstats after it approves your use case (api@songstats.com). Sent in the apikey header, never in a URL. Leave empty to use the DATA_API_KEY secret.

## `entityType` (type: `string`):

Every mode except sources, definitions and status. Collaborators are the credited writers, producers and composers Songstats tracks through TIDAL credits.

## `idType` (type: `string`):

Every lookup mode. What the identifiers below are. Songstats, Spotify and Apple Music links, and bare ISRCs on track lookups, are recognised whatever is set here.

## `identifiers` (type: `array`):

Every lookup mode. One identifier or link per line, such as a Songstats ID (pod5zlug), a Spotify artist link, an Apple Music ID or an ISRC (GBAYE2100626). Each identifier is one lookup.

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

Search. One artist, track, label or collaborator name per line. Each name returns the matching Songstats IDs to use in the other modes.

## `sources` (type: `array`):

Current and historic stats, activities, audience and top lists. Source ids such as spotify, apple_music, youtube, tiktok, deezer, amazon, shazam, beatport, tracklist, soundcloud, tidal or instagram (the supported sources mode lists them). Leave empty for all sources.

## `startDate` (type: `string`):

Historic stats. First day as YYYY-MM-DD. Songstats collects history for a resource from the day it was first added to its database; playlist and chart history goes further back.

## `endDate` (type: `string`):

Historic stats. Last day as YYYY-MM-DD.

## `withAggregates` (type: `boolean`):

Historic stats. Adds the data points Songstats aggregates, such as playlists_current, playlist_reach_current and charts_current, with playlist and chart breakdowns for tracks (with_aggregates).

## `trackDetails` (type: `array`):

Current stats of tracks: add these lists to each source row (with_links, with_playlists, with_charts, with_videos). Catalog: links adds each track's source links.

## `onlyCurrent` (type: `boolean`):

Current stats of tracks. Only list the playlists and charts the track is in now (only_current).

## `sort` (type: `string`):

Current stats of tracks. How the playlist, chart and video lists are ordered (sort).

## `metric` (type: `string`):

Top tracks. The metric to rank by, such as playlists (the documented example), streams_total, playlist_reach_current, charts_total or shazams_total. The metric definitions mode lists every rank type.

## `scope` (type: `string`):

Top tracks and top playlists. The time scope of the ranking; total is the documented example.

## `onlyEditorial` (type: `boolean`):

Top playlists: only editorial playlists (only_editorial). Activities: only editorial activities (editorial).

## `activityTier` (type: `integer`):

Activities. Tier 4 returns every activity; tier 1 returns only the most significant ones (tier).

## `recentOnly` (type: `boolean`):

Activities of artists, labels and collaborators. Only activities for tracks released in the past 3 months (recent).

## `perLookupLimit` (type: `integer`):

The limit sent with each request: the page size for search, catalog and activities (later pages are read with offset), the length of each top list, and of track detail lists.

## `maxResults` (type: `integer`):

The run stops after this many rows.

## Actor input object example

```json
{
  "mode": "stats",
  "entityType": "artist",
  "idType": "songstats",
  "identifiers": [
    "pod5zlug"
  ],
  "withAggregates": false,
  "onlyCurrent": false,
  "sort": "greatest",
  "metric": "playlists",
  "scope": "total",
  "onlyEditorial": false,
  "activityTier": 4,
  "recentOnly": false,
  "perLookupLimit": 20,
  "maxResults": 1000
}
```

# Actor output Schema

## `records` (type: `string`):

One row per stats source, history point, profile, search result, catalog track, top list entry, audience source, activity, source, definition or usage record the chosen mode read.

# 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 = {
    "identifiers": [
        "pod5zlug"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nabeelbaghoor/spotify-streaming-stats-music-analytics").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 = { "identifiers": ["pod5zlug"] }

# Run the Actor and wait for it to finish
run = client.actor("nabeelbaghoor/spotify-streaming-stats-music-analytics").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 '{
  "identifiers": [
    "pod5zlug"
  ]
}' |
apify call nabeelbaghoor/spotify-streaming-stats-music-analytics --silent --output-dataset

```

## MCP server setup

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

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/4gozPPMDcGL1jh7mf/builds/2g8gGi7HjAA6E9XQn/openapi.json
