Spotify Playlist-Track Mapping Scraper avatar

Spotify Playlist-Track Mapping Scraper

Pricing

from $2.99 / 1,000 playlist track mappings

Go to Apify Store
Spotify Playlist-Track Mapping Scraper

Spotify Playlist-Track Mapping Scraper

Map Spotify tracks to the playlists where they appear for graph datasets and placement tracking.

Pricing

from $2.99 / 1,000 playlist track mappings

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Map public Spotify playlist positions to individual tracks in a flat, relational dataset. Each row joins one playlist position to a track ID, track name, public track URL, artist identities, album context, duration, and source playlist, so the output can be loaded into a table or used to compare placements across playlists.

Get started

  1. Open the Actor Store page and select Try for free, or open the Input tab.
  2. Add one or more public Spotify playlist URLs or 22-character IDs to playlistUrls.
  3. Set maxTracks to the number of positions you need per playlist. Keep the other defaults for the first run.
  4. Start the Actor and open the dataset. Export the rows as JSON, CSV, or Excel. Open Run summary (OUTPUT_SUMMARY) to check the outcome and counts.

Input

playlistUrls is required. All other fields are optional. Unsupported field names and out-of-range values are rejected before requests start.

FieldTypeRequired?DefaultMeaning
playlistUrlsstring arrayRequiredNot suppliedOne to 20 public Spotify playlist URLs or IDs. 1–20 items, each 1–200 characters. Duplicates are processed by ID.
maxTracksintegerOptional100Maximum playlist-item rows mapped per playlist. 1–500.
marketstringOptional"US"Two-letter market context copied to every row. It is not applied as a public-page filter.
clientIdstringOptionalNot suppliedAccepted for backward compatibility but ignored. Public anonymous-page extraction is always used. Up to 200 characters.
clientSecretstringOptionalNot suppliedAccepted for backward compatibility but ignored. Public anonymous-page extraction is always used. Stored as a secret.
timeoutSecsintegerOptional30Per-request timeout, in seconds. 5–60.
maxResponseBytesintegerOptional2000000Maximum response size, in bytes. 100000–5000000.
requestDelayMsintegerOptional500Delay before public-page navigation, in milliseconds. 0–30000.
maxRequestRetriesintegerOptional1Maximum retries for a failed public-page request. 0–3.
proxyConfigurationobjectOptional{"useApifyProxy":false}Optional Apify Proxy configuration for public pages.

Full default input:

{
"maxTracks": 100,
"market": "US",
"timeoutSecs": 30,
"maxResponseBytes": 2000000,
"requestDelayMs": 500,
"maxRequestRetries": 1,
"proxyConfiguration": {
"useApifyProxy": false
}
}

The default input omits the required playlistUrls field; supply at least one playlist before running. The Actor reads anonymous public Spotify playlist pages. clientId and clientSecret do not enable the official Web API and are not used for extraction.

Output

The dataset contains one playlistTrackMapping row per observed playlist position. Optional information is omitted when the source does not publish it, and no diagnostic or placeholder rows are written.

FieldTypeAvailabilityMeaning
recordIdstringAlwaysStable Actor record key.
recordTypestringAlwaysRow discriminator, always playlistTrackMapping.
playlistIdstringAlwaysPublic Spotify playlist ID.
playlistNamestringAlwaysPublic playlist name.
playlistUrlstringAlwaysCanonical public Spotify playlist URL.
playlistOwnerstringWhen publishedPublic playlist owner when visible.
declaredItemCountintegerAlwaysPlaylist item count exposed by the playlist header in the saved rows.
positionintegerAlwaysOne-based track position in the playlist.
addedAtstringWhen publishedPublic track-added timestamp when exposed.
trackIdstringAlwaysPublic Spotify track ID.
trackNamestringAlwaysPublic track name.
trackUrlstringAlwaysCanonical public Spotify track URL.
artistNamesstringAlwaysComma-separated public artist names in source order.
artistIdsstring arrayAlwaysPublic artist IDs in source order.
albumstringAlwaysPublic album name.
albumIdstringAlwaysPublic Spotify album ID.
imageUrlstringWhen publishedPublic artwork URL when exposed.
releaseDatestringWhen publishedPublic release date when exposed.
durationMsintegerAlwaysTrack duration in milliseconds.
explicitbooleanWhen publishedExplicit marker when the public row visibly contains it.
marketstringAlwaysRequested two-letter market context.
sourceUrlstringAlwaysPublic playlist URL used as the mapping source.
scrapedAtstringAlwaysTime the row was saved, in ISO UTC.

Full JSON output

The example below is an unchanged row saved by the 2026-10-25 run. artistNames is a single comma-separated string, while artistIds is an array.

{
"position": 2,
"trackId": "70cHKK8bHAfJrOGVnfRG9J",
"trackName": "Nicole Kidman",
"trackUrl": "https://open.spotify.com/track/70cHKK8bHAfJrOGVnfRG9J",
"artistNames": "ADÉLA",
"artistIds": [
"2qanRMyA5bNuTvz1dK45OP"
],
"album": "PRIMA",
"albumId": "2yDFVH9CeOHt0sc9eI0aBs",
"durationMs": 181000,
"explicit": true,
"recordId": "spotify_playlist_track_37i9dQZF1DXcBWIGoYBM5M_2_70cHKK8bHAfJrOGVnfRG9J",
"recordType": "playlistTrackMapping",
"playlistId": "37i9dQZF1DXcBWIGoYBM5M",
"playlistName": "Today’s Top Hits",
"playlistUrl": "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
"declaredItemCount": 50,
"market": "US",
"sourceUrl": "https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M",
"scrapedAt": "2026-10-25T20:56:59.937Z"
}

Run summary

Run summary is stored in the run's key-value store under OUTPUT_SUMMARY. The same object is mirrored to OUTPUT for compatibility.

FieldMeaning
recordTypeAlways runSummary.
statusActor process outcome: SUCCEEDED or FAILED.
requestedPlaylistCountPlaylist inputs requested.
mappingRecordCountMapping rows produced for the run.
recordsStoredMapping rows saved to the dataset.
errorRecordCountError records; diagnostics are kept out of the dataset.
maxTracksConfigured per-playlist track bound.
marketRequested market context.
authenticationModeExtraction mode, anonymous_public_page in the saved run.
credentialFieldsIgnoredWhether supplied compatibility credential fields were ignored.
startedAtRun start time, in ISO UTC.
completedAtTime the summary was written, in ISO UTC.
durationMsRun duration in milliseconds.
runStatusCanonical run status; matches status.
dataStatusCOMPLETE, PARTIAL, NO_RESULTS, or FAILED.
failureCountOperational and dataset-write failures.
outputWriteFailureCountSummary or optional key-value writes that failed.
StatusData statusMeaning
SUCCEEDEDCOMPLETERows were saved without an extraction problem.
SUCCEEDEDPARTIALRows were saved, but a later problem prevented a complete run. Saved rows remain available.
SUCCEEDEDNO_RESULTSThe playlist completed cleanly with no observed positions.
FAILEDFAILEDA fatal error occurred before any usable row was saved.

Example OUTPUT_SUMMARY from the saved run:

{
"recordType": "runSummary",
"status": "SUCCEEDED",
"requestedPlaylistCount": 1,
"mappingRecordCount": 5,
"recordsStored": 5,
"errorRecordCount": 0,
"maxTracks": 5,
"market": "US",
"authenticationMode": "anonymous_public_page",
"credentialFieldsIgnored": false,
"startedAt": "2026-10-25T20:56:51.897Z",
"completedAt": "2026-10-25T20:57:00.518Z",
"durationMs": 8621,
"runStatus": "SUCCEEDED",
"dataStatus": "COMPLETE",
"failureCount": 0,
"outputWriteFailureCount": 0
}

Coverage and limitations

The Actor reads public playlist pages in an anonymous browser and emits mappings only for positions that Spotify renders. It does not emit a separate playlist metadata row and does not follow tracks or artists beyond the playlist page. maxTracks caps positions per playlist; a larger playlist can therefore be intentionally truncated. artistNames is a display string, not an array; use artistIds when joining to other datasets.

market is carried as context and is not used to filter the page. Credential fields are accepted only for input compatibility and are ignored; no official API route, login, private endpoint, token capture, or audio download is used. playlistOwner, addedAt, imageUrl, and releaseDate are omitted unless the public page exposes them. Missing tracks, private playlists, access challenges, and page changes cannot be recovered or inferred.

Usage and support

Compute and storage charges vary with browser time, playlist count, maxTracks, and row count. Start with one playlist and a small maxTracks value, inspect the mapping rows and run summary, then scale. See the Actor's Pricing tab for current account rates.

Use the Actor Issues page to report a problem. Include the run ID, the input used, and the OUTPUT_SUMMARY; do not include tokens, cookies, or private data. This Actor is an independent community tool and is not affiliated with, sponsored by, or endorsed by Spotify. Use it only for public data and in accordance with Spotify's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.