Spotify Play Count Scraper: Tracks, Albums, Artists & Playlists
Pricing
from $0.04 / 1,000 item extracteds
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
Maintained by CommunityActor stats
0
Bookmarked
39
Total users
18
Monthly active users
3 days ago
Last modified
Categories
Features
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
playCountChangesince your previous run - ⏱️ One
observedAttimestamp 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?
| Field | Type | Description |
|---|---|---|
sourceType | string | Input entity type: artist, album, track, or playlist |
sourceUrl | string | Canonical input Spotify URL |
albumId | string | Spotify album ID |
albumName | string | null | Album or release name (null only if Spotify's track lookup fails for an artist top track) |
albumUrl | string | Canonical Spotify album URL |
trackId | string | Stable Spotify track ID |
trackName | string | Track title |
trackUrl | string | Canonical Spotify track URL |
primaryArtistId | string | First credited artist ID |
primaryArtistName | string | First credited artist name |
artistIds | array | IDs of all credited artists |
artistNames | array | Names of all credited artists |
playCount | number | Exact cumulative play count observed |
discNumber | number | Disc position |
trackNumber | number | null | Track position on the disc (null only if Spotify's track lookup fails for an artist top track) |
durationMs | number | Duration in milliseconds |
contentRating | string | Spotify content label, such as EXPLICIT or NONE |
isExplicit | boolean | Convenient explicit-content flag |
isPlayable | boolean | Whether Spotify marks the track playable |
sourcePosition | number | null | 1-based position in the playlist or the artist's top tracks |
playlistId | string | null | Playlist ID for playlist sources |
playlistName | string | null | Playlist name for playlist sources |
addedAt | string | null | When the track was added to the playlist |
previousPlayCount | number | null | Play count from your previous run (with Show change since my last run) |
playCountChange | number | null | playCount − previousPlayCount |
previousObservedAt | string | null | When the previous count was observed |
observedAt | string | UTC ISO timestamp of the snapshot |
How to scrape Spotify play counts
- Open the Actor input page.
- Add one or more public Spotify artist, album, track, or playlist URLs.
- Keep
maxTrackslow for the first run. - For artist URLs, choose newest releases or top 10 tracks, and how many releases to inspect.
- Turn on Show change since my last run if you schedule the same input.
- Click Start.
- Review the Track play counts dataset view.
- 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/1XkGORuUX2QGOEIL4EbJKmhttps://open.spotify.com/artist/1Xyo4u8uXC1ZmMpatF05PJhttps://open.spotify.com/track/7MXVkk9YMctZqd1Srtv4MBhttps://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5Mhttps://open.spotify.com/intl-de/track/4cOdK2wGLETKBW3PvgPWqTspotify: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.comlinks 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
observedAttimestamps 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 osfrom apify_client import ApifyClientclient = 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.
Is scraping Spotify play counts legal?
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.
Related Spotify scrapers
- Spotify Scraper — broader artist, track, album, playlist, and search metadata workflows.
- Spotify Songs Scraper — song catalog metadata and discovery workflows.
- Spotify Track Play Count Scraper — focused exact stream-count snapshots and monitoring.
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 parameter | Required | Description |
|---|---|---|
url | yes | One Spotify artist, album, track or playlist link, or a spotify: URI |
maxTracks | no | 1–200, default 50 |
artistMode | no | releases (default) or topTracks |
maxAlbumsPerArtist | no | 1–10, default 3 |
includeSingles | no | true (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" } }):
| Status | Code | When |
|---|---|---|
| 400 | INVALID_INPUT, INVALID_LIMIT | Missing or unsupported url, unknown parameter, out-of-range limit |
| 404 | NOT_FOUND | The artist, album, track or playlist does not exist or is private |
| 404 | NO_RESULTS | The link has no tracks with play counts |
| 405, 413, 415 | Wrong method, body or content type | |
| 502 | UPSTREAM_ERROR | Spotify answered with an error or changed its format (retryable) |
| 503 | RATE_LIMITED, OVERLOADED | Spotify is rate limiting, or the server is busy (retryable) |
| 504 | UPSTREAM_TIMEOUT, TIMEOUT | Spotify 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"