Spotify Play Count Scraper: Tracks, Albums, Artists & Playlists avatar

Spotify Play Count Scraper: Tracks, Albums, Artists & Playlists

Pricing

from $0.04 / 1,000 item extracteds

Go to Apify Store
Spotify Play Count Scraper: Tracks, Albums, Artists & Playlists

Spotify Play Count Scraper: Tracks, Albums, Artists & Playlists

Get exact Spotify play counts (stream counts) for every track of any artist, album, playlist or track link. Top 10 tracks, newest releases, and the change since your last run for daily monitoring. No API key or login.

Pricing

from $0.04 / 1,000 item extracteds

Rating

0.0

(0)

Developer

Automation Lab

Automation Lab

Maintained by Community

Actor stats

0

Bookmarked

39

Total users

18

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissionsMulti-tenantServer interface

Share

Spotify Track Play Count Scraper

Extract exact cumulative Spotify play counts (stream counts) from public artist, album, track, and playlist URLs.

Spotify Track Play Count Scraper turns each track into a clean, timestamped row for stream monitoring, release analysis, catalog reporting, and scheduled snapshots—without a Spotify developer key or account login.

Paste a Spotify URL, run the Actor, and export the result as JSON, CSV, Excel, XML, or HTML.

  • 🎵 Exact per-track playCount, not an estimate
  • 💿 Artist, album, playlist, and individual track URL support
  • 🎤 Artist links as newest releases or the current top 10 tracks
  • 📈 Optional playCountChange since your previous run
  • ⏱️ One observedAt timestamp for each run snapshot
  • 🧭 Track, album, and artist IDs plus canonical links
  • 🔐 Public data workflow with no user credentials
  • 🔁 Deduplicated output ready for daily or weekly monitoring

What does Spotify Track Play Count Scraper do?

The Actor reads public Spotify catalog URLs and emits one dataset row per track.

For an album URL, it returns the album's track list and exact count for every track.

For a track URL, it resolves the track's album context and returns only the requested track.

For a playlist URL, it returns every track in playlist order with its position and the date it was added.

For an artist URL, it either expands the artist's newest releases (albums and, optionally, singles and EPs, newest first) or returns the artist's current top 10 tracks.

Every result includes the IDs and names needed to match the same track in a later run.

That makes the output suitable for stream-delta calculations rather than one-off visual inspection.

Who is this Spotify stream count extractor for?

Record labels and distributors

  • 📈 Compare release velocity across singles and albums.
  • 🗓️ Schedule daily snapshots for launch-week reporting.
  • 🧾 Join Spotify IDs to internal catalog or royalty systems.

Artists and managers

  • 🎤 Track how a new release grows between checkpoints.
  • 💡 Find catalog tracks that accelerate after campaigns or placements.
  • 📊 Build simple progress dashboards without manual copying.

Music marketers

  • 📣 Measure count movement around ads, influencer campaigns, and press.
  • 🔎 Compare the response of several promoted tracks.
  • 🧪 Export repeatable observations for campaign attribution analysis.

Chart, royalty, and catalog analysts

  • 🧮 Compute stream deltas from exact cumulative observations.
  • 🧩 Match records by stable Spotify track and artist IDs.
  • 🏷️ Retain content rating, duration, ordering, and playability context.

Why use this Actor?

Spotify's official Web API provides rich catalog metadata but does not expose the exact cumulative play count shown by Spotify's own public client surfaces.

This Actor focuses on that missing metric.

It avoids estimates, popularity-score conversions, and fabricated counts.

If Spotify stops returning a numeric count or changes its public response shape, the Actor reports a clear extraction failure instead of silently guessing.

Other practical benefits include:

  • ⚡ HTTP-first execution with low memory requirements
  • 🔁 Bounded artist expansion for predictable runs
  • 🧹 Global track deduplication across overlapping inputs
  • 🧰 Standard Apify API, schedules, webhooks, and integrations
  • 📦 Consistent flat records for BI tools and spreadsheets

What Spotify data can I extract?

FieldTypeDescription
sourceTypestringInput entity type: artist, album, track, or playlist
sourceUrlstringCanonical input Spotify URL
albumIdstringSpotify album ID
albumNamestring | nullAlbum or release name (null only if Spotify's track lookup fails for an artist top track)
albumUrlstringCanonical Spotify album URL
trackIdstringStable Spotify track ID
trackNamestringTrack title
trackUrlstringCanonical Spotify track URL
primaryArtistIdstringFirst credited artist ID
primaryArtistNamestringFirst credited artist name
artistIdsarrayIDs of all credited artists
artistNamesarrayNames of all credited artists
playCountnumberExact cumulative play count observed
discNumbernumberDisc position
trackNumbernumber | nullTrack position on the disc (null only if Spotify's track lookup fails for an artist top track)
durationMsnumberDuration in milliseconds
contentRatingstringSpotify content label, such as EXPLICIT or NONE
isExplicitbooleanConvenient explicit-content flag
isPlayablebooleanWhether Spotify marks the track playable
sourcePositionnumber | null1-based position in the playlist or the artist's top tracks
playlistIdstring | nullPlaylist ID for playlist sources
playlistNamestring | nullPlaylist name for playlist sources
addedAtstring | nullWhen the track was added to the playlist
previousPlayCountnumber | nullPlay count from your previous run (with Show change since my last run)
playCountChangenumber | nullplayCount − previousPlayCount
previousObservedAtstring | nullWhen the previous count was observed
observedAtstringUTC ISO timestamp of the snapshot

How to scrape Spotify play counts

  1. Open the Actor input page.
  2. Add one or more public Spotify artist, album, track, or playlist URLs.
  3. Keep maxTracks low for the first run.
  4. For artist URLs, choose newest releases or top 10 tracks, and how many releases to inspect.
  5. Turn on Show change since my last run if you schedule the same input.
  6. Click Start.
  7. Review the Track play counts dataset view.
  8. Export the dataset or connect a webhook, API client, or integration.

A small album normally completes in seconds.

Large artist snapshots take longer because each selected release is inspected separately.

Input parameters

spotifyUrls

Required list of 1–200 public Spotify links or spotify: URIs.

Supported examples:

https://open.spotify.com/album/1XkGORuUX2QGOEIL4EbJKm
https://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJ
https://open.spotify.com/track/7MXVkk9YMctZqd1Srtv4MB
https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M
https://open.spotify.com/intl-de/track/4cOdK2wGLETKBW3PvgPWqT
spotify:album:1XkGORuUX2QGOEIL4EbJKm

Episode, show, user, shortened, and non-Spotify URLs are rejected.

maxTracks

Global cap on unique output rows.

Default: 100.

Use 20 for a cheap first album test and raise it for catalogs or long playlists (maximum 10000).

artistMode

releases (default): tracks from the artist's newest releases. topTracks: the artist's current top 10 tracks, with sourcePosition 1–10.

maxAlbumsPerArtist

Newest releases inspected for each artist URL in releases mode, newest first. Compilations are skipped.

Default: 3; maximum: 100.

includeSingles

When enabled, artist expansion includes singles and EPs as well as albums.

Default: true.

compareWithPrevious

When enabled, each track your account has seen before gets previousPlayCount, playCountChange and previousObservedAt. Counts are kept in a key-value store named spotify-play-count-history in your own Apify account (up to 50,000 tracks). Default: false.

Input example

{
"spotifyUrls": [
"https://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJ"
],
"maxAlbumsPerArtist": 3,
"includeSingles": true,
"maxTracks": 50
}

Daily playlist monitoring with the change since yesterday:

{
"spotifyUrls": [
"https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M"
],
"maxTracks": 100,
"compareWithPrevious": true
}

For one exact track lookup:

{
"spotifyUrls": [
"https://open.spotify.com/track/7MXVkk9YMctZqd1Srtv4MB"
],
"maxTracks": 1
}

Output example

{
"sourceType": "album",
"sourceUrl": "https://open.spotify.com/album/1XkGORuUX2QGOEIL4EbJKm",
"albumId": "1XkGORuUX2QGOEIL4EbJKm",
"albumName": "Favourite Worst Nightmare",
"albumUrl": "https://open.spotify.com/album/1XkGORuUX2QGOEIL4EbJKm",
"trackId": "7f9I5WdyXm5q1XqnSYgQZb",
"trackName": "Brianstorm",
"trackUrl": "https://open.spotify.com/track/7f9I5WdyXm5q1XqnSYgQZb",
"primaryArtistId": "7Ln80lUS6He07XvHI8qqHH",
"primaryArtistName": "Arctic Monkeys",
"artistIds": ["7Ln80lUS6He07XvHI8qqHH"],
"artistNames": ["Arctic Monkeys"],
"playCount": 316003496,
"discNumber": 1,
"trackNumber": 1,
"durationMs": 172866,
"contentRating": "NONE",
"isExplicit": false,
"isPlayable": true,
"sourcePosition": null,
"playlistId": null,
"playlistName": null,
"addedAt": null,
"previousPlayCount": 315871204,
"playCountChange": 132292,
"previousObservedAt": "2026-07-18T02:00:00.000Z",
"observedAt": "2026-07-19T02:00:00.000Z"
}

Play counts change continuously, so the example count is illustrative.

How much does it cost to scrape Spotify play counts?

The Actor uses pay-per-event pricing:

  • A $0.005 one-time start event is charged once per run that returns tracks or finishes cleanly. Invalid input is free.
  • Each unique track row costs $0.00007793 on FREE, $0.000067765 on BRONZE, $0.000052857 on SILVER, $0.000040659 on GOLD, $0.000027106 on PLATINUM, or $0.000018974 on DIAMOND.
  • Subscription-tier discounts are applied automatically.

At BRONZE pricing, a 12-track album costs about $0.00581 ($0.005 start plus 12 track events). A 100-track snapshot costs about $0.01178.

From 2026-12-05 the price will be: a $0.001 start event, and $0.00175 per track on FREE and BRONZE, $0.001575 on SILVER, and $0.0014 on GOLD, PLATINUM and DIAMOND (about $1.75 per 1,000 tracks). A 20-track run will then cost about $0.036 and a 100-track snapshot about $0.176.

For cost control, use a single track or small album first, or set Maximum charge per run: the Actor stops at that limit and says so in its status.

The default input caps output at 20 tracks in the prefilled example.

Apify's free plan can be used for small evaluations subject to the current platform allowance.

Monitoring Spotify stream growth

A play count is cumulative.

The easiest way: turn on Show change since my last run and schedule the Actor. Each row then carries playCountChange.

To calculate growth yourself, compare two observations with the same trackId:

streamDelta = current.playCount - previous.playCount

You can also calculate average velocity:

streamsPerHour = streamDelta / hoursBetweenObservations

Store each run's dataset in your warehouse or send it through a webhook.

Use observedAt rather than the run start shown in an external scheduler, because observedAt is attached directly to every result.

Artist catalog behavior

Artist URLs use bounded expansion, or artistMode: "topTracks" for the artist's current top 10.

Spotify artists may have many albums, deluxe editions, compilations, and singles.

maxAlbumsPerArtist keeps runtime and output predictable.

The Actor reads the artist's discography newest first (albums, and singles and EPs when enabled; compilations skipped) and deduplicates track IDs.

If you need one historical album, pass that album URL directly instead of increasing the artist limit.

Tips for reliable results

  • ✅ Use open.spotify.com links copied from Spotify (localized /intl-xx/ links are fine).
  • ✅ Start with one URL before submitting a batch.
  • ✅ Use track URLs for exact single-record monitoring.
  • ✅ Use album URLs when release completeness matters.
  • ✅ Keep artist release limits focused on the campaign period.
  • ✅ Join snapshots by trackId, not by title alone.
  • ✅ Treat counts from different observedAt timestamps as separate observations.
  • ✅ Podcast episodes inside a playlist are skipped; only music tracks have play counts.
  • ❌ Do not send podcast show or episode URLs; they are outside this Actor's scope.

Apify API with cURL

Start a run:

curl -X POST \
"https://api.apify.com/v2/acts/automation-lab~spotify-track-play-count-scraper/runs?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"spotifyUrls": ["https://open.spotify.com/track/7MXVkk9YMctZqd1Srtv4MB"],
"maxTracks": 1
}'

Fetch dataset items after the run succeeds:

$curl "https://api.apify.com/v2/datasets/DATASET_ID/items?clean=true&format=json"

Apify API with JavaScript

Install the client:

$npm install apify-client

Run the Actor:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/spotify-track-play-count-scraper').call({
spotifyUrls: ['https://open.spotify.com/album/1XkGORuUX2QGOEIL4EbJKm'],
maxTracks: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Apify API with Python

Install the client:

$pip install apify-client

Run and read results:

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('automation-lab/spotify-track-play-count-scraper').call(run_input={
'spotifyUrls': ['https://open.spotify.com/track/7MXVkk9YMctZqd1Srtv4MB'],
'maxTracks': 1,
})
items = list(client.dataset(run['defaultDatasetId']).iterate_items())
print(items)

Integrations and automation workflows

Google Sheets and Airtable

Schedule daily runs, then send rows to a sheet keyed by trackId and observedAt.

Use a pivot table or formula to calculate changes between snapshots.

Make and Zapier

Trigger the Actor from a release-tracking scenario.

Send tracks whose delta exceeds a threshold to Slack, email, or a campaign dashboard.

Webhooks and data warehouses

Attach an Apify run-succeeded webhook.

Load the dataset into BigQuery, Snowflake, PostgreSQL, or S3 for long-term history.

Tableau, Power BI, and Looker Studio

Read clean CSV/JSON exports and chart play-count velocity by release, artist, or campaign window.

Use with Apify MCP and AI assistants

Connect the Actor to Claude Code:

$claude mcp add --transport http apify "https://mcp.apify.com?tools=automation-lab/spotify-track-play-count-scraper"

For Claude Desktop, Cursor, or VS Code, add this MCP server configuration:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=automation-lab/spotify-track-play-count-scraper"
}
}
}

Example prompts:

  • “Get the exact Spotify play counts for every track on this album URL.”
  • “Snapshot the newest three releases for this artist and sort tracks by play count.”
  • “Look up this track's current count and format the result for my monitoring table.”
  • “Compare this dataset with yesterday's snapshot by Spotify track ID.”

Scheduling daily or weekly snapshots

Create an Apify schedule with stable input URLs and limits.

Daily schedules work well for active launches.

Weekly schedules are often sufficient for back-catalog monitoring.

Keep the input unchanged when you want clean time-series comparisons.

If you alter artist release limits, record that change in your downstream pipeline because the observed catalog set may change.

Data quality and limitations

Counts come from Spotify's current public web-client data surface.

When a run fails, the Actor sends sanitized diagnostic input, the error and the Actor, build and run IDs to our private GlitchTip error tracker so we can fix it. Secret fields and URL query strings are removed, and reports are kept for 30 days.

They are observations, not royalty statements and not predictions.

Spotify can update counts at its own cadence.

Regional playability may vary.

Artist expansion is bounded and does not claim to retrieve an unlimited full discography.

Persisted web-client operations are undocumented and can change.

The Actor detects missing response branches and invalid counts so failures are visible.

This Actor accesses public catalog information without logging into a user account.

Web scraping laws and contractual requirements vary by country and use case.

You are responsible for using the data lawfully, respecting applicable terms, protecting personal data, and avoiding harmful or excessive automation.

Do not use the Actor to download audio, bypass access controls, impersonate users, or interfere with Spotify's service.

When in doubt, consult qualified legal counsel.

Troubleshooting

Why did my URL fail validation?

Use a full https://open.spotify.com/artist/..., /album/..., /track/..., or /playlist/... URL, or a spotify:album:... style URI.

Shortened (spotify.link), show, episode, and non-Spotify links are not accepted.

Why did an artist return fewer releases than expected?

Check artistMode, maxAlbumsPerArtist, includeSingles, and maxTracks. Compilations are skipped.

For a specific older release, submit its album URL directly.

Why did the run report Pathfinder compatibility failure?

Spotify may have changed an undocumented public query or response schema.

Retry once with a canonical URL.

If the error continues, share the run with the Actor developer so the operation can be updated; the Actor deliberately does not estimate missing counts.

Why are two play-count snapshots different?

Spotify play counts are cumulative and can update between runs.

Use observedAt to order observations and compute deltas.

FAQ

Does the Actor need a Spotify API key?

No. It bootstraps an anonymous public Spotify session.

Does it require a Spotify account or cookies?

No user login or private cookie is required.

Are play counts exact or estimated?

The playCount value is the exact numeric value returned by Spotify's public web client at observation time.

Can it scrape playlists?

Yes. Add a public playlist URL; each track comes with sourcePosition, playlistName and addedAt. Private playlists fail with a clear message.

Can it monitor several artists?

Yes. Add up to 200 links and set a sensible global maxTracks cap.

Does it save historical data automatically?

Each run creates a timestamped snapshot dataset. With Show change since my last run, the Actor also keeps the last count per track in your own account and adds the change to each row.

For full history, use Apify schedules and a downstream sheet, database, or warehouse to retain and compare snapshots.

Can I export to Excel or CSV?

Yes. Apify datasets support Excel, CSV, JSON, XML, and HTML exports.

Start tracking Spotify play counts

Add a Spotify track for a one-row lookup, an album for complete release counts, a playlist for every track in it, or an artist for its newest releases or top 10.

Start small, verify the rows, then schedule the same input to measure stream growth over time.

Server API

This Actor is also a Server Actor: copy the server URL from the Server tab and send authenticated HTTP requests (Authorization: Bearer <your Apify token>). Normal runs keep the full input and dataset.

GET /play-counts

Returns the play counts for one Spotify link right away.

Query parameterRequiredDescription
urlyesOne Spotify artist, album, track or playlist link, or a spotify: URI
maxTracksno1–200, default 50
artistModenoreleases (default) or topTracks
maxAlbumsPerArtistno1–10, default 3
includeSinglesnotrue (default) or false

Response: { "ok": true, "count": 12, "results": [ ...rows as in the dataset... ] }. The play-count history (compareWithPrevious) is batch-only, so previousPlayCount and playCountChange are always null here.

Charge: one track event per returned row, at the Actor's track price. No start fee per request. Requests with no rows are free.

Limits: 8 requests at once per server run, 60 seconds per request, 512 KB response.

Errors ({ "ok": false, "error": { "code", "message", "retryable" } }):

StatusCodeWhen
400INVALID_INPUT, INVALID_LIMITMissing or unsupported url, unknown parameter, out-of-range limit
404NOT_FOUNDThe artist, album, track or playlist does not exist or is private
404NO_RESULTSThe link has no tracks with play counts
405, 413, 415Wrong method, body or content type
502UPSTREAM_ERRORSpotify answered with an error or changed its format (retryable)
503RATE_LIMITED, OVERLOADEDSpotify is rate limiting, or the server is busy (retryable)
504UPSTREAM_TIMEOUT, TIMEOUTSpotify or the request took too long (retryable)
curl -H "Authorization: Bearer $APIFY_TOKEN" \
"<server URL from the Server tab>/play-counts?url=https://open.spotify.com/album/1XkGORuUX2QGOEIL4EbJKm&maxTracks=20"