# Spotify Play Count Tracker - Track & Album Streams (`neverempty/spotify-play-count-tracker`) Actor

Exact play counts for Spotify tracks and every track on an album, with the previous count, the change and plays per day in the same row. Turn monitoring on and scheduled runs return only the tracks whose play count moved.

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

## Pricing

from $0.59 / 1,000 track returneds

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 Play Count Tracker

Paste an album link and get the exact play count of **every track on it**, as the full integer Spotify shows (5,179,780,111, not "5.1B"). Run it daily and **each row already holds the previous count, the change and plays per day**, so you get stream growth without spreadsheet work. With monitoring on, scheduled runs return **only the tracks whose play count moved**.

Paste track links, album links, `spotify:track:` / `spotify:album:` URIs or track IDs, mixed in one list (up to 1,000 lines per run).

### What you get

One flat row per track:

| Column | Meaning |
|---|---|
| `trackName`, `artists`, `artistIds` | Track title and every credited artist |
| `playCount` | The play count Spotify shows for the track, as an integer |
| `previousPlayCount`, `previousCheckedAt` | The count this Actor returned for the track last time, and when |
| `playCountChange` | `playCount` minus `previousPlayCount` |
| `playsPerDay` | That change divided by the days between the two reads (left empty when the reads are less than an hour apart) |
| `trackId`, `trackUrl` | The track's ID and link |
| `albumId`, `albumName`, `albumType`, `releaseDate` | The album the track belongs to (ALBUM, SINGLE, COMPILATION) and its release date |
| `label` | The record label (rows from an album link) |
| `trackNumber`, `discNumber`, `durationMs`, `explicit` | Position on the album, length and the explicit flag |
| `coverUrl` | The largest cover image |
| `input`, `inputType`, `status`, `checkedAt` | The line you typed, `track` or `album`, `ok` for a track row, and when it was read |

A value Spotify does not show is `null`, never 0. The first time a track is read, the `previous...` columns are empty.

Read on 2026-11-09:

| Track | playCount |
|---|---|
| Shape of You - Ed Sheeran | 5179780111 |
| Alone Again - The Weeknd (After Hours, track 1 of 14) | 234236246 |

### Use it for

- **Daily stream reports** for your own releases, a label roster or a client's catalogue: schedule it once a day and each row already holds the daily growth.
- **Release tracking**: put new albums in monitoring mode and get only the tracks that are moving.
- **A\&R and playlist pitching**: compare plays per day across tracks to see which ones are picking up.
- **Royalty and catalogue checks**: an exact integer for every track on an album, ready to export as CSV, Excel or JSON.

### Input

- `urls` - track and album links, URIs or track IDs. An album link returns one row for each of its tracks, including multi-disc albums.
- `maxTracks` - with monitoring off, the run stops after this many track rows (default 1,000).
- `monitoringMode` - see below.
- `minPlayCountChange` - in monitoring mode, the smallest move that returns a track (default 1).
- `resetHistory` - forget the remembered play counts and start over.

### Monitoring mode

Turn on `monitoringMode` and schedule the Actor (for example once a day):

1. **First run** - every track this Actor has not returned to you before is saved as a starting point for free, and one `baseline-saved` row says how many were saved. A track you already got from an earlier run is compared with that count right away.
2. **Later runs** - a track is returned only when its play count moved by at least `minPlayCountChange` since the last returned count, with `previousPlayCount`, `playCountChange` and `playsPerDay`. If nothing moved, you get one free `no-change` row.

Smaller moves are not lost: the remembered count only changes when a track is returned, so small moves add up until they reach your minimum. Tracks are remembered one by one, so adding a new album to the list does not return the tracks you already watch.

With monitoring off, every run returns all tracks, and each row is compared with the last count this Actor returned for that track in your account. With monitoring on, the comparison is with the last count that was returned to you.

### What is charged

You pay only for rows that contain a play count (`status: ok`, event **track-returned**). A 14-track album is 14 rows. There is no start fee and no monthly fee.

Free: saving a track's starting point in monitoring mode, and every row that explains instead of returning a count (`not-found`, `no-play-count`, `invalid-input`, `duplicate-input`, `unreadable`, `blocked`, `no-change`, `baseline-saved`, `not-read`, `budget-reached`).

If you set a maximum total charge for a run, the run reads only as many tracks as fit and names the rest in a free row. Tracks that did not fit are not remembered, so the next run returns them.

### Rows that explain instead of failing

| status | When |
|---|---|
| `not-found` | Spotify has no track or album with that ID, or the album has no tracks |
| `no-play-count` | Spotify shows no play count for the track (it shows one only after a track passes 1,000 plays) |
| `invalid-input` | The line is not a track or album link, URI or track ID (artist, playlist and podcast links are named in the row) - or no link was given |
| `duplicate-input` | The same track or album appeared earlier in the list. A track that appears both as a track link and inside an album is returned once |
| `unreadable` | Spotify's answer did not contain the track or album. No number is guessed |
| `blocked` | Spotify refused or throttled the requests |
| `not-read` | Lines that were not read: after a `blocked` row or three unreadable answers in a row the run stops asking Spotify; also when `maxTracks` or the 1,000-line limit was reached |
| `baseline-saved` / `no-change` | Monitoring: tracks seen for the first time, or tracks that did not move |
| `budget-reached` | The run's maximum total charge was reached |

### Good to know

- **Play counts are Spotify's own figure**, the same number the Spotify app shows. Spotify refreshes it periodically, not live, so a daily schedule is the best fit: in Apify, open **Schedules**, add this Actor and pick a time.
- **Speed**: in our runs on 2026-11-09, 5 albums with 500 tracks took about 7 seconds, and a 100-track album about 22 seconds including start-up.
- **Albums** are read in full up to 500 tracks.
- **Artist and playlist links** are not expanded. Put the artist's album links in the list instead - one album link returns every track on it.
- Only public data is read. No login and no Spotify account are needed.
- This Actor is not affiliated with, endorsed by or sponsored by Spotify. You are responsible for using the data in line with the applicable terms and laws.

### Thanks for using this Actor

We build these tools for people who run them every day, and we improve them from what users tell us.

- **Missing a field, or need another filter?** Tell us in the **Issues** tab. If the data is there, we add it.
- **Found a bug or a wrong value?** Post the run ID in the **Issues** tab. Wrong data is the thing we fix first.

If this Actor saved you time, a short review helps other people find it.

# Actor input Schema

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

Track or album links (https://open.spotify.com/track/7qiZfU4dY1lWllzX7mPBI3, https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj), spotify:track: / spotify:album: URIs, or 22-character track IDs. An album returns one row for each of its tracks. Up to 1,000 lines per run. Artist, playlist and podcast links come back as an "invalid-input" row that is not charged; a track or album Spotify does not have comes back as a "not-found" row that is not charged.

## `maxTracks` (type: `integer`):

With monitoring off, the run stops after this many track rows and names what it did not read in a row that is not charged. Monitoring mode checks every track you listed.

## `monitoringMode` (type: `boolean`):

Off = every track is returned and charged as one row. On = play counts are remembered per track, and later runs return only the tracks whose play count moved by at least the minimum change below, with the previous count, the change and plays per day. A track this Actor has not returned to you before is first saved as a starting point, which is not charged. Tracks are remembered one by one, so adding a track or album does not return the others again. Do not put the same track in two schedules that run at the same moment.

## `minPlayCountChange` (type: `integer`):

In monitoring mode, a track is returned when its play count is at least this much higher (or lower) than the last returned count. Smaller moves are not returned and are not charged; they add up and the track is returned once the total reaches this number.

## `resetHistory` (type: `boolean`):

Clears every play count this Actor remembered on your account, so the next monitoring run saves a new starting point. This affects all your runs of this Actor, because tracks are remembered one by one rather than per list.

## Actor input object example

```json
{
  "urls": [
    "https://open.spotify.com/track/7qiZfU4dY1lWllzX7mPBI3",
    "https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj"
  ],
  "maxTracks": 1000,
  "monitoringMode": false,
  "minPlayCountChange": 1,
  "resetHistory": false
}
```

# Actor output Schema

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

One row per Spotify track: name, artists, the exact play count, the previous count, the change and plays per day when the track was read before, album, release date, label (album input), track and disc number, duration, explicit flag and cover. Tracks and albums Spotify does not have, lines that are not track or album links, tracks without a public play count and runs where nothing moved come back as their own rows and are not charged.

# 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/track/7qiZfU4dY1lWllzX7mPBI3",
        "https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("neverempty/spotify-play-count-tracker").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/track/7qiZfU4dY1lWllzX7mPBI3",
        "https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("neverempty/spotify-play-count-tracker").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/track/7qiZfU4dY1lWllzX7mPBI3",
    "https://open.spotify.com/album/4yP0hdKOZPNshxUOjY0cZj"
  ]
}' |
apify call neverempty/spotify-play-count-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neverempty/spotify-play-count-tracker"
        }
    }
}
```

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/zOpRrv99ybhVbUUI1/builds/eMSeqTbjJOSmHOJeb/openapi.json
