Spotify Charts + Search Hybrid Scraper avatar

Spotify Charts + Search Hybrid Scraper

Pricing

from $2.99 / 1,000 charts & searches

Go to Apify Store
Spotify Charts + Search Hybrid Scraper

Spotify Charts + Search Hybrid Scraper

Snapshot public Spotify Top 50 playlist metadata and, with eligible official credentials, merge search tracks with accessible chart positions.

Pricing

from $2.99 / 1,000 charts & searches

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

18 days ago

Last modified

Categories

Features

Limited permissions

Share

Compare a public Spotify chart snapshot with public Spotify search results for one query. The dataset can contain one chartSnapshot row for the chart playlist and one hybridTrack row per search result, including ID-based chart matching so you can see which search tracks are currently charting and at what chart position.

Get started

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Enter a query and choose a two-letter country.
  3. Keep maxItems small for the first run; it caps search results, not the chart snapshot.
  4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open Run summary (OUTPUT_SUMMARY) to check the outcome and counts.

Input

query is required. Unsupported field names and out-of-range values are rejected before requests start.

FieldTypeRequired?DefaultMeaning
querystringRequiredNot suppliedKeyword searched on Spotify's public search page, 1–200 characters.
countrystringOptionalUSTwo-letter code. US and GB use their public Top 50 playlist; other codes use the public global chart fallback.
maxItemsintegerOptional10Maximum public Songs search results retained, 1–10. The chart snapshot is additional.
requestDelayMsintegerOptional1000Polite delay before each browser navigation, 0–30000 ms.
timeoutSecsintegerOptional45Timeout for each public page, 10–90 seconds.
maxResponseBytesintegerOptional3000000Hard initial response-body limit per page, 100000–5000000 bytes.
proxyConfigurationobjectOptional{"useApifyProxy":false}Optional Apify Proxy settings; direct browsing is the default.

Full default input (supply query before running):

{
"country": "US",
"maxItems": 10,
"requestDelayMs": 1000,
"timeoutSecs": 45,
"maxResponseBytes": 3000000,
"proxyConfiguration": {
"useApifyProxy": false
}
}

The Actor reads anonymous, public Spotify chart and search pages. It does not log in, call the official Web API, capture Web Player tokens, download audio, or solve access challenges.

Output

The dataset contains one chart snapshot and zero or more hybrid track rows. Optional values are omitted rather than inferred, and no diagnostic or placeholder rows are written.

FieldTypeAvailabilityMeaning
recordIdstringAlwaysStable key for the chart snapshot or hybrid track.
recordTypestringAlwayschartSnapshot or hybridTrack.
scrapedAtstringAlwaysTime the row was saved, in ISO UTC.
querystringAlwaysSearch query used for the run.
countrystringAlwaysTwo-letter country context; other codes retain the requested code while using the global chart.
chartPlaylistIdstringAlwaysPublic chart playlist ID actually used.
spotifyUrlstringAlwaysChart playlist URL on snapshot rows; track URL on hybrid rows.
chartContentsStatusstringAlwaysChart availability: public_preview, partial_rendered, or unavailable_public_page.
searchStatusstringAlwaysSearch availability: public_preview or unavailable_public_page.
hybridMergeStatusstringAlwayspublic_preview when both sides contributed, chart_unavailable when the chart could not be read, or unavailable_public_page when no search rows were available.
sourceUrlstringAlwaysExact public page URL that produced the row. Observed field not declared in dataset_schema.json.
chartPlaylistNamestringChart snapshot rowsPublic chart playlist name.
descriptionstringChart snapshot rows, when visiblePublic chart playlist description.
declaredItemCountintegerChart snapshot rows, when visibleDeclared chart song count, at least 0.
declaredSaveCountintegerChart snapshot rows, when visiblePublic chart save count, at least 0.
chartTracksobject arrayChart snapshot rows; may be emptyRetained chart rows; see the nested shape below.
renderedTrackCountintegerChart snapshot rowsNumber of chart track rows retained, at least 0.
trackIdstringWhen a track is rendered22-character public track ID.
namestringWhen a track is renderedTrack name.
artistsobject arrayWhen artist links are visibleArtists with artistId and name; the track-level spotifyUrl identifies the track.
artistNamesstringWhen artist names are visibleComma-separated artist names.
albumstringWhen an album is visibleAlbum name.
albumIdstringWhen an album link is visiblePublic album ID.
albumUrlstringWhen an album link is visiblePublic album URL.
durationFormattedstringWhen renderedTrack duration as displayed.
playCountintegerChart rows, when visiblePublic chart play count; it appears inside chartTracks, not on hybrid search rows.
searchPositionintegerHybrid track rowsOne-based position in the public search result list.
chartPositionintegerWhen the track also chartsOne-based chart position; also present inside chartTracks for snapshots.
isChartingbooleanHybrid track rowsWhether the search track ID matched a retained chart track.

Each chartTracks entry contains chartPosition, trackId, name, spotifyUrl, artists, artistNames, album, albumId, albumUrl, playCount, and durationFormatted when visible.

Full JSON output

The two examples below are real saved rows from the 2026-10-25 verification run. The second row's chartTracks array is shortened from 50 entries to two; scalar values are unchanged.

Chart snapshot row:

{
"recordId": "spotify_chart_US_37i9dQZEVXbLRQDuF5jeBp",
"recordType": "chartSnapshot",
"query": "Pitbull",
"country": "US",
"chartPlaylistId": "37i9dQZEVXbLRQDuF5jeBp",
"chartPlaylistName": "Top 50 - USA",
"spotifyUrl": "https://open.spotify.com/playlist/37i9dQZEVXbLRQDuF5jeBp",
"description": "Public Playlist Top 50 - USA Your daily update of the most played tracks right now - USA. Spotify • 3,233,835 saves • 50 songs , about 3 hr • Oct 25, 2026",
"declaredItemCount": 50,
"declaredSaveCount": 3233835,
"chartTracks": [
{
"chartPosition": 1,
"trackId": "2sFepQNyl1WjpROruP8bJ0",
"name": "Housewife",
"spotifyUrl": "https://open.spotify.com/track/2sFepQNyl1WjpROruP8bJ0",
"artists": [
{
"artistId": "45dkTj5sMRSjrmBSBeiHym",
"name": "Tate McRae"
}
],
"artistNames": "Tate McRae",
"album": "Housewife",
"albumId": "6JvmSyocXef7RZDZFaymNl",
"albumUrl": "https://open.spotify.com/album/6JvmSyocXef7RZDZFaymNl",
"playCount": 1825853,
"durationFormatted": "3:28"
},
{
"chartPosition": 2,
"trackId": "70cHKK8bHAfJrOGVnfRG9J",
"name": "Nicole Kidman",
"spotifyUrl": "https://open.spotify.com/track/70cHKK8bHAfJrOGVnfRG9J",
"artists": [
{
"artistId": "2qanRMyA5bNuTvz1dK45OP",
"name": "ADÉLA"
}
],
"artistNames": "ADÉLA",
"album": "PRIMA",
"albumId": "2yDFVH9CeOHt0sc9eI0aBs",
"albumUrl": "https://open.spotify.com/album/2yDFVH9CeOHt0sc9eI0aBs",
"playCount": 1321803,
"durationFormatted": "3:01"
}
],
"renderedTrackCount": 50,
"chartContentsStatus": "public_preview",
"searchStatus": "public_preview",
"hybridMergeStatus": "public_preview",
"sourceUrl": "https://open.spotify.com/playlist/37i9dQZEVXbLRQDuF5jeBp",
"scrapedAt": "2026-10-25T21:00:46.656Z"
}

Hybrid track row:

{
"recordId": "spotify_hybrid_US_6Rb0ptOEjBjPPQUlQtQGbL",
"recordType": "hybridTrack",
"scrapedAt": "2026-10-25T21:00:46.659Z",
"query": "Pitbull",
"country": "US",
"chartPlaylistId": "37i9dQZEVXbLRQDuF5jeBp",
"spotifyUrl": "https://open.spotify.com/track/6Rb0ptOEjBjPPQUlQtQGbL",
"trackId": "6Rb0ptOEjBjPPQUlQtQGbL",
"name": "Hotel Room Service",
"artists": [
{
"artistId": "0TnOYISbd1XYRBk9myaseg",
"name": "Pitbull"
}
],
"artistNames": "Pitbull",
"durationFormatted": "3:57",
"searchPosition": 1,
"isCharting": false,
"chartContentsStatus": "public_preview",
"searchStatus": "public_preview",
"hybridMergeStatus": "public_preview",
"sourceUrl": "https://open.spotify.com/search/Pitbull"
}

Run summary

Run summary is stored in the run's key-value store under OUTPUT_SUMMARY; the same object is also written to OUTPUT. It records chart and search coverage as well as saved-row counts.

FieldMeaning
recordTypeAlways runSummary.
statusActor outcome: SUCCEEDED or FAILED.
querySearch query used for the run.
countryCountry context requested for the run.
requestedMaxItemsSearch-result limit requested.
recordsStoredAll saved rows, including the chart snapshot.
hybridTrackCountSaved hybrid track rows.
chartSnapshotCountSaved chart snapshot rows.
renderedChartTrackCountChart track rows retained.
chartRowsObservedAcrossScrollPassesChart rows observed during scrolling.
chartScrollPassesChart scroll passes performed.
chartScrollableContainersScrollable containers found on the chart page.
chartDeclaredTrackCountChart song count declared by the page.
chartMatchCountHybrid rows whose track ID matched the chart.
searchRowsObservedAcrossScrollPassesSearch rows observed during scrolling.
searchScrollPassesSearch scroll passes performed.
searchScrollableContainersScrollable containers found on the search page.
searchTrackAnchorCountTrack links observed in the search results.
errorRecordCountPage or extraction failures recorded for the run.
chartPlaylistIdChart playlist ID actually used.
authenticationModeAlways anonymous_public_page.
sourceTransportTransport description recorded for the run.
startedAtRun start time, in ISO UTC.
completedAtTime the summary was written, in ISO UTC.
durationMsRun duration in milliseconds.
runStatusCanonical run status; matches status.
dataStatusCompleteness of saved rows: COMPLETE, PARTIAL, NO_RESULTS, or FAILED.
failureCountOperational failures and failed dataset writes.
outputWriteFailureCountSummary or optional key-value writes that failed.
StatusData statusMeaning
SUCCEEDEDCOMPLETEChart and search completed without an extraction problem.
SUCCEEDEDPARTIALAt least one row was saved, but a page or output write failed. Saved rows remain available.
SUCCEEDEDNO_RESULTSThe run completed cleanly and produced no rows.
FAILEDFAILEDThe run failed before any usable row was saved.

Example OUTPUT_SUMMARY from the saved run (also written to OUTPUT):

{
"recordType": "runSummary",
"status": "SUCCEEDED",
"query": "Pitbull",
"country": "US",
"requestedMaxItems": 4,
"recordsStored": 5,
"hybridTrackCount": 4,
"chartSnapshotCount": 1,
"renderedChartTrackCount": 50,
"chartRowsObservedAcrossScrollPasses": 249,
"chartScrollPasses": 6,
"chartScrollableContainers": 1,
"chartDeclaredTrackCount": 50,
"chartMatchCount": 0,
"searchRowsObservedAcrossScrollPasses": 4,
"searchScrollPasses": 5,
"searchScrollableContainers": 2,
"searchTrackAnchorCount": 4,
"errorRecordCount": 0,
"chartPlaylistId": "37i9dQZEVXbLRQDuF5jeBp",
"authenticationMode": "anonymous_public_page",
"sourceTransport": "anonymous Chromium public pages",
"startedAt": "2026-10-25T21:00:11.662Z",
"completedAt": "2026-10-25T21:00:47.314Z",
"durationMs": 35652,
"runStatus": "SUCCEEDED",
"dataStatus": "COMPLETE",
"failureCount": 0,
"outputWriteFailureCount": 0
}

Coverage and limitations

Only US and GB map to their country Top 50 playlist; every other two-letter code uses Spotify's public global chart while country keeps the requested value. The chart snapshot is a separate row, so recordsStored can be one more than maxItems. Chart tracks are read from a virtualized list with bounded scrolling and may be partial; chartContentsStatus records that outcome.

chartPosition and isCharting are ID-based matches between the retained chart rows and the search rows. A search track that is not in the retained chart window is reported as not charting, not inferred from title or artist. Search results, chart contents, save counts, and play counts change over time. If the chart page cannot be read, the search rows can still be saved with hybridMergeStatus: "chart_unavailable". Failed pages are counted in the summary and logged, never written as data rows.

Usage and support

Apify compute and storage costs vary with browser time, chart scroll passes, and the number of search rows. The chart snapshot attempts to read the full Top 50, so a run is heavier than a search-only scrape. Start with a small maxItems, inspect the dataset and run summary, then scale gradually. 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, endorsed by, or sponsored by Spotify. Use it only for public data and in accordance with Spotify's terms, robots guidance, and applicable law.