Spotify Top 50 and Viral Hits Playlist Scraper
Pricing
from $2.99 / 1,000 viral charts
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
17 days ago
Last modified
Categories
Features
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
- Open the Actor Store page and select Try for free, or open the Input tab.
- Choose
chartType:top50orviral-hits. - Choose
country. Top 50 supportsglobal,US,GB,DE, andAU; Viral Hits supportsglobalonly. - 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.
| Field | Type | Required? | Default | Meaning |
|---|---|---|---|---|
country | string enum | Optional | "global" | Top 50 country selector: global, US, GB, DE, or AU. Viral Hits supports global only. |
chartType | string enum | Optional | "top50" | top50 chart playlist or viral-hits editorial playlist. Viral Hits is not Viral 50. |
market | string | Optional | "US" | Two-letter market label recorded in every row. Playlist selection is controlled by country and chartType. |
maxItems | integer | Optional | 50 | Maximum ordered playlist rows. 1–50. |
clientId | string | Optional | Not supplied | Accepted for backward compatibility but ignored. Public anonymous-page extraction is always used. Up to 200 characters. |
clientSecret | string | Optional | Not supplied | Accepted for backward compatibility but ignored. Public anonymous-page extraction is always used. Stored as a secret. |
timeoutSecs | integer | Optional | 30 | Per-request timeout, in seconds. 5–60. |
maxResponseBytes | integer | Optional | 2000000 | Maximum bytes accepted per response. 100000–5000000. |
requestDelayMs | integer | Optional | 500 | Delay before public-page navigation, in milliseconds. 0–30000. |
maxRequestRetries | integer | Optional | 1 | Maximum retries for a failed public-page request. 0–3. |
proxyConfiguration | object | Optional | {"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.
| Field | Type | Availability | Meaning |
|---|---|---|---|
recordId | string | Always | Stable Actor record key. |
recordType | string | Always | Row discriminator, always playlistTrack. |
position | integer | Always | One-based position in the public playlist. |
chartType | string enum | Always | Requested playlist family: top50 or viral-hits. |
country | string enum | Always | Requested country selector: global, US, GB, DE, or AU. |
playlistId | string | Always | Public Spotify playlist ID used for the rows. |
trackId | string | Always | Public Spotify track ID. |
trackName | string | Always | Visible public track name. |
spotifyUrl | string | Always | Canonical public Spotify track URL. |
artistNames | string array | Always | Visible artist names in display order. |
artistIds | string array | Always | Public Spotify artist IDs aligned to artistNames. |
albumName | string | Always | Visible public album name. |
albumId | string | Always | Public Spotify album ID. |
durationMs | integer | Always | Track duration in milliseconds. |
explicit | boolean | When published | True when the public row displays the explicit marker. |
playCount | integer | Always | Public play count displayed for the chart row in the saved run. |
market | string | Always | Requested market label. |
sourceUrl | string | Always | Public playlist page used for the row. |
scrapedAt | string | Always | Time 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.
| Field | Meaning |
|---|---|
recordType | Always runSummary. |
status | Actor process outcome: SUCCEEDED or FAILED. |
runStatus | Canonical run status; matches status. |
dataStatus | COMPLETE, PARTIAL, NO_RESULTS, or FAILED. |
chartType | Playlist family requested. |
country | Country selector requested. |
playlistId | Public playlist ID used. |
chartRecordCount | Chart rows produced. |
recordsStored | Rows saved to the dataset. |
errorRecordCount | Error records; diagnostics are kept out of the dataset. |
failureCount | Operational and dataset-write failures. |
maxItems | Configured row cap. |
market | Requested market label. |
sourceClassification | Human-readable classification of the page, such as official Top 50 playlist. |
isViral50Chart | Whether the run was classified as Viral 50; false in the saved Top 50 run. |
authenticationMode | Extraction mode, anonymous_public_page in the saved run. |
credentialFieldsIgnored | Whether supplied compatibility credential fields were ignored. |
startedAt | Run start time, in ISO UTC. |
completedAt | Time the summary was written, in ISO UTC. |
durationMs | Run duration in milliseconds. |
outputWriteFailureCount | Summary or optional key-value writes that failed. |
| Status | Data status | Meaning |
|---|---|---|
SUCCEEDED | COMPLETE | Playlist rows were saved without an extraction problem. |
SUCCEEDED | PARTIAL | Rows were saved, but a later problem prevented a complete run. Saved rows remain available. |
SUCCEEDED | NO_RESULTS | The playlist completed cleanly with no rendered track rows. |
FAILED | FAILED | A 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.