Spotify Top 50 and Viral Hits Playlist Scraper avatar

Spotify Top 50 and Viral Hits Playlist Scraper

Pricing

from $2.99 / 1,000 viral charts

Go to Apify Store
Spotify Top 50 and Viral Hits Playlist Scraper

Spotify Top 50 and Viral Hits Playlist Scraper

Read ordered tracks from explicitly classified official Spotify Top 50 or Viral Hits playlists.

Pricing

from $2.99 / 1,000 viral charts

Rating

0.0

(0)

Developer

w3crawler

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

17 days ago

Last modified

Categories

Features

Limited permissions

Share

Read ordered track rows from public Spotify chart-style playlists. Choose the Top 50 playlist for a supported country, or the public Viral Hits editorial playlist, and save track identity, artists, album, duration, explicit status, displayed play count, playlist position, and source provenance.

Get started

  1. Open the Actor Store page and select Try for free, or open the Input tab.
  2. Choose chartType: top50 or viral-hits.
  3. Choose country. Top 50 supports global, US, GB, DE, and AU; Viral Hits supports global only.
  4. Set maxItems, start the Actor, and open the dataset. Export as JSON, CSV, or Excel. Open Run summary (OUTPUT_SUMMARY) to check the outcome and counts.

Input

All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

FieldTypeRequired?DefaultMeaning
countrystring enumOptional"global"Top 50 country selector: global, US, GB, DE, or AU. Viral Hits supports global only.
chartTypestring enumOptional"top50"top50 chart playlist or viral-hits editorial playlist. Viral Hits is not Viral 50.
marketstringOptional"US"Two-letter market label recorded in every row. Playlist selection is controlled by country and chartType.
maxItemsintegerOptional50Maximum ordered playlist rows. 1–50.
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 bytes accepted per response. 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:

{
"country": "global",
"chartType": "top50",
"market": "US",
"maxItems": 50,
"timeoutSecs": 30,
"maxResponseBytes": 2000000,
"requestDelayMs": 500,
"maxRequestRetries": 1,
"proxyConfiguration": {
"useApifyProxy": false
}
}

clientId and clientSecret do not enable the official Web API and are not used for extraction. The Actor reads anonymous public playlist pages without login, token capture, audio download, or access-control bypass.

Output

The dataset contains one playlistTrack row per saved 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 playlistTrack.
positionintegerAlwaysOne-based position in the public playlist.
chartTypestring enumAlwaysRequested playlist family: top50 or viral-hits.
countrystring enumAlwaysRequested country selector: global, US, GB, DE, or AU.
playlistIdstringAlwaysPublic Spotify playlist ID used for the rows.
trackIdstringAlwaysPublic Spotify track ID.
trackNamestringAlwaysVisible public track name.
spotifyUrlstringAlwaysCanonical public Spotify track URL.
artistNamesstring arrayAlwaysVisible artist names in display order.
artistIdsstring arrayAlwaysPublic Spotify artist IDs aligned to artistNames.
albumNamestringAlwaysVisible public album name.
albumIdstringAlwaysPublic Spotify album ID.
durationMsintegerAlwaysTrack duration in milliseconds.
explicitbooleanWhen publishedTrue when the public row displays the explicit marker.
playCountintegerAlwaysPublic play count displayed for the chart row in the saved run.
marketstringAlwaysRequested market label.
sourceUrlstringAlwaysPublic playlist page used for the row.
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 for the global Top 50 playlist. position is the playlist order, not a separate chart API rank.

{
"position": 3,
"trackId": "70cHKK8bHAfJrOGVnfRG9J",
"trackName": "Nicole Kidman",
"spotifyUrl": "https://open.spotify.com/track/70cHKK8bHAfJrOGVnfRG9J",
"artistNames": [
"ADÉLA"
],
"artistIds": [
"2qanRMyA5bNuTvz1dK45OP"
],
"albumName": "PRIMA",
"albumId": "2yDFVH9CeOHt0sc9eI0aBs",
"durationMs": 181000,
"explicit": true,
"playCount": 4952202,
"recordId": "spotify_chart_top50_global_70cHKK8bHAfJrOGVnfRG9J",
"recordType": "playlistTrack",
"chartType": "top50",
"country": "global",
"playlistId": "37i9dQZEVXbMDoHDwVN2tF",
"market": "US",
"sourceUrl": "https://open.spotify.com/playlist/37i9dQZEVXbMDoHDwVN2tF",
"scrapedAt": "2026-10-25T20:50:30.849Z"
}

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.
runStatusCanonical run status; matches status.
dataStatusCOMPLETE, PARTIAL, NO_RESULTS, or FAILED.
chartTypePlaylist family requested.
countryCountry selector requested.
playlistIdPublic playlist ID used.
chartRecordCountChart rows produced.
recordsStoredRows saved to the dataset.
errorRecordCountError records; diagnostics are kept out of the dataset.
failureCountOperational and dataset-write failures.
maxItemsConfigured row cap.
marketRequested market label.
sourceClassificationHuman-readable classification of the page, such as official Top 50 playlist.
isViral50ChartWhether the run was classified as Viral 50; false in the saved Top 50 run.
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.
outputWriteFailureCountSummary or optional key-value writes that failed.
StatusData statusMeaning
SUCCEEDEDCOMPLETEPlaylist rows 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 rendered track rows.
FAILEDFAILEDA fatal error occurred before any usable row was saved.

Example OUTPUT_SUMMARY from the saved run:

{
"recordType": "runSummary",
"status": "SUCCEEDED",
"runStatus": "SUCCEEDED",
"dataStatus": "COMPLETE",
"chartType": "top50",
"country": "global",
"playlistId": "37i9dQZEVXbMDoHDwVN2tF",
"chartRecordCount": 5,
"recordsStored": 5,
"errorRecordCount": 0,
"failureCount": 0,
"maxItems": 5,
"market": "US",
"sourceClassification": "official Top 50 playlist",
"isViral50Chart": false,
"authenticationMode": "anonymous_public_page",
"credentialFieldsIgnored": false,
"startedAt": "2026-10-25T20:50:22.819Z",
"completedAt": "2026-10-25T20:50:31.465Z",
"durationMs": 8646,
"outputWriteFailureCount": 0
}

Coverage and limitations

The Actor reads one public playlist page per run. Top 50 supports global, US, GB, DE, and AU. Viral Hits is the public editorial playlist exposed under that name and is not the discontinued Viral 50 chart; use chartType: "viral-hits" and country: "global". isViral50Chart records the page classification and is false for the saved Top 50 run.

position is the order rendered by the public playlist, not a separately computed chart rank. maxItems caps the number of ordered rows and can truncate a playlist. playCount is saved only from a value displayed on the public row; it is not calculated from streams or estimated. explicit is omitted when no marker is shown. The Actor does not use the official Spotify Web API, credentials, login sessions, tokens, audio downloads, or access-control bypasses. market is a label and does not select the playlist. Missing tracks, region restrictions, playlist changes, and access challenges cannot be recovered.

Usage and support

A run reads one playlist page, so cost is driven mainly by browser startup, page size, navigation delay, and the number of retained rows. Start with a small maxItems value and confirm the playlist classification in the run summary before scaling. 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.