YouTube Music Playlist Scraper avatar

YouTube Music Playlist Scraper

Pricing

from $2.99 / 1,000 playlists

Go to Apify Store
YouTube Music Playlist Scraper

YouTube Music Playlist Scraper

Search YouTube Music playlists or browse playlist URLs directly. Saves rich playlist and deduplicated track metadata through first-party YouTube Music endpoints.

Pricing

from $2.99 / 1,000 playlists

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

YouTube Music Public Playlist Snapshot Scraper

Collects rich records for public YouTube and YouTube Music playlists. The actor searches ordinary public result pages and fetches one initial public playlist-page snapshot for each selected playlist. It parses the page’s embedded ytInitialData; it does not call private YouTube services, replay opaque playlist continuation commands, or retrieve signed media URLs.

Get started

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Set searchQueries or paste public playlist startUrls, then choose maxItems and maxTracks.
  3. Keep maxItems and the other limits small for the first run.
  4. Start the Actor, open the dataset, and export the saved records as JSON, CSV, or Excel. Open Run summary (OUTPUT) to check the outcome and counts.

Input

All fields are optional, but supply at least one searchQueries entry, startUrls URL, or playlistUrls URL. The defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

FieldTypeRequired?DefaultMeaning
searchQueriesstring arrayOptionalNot suppliedSearch terms used with YouTube's public playlist filter. up to 50 items.
startUrlsstring arrayOptionalNot suppliedPublic YouTube or YouTube Music playlist URLs. This is the preferred direct-URL field. up to 50 items.
playlistUrlsstring arrayOptionalNot suppliedBackward-compatible alias for startUrls. up to 50 items.
maxItemsintegerOptional20Maximum unique playlist records saved globally (1–100). 1–100.
maxTracksintegerOptional100Maximum deduplicated track records included from the initial public playlist page (1–100). 1–100.
maxPagesintegerOptional3Bounded number of ordinary public search result pages per query (1–10). Playlist-page continuation is not replayed. 1–10.
languageCodestringOptionalenLanguage context sent to public pages.
countryCodestringOptionalUSTwo-letter country context sent to public pages.
proxyConfigurationobjectOptional{"useApifyProxy":false}Optional account-authorized Apify Proxy or credential-free HTTP/SOCKS URLs.
enableProxyFallbackbooleanOptionaltrueAfter a direct public-page failure, try one ordinary configured Apify Proxy request.
requestDelayMsintegerOptional250Bounded pacing delay between public page requests.
requestTimeoutSecsintegerOptional60Timeout for each public page request. 15–180.
maxRetriesintegerOptional1Bounded retries after a public page request fails. 0–3.

Full default input:

{
"maxItems": 20,
"maxTracks": 100,
"maxPages": 3,
"languageCode": "en",
"countryCode": "US",
"proxyConfiguration": {
"useApifyProxy": false
},
"enableProxyFallback": true,
"requestDelayMs": 250,
"requestTimeoutSecs": 60,
"maxRetries": 1
}

The values above are the schema defaults; add at least one searchQueries entry, startUrls URL, or playlistUrls URL before running. The Actor reads public data from YouTube. Optional proxyConfiguration uses the standard Apify Proxy settings.

Output

The dataset contains one row per saved result. The dataset schema declares views but no field properties, so the table documents the union of keys observed in the saved rows. Optional information appears only when the source publishes it; missing values are omitted rather than inferred. No diagnostic or placeholder rows are written.

FieldTypeAvailabilityMeaning
recordTypestringAlwaysFixed discriminator: youtube_music_playlist.
playlistIdstringAlwaysYouTube playlist identifier.
playlistUrlstringAlwaysPublic YouTube playlist URL.
canonicalUrlstringAlwaysCanonical public playlist URL.
titlestringAlwaysPlaylist title visible on the public page.
descriptionstringWhen publishedPlaylist description visible on the public page.
descriptionLengthnumberWhen publishedCharacter count of the normalized description.
channelNamestringAlwaysPlaylist owner or channel display name.
channelIdstringAlwaysYouTube channel identifier for the owner.
channelUrlstringAlwaysPublic channel URL for the owner.
videoCountTextstringWhen publishedPlaylist video-count label as displayed.
videoCountnumberWhen publishedInteger parsed from videoCountText.
viewCountTextstringWhen publishedPlaylist view-count label as displayed; no numeric total is inferred.
thumbnailsobject arrayAlwaysPlaylist thumbnails with url, width, and height.
thumbnailUrlstringAlwaysLargest playlist thumbnail URL.
thumbnailCountnumberAlwaysNumber of distinct thumbnails retained.
tracksobject arrayAlwaysTracks visible on the initial public playlist page, capped by maxTracks.
trackCountnumberAlwaysNumber of tracks retained in tracks.
tracksCollectednumberAlwaysNumber of tracks collected after de-duplication and the cap.
reportedTrackCountnumberAlwaysTrack total reported by the playlist page, which may exceed tracksCollected.
reportedTrackCountTextstringAlwaysReported track total as displayed.
tracksReportednumberAlwaysReported track total retained as a numeric value.
sourcestringAlwaysInput source type: search or startUrl.
searchQuerystringWhen publishedSearch query, for search-sourced rows only.
sourceUrlstringAlwaysPublic search or playlist URL associated with the row.
sourceRanknumberAlwaysOne-based rank of the playlist within its source page.
searchPagenumberAlwaysPublic search page represented by the row.
sourceTransportstringAlwaysHTML transport: public-rendered-html or the Apify Proxy fallback variant.
extractionMethodstringAlwaysParser path: youtube-public-page-embedded-initial-data.
metadataSourcestringAlwaysPublic detail source: youtube-public-playlist-page.
metadataEnrichedbooleanAlwaysWhether the public playlist page was fetched and merged.
playlistPageStatusstringAlwaysPlaylist-page outcome, such as available.
initialTrackItemsExposednumberAlwaysTrack renderers exposed by the initial playlist page before the cap.
requestedMaxItemsnumberAlwaysGlobal playlist cap used for the run.
requestedMaxTracksnumberAlwaysPer-playlist track cap used for the run.
playlistSnapshotOnlybooleanAlwaysWhether the row is based on a single initial playlist snapshot.
playlistContinuationSupportedbooleanAlwaysWhether later playlist pages were requested; false for this Actor.
snapshotStopReasonstringAlwaysWhy collection stopped, such as max-tracks.
continuationDetectedbooleanAlwaysWhether the page exposed continuation metadata.
continuationCountnumberAlwaysContinuation markers observed; no continuation request is replayed.
languageCodestringAlwaysLanguage context used for public pages.
countryCodestringAlwaysCountry context used for public pages.
scrapedAtstringAlwaysTime the row was saved, in ISO UTC.

The example below is a real saved row from the 2026-10-25 run; long arrays or strings are shortened.

{
"recordType": "youtube_music_playlist",
"playlistId": "PLp_G0HWfCo5p8aOw9DpTSHvciPCnzdKIP",
"playlistUrl": "https://www.youtube.com/playlist?list=PLp_G0HWfCo5p8aOw9DpTSHvciPCnzdKIP",
"canonicalUrl": "https://www.youtube.com/playlist?list=PLp_G0HWfCo5p8aOw9DpTSHvciPCnzdKIP",
"title": "Adele Songs Playlist. Adele Greatest Hits.",
"description": "Adele Songs Playlist. The Best of Adele Songs.",
"descriptionLength": 46,
"channelName": "Greatest Hits",
"channelId": "UC7j6mGtqGkXLSYBCBirXBug",
"channelUrl": "https://www.youtube.com/channel/UC7j6mGtqGkXLSYBCBirXBug",
"videoCountText": "45 videos",
"videoCount": 45,
"viewCountText": "1,254,288 views",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/YQHsXMglC9A/hqdefault.jpg?sqp=-oaymwEWCKgBEF5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLARc3x9HIa7hjxX7wdDl1fIIgRfKg",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/YQHsXMglC9A/hqdefault.jpg?sqp=-oaymwEWCMQBEG5IWvKriqkDCQgBFQAAiEIYAQ==&rs=AOn4CLCCvc-hvUD13B03Ol_s912pP8HUMw",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/YQHsXMglC9A/hqdefault.jpg?sqp=-oaymwEXCPYBEIoBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLCvf_PYWe8QQccPDIk8g1xHIy65iw",
"width": 246,
"height": 138
}
],
"thumbnailUrl": "https://i.ytimg.com/vi/YQHsXMglC9A/hqdefault.jpg?sqp=-oaymwEXCNACELwBSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLBIoRclneT9jkp3y0V9f5zi-dhuVw",
"thumbnailCount": 4,
"tracks": [
{
"videoId": "YQHsXMglC9A",
"title": "Adele - Hello (Official Music Video)",
"artists": [
{
"name": "Adele"
}
],
"artist": "Adele",
"duration": "6:07",
"durationSeconds": 367,
"publishedTimeText": "11y ago",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/YQHsXMglC9A/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLA1F79kJnfwlmV1d0AnKHD4OdvQcw",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/YQHsXMglC9A/hqdefault.jpg?sqp=-oaymwEbCMQBEG5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLCeEZTsp3ZmtAUafxcH8MY6izBlCg",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/YQHsXMglC9A/hqdefault.jpg?sqp=-oaymwEcCPYBEIoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBqwcqimZ5FqaGinFtYljoHVTLhew",
"width": 246,
"height": 138
}
],
"thumbnailUrl": "https://i.ytimg.com/vi/YQHsXMglC9A/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBHIaAiwwKIoemqKx3F7AhSTKRjPg",
"thumbnailCount": 4
},
{
"videoId": "U3ASj1L6_sY",
"title": "Adele - Easy On Me (Official Video)",
"artists": [
{
"name": "Adele"
}
],
"artist": "Adele",
"duration": "5:32",
"durationSeconds": 332,
"publishedTimeText": "5y ago",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/U3ASj1L6_sY/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLBXB7P2YLQWDxoy15tJLvPOWkzCIA",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/U3ASj1L6_sY/hqdefault.jpg?sqp=-oaymwEbCMQBEG5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLAojAYZqvxxRYN9ikUDkzPpHsyrKQ",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/U3ASj1L6_sY/hqdefault.jpg?sqp=-oaymwEcCPYBEIoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCnBbwmwEQOj76_of8ETMaAN05nBA",
"width": 246,
"height": 138
}
],
"thumbnailUrl": "https://i.ytimg.com/vi/U3ASj1L6_sY/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLAKkariTuOnYiHheeL31o5WVqQL0A",
"thumbnailCount": 4
},
{
"videoId": "hLQl3WQQoQ0",
"title": "Adele - Someone Like You (Official Music Video)",
"artists": [
{
"name": "Adele"
}
],
"artist": "Adele",
"duration": "4:45",
"durationSeconds": 285,
"publishedTimeText": "15y ago",
"thumbnails": [
{
"url": "https://i.ytimg.com/vi/hLQl3WQQoQ0/hqdefault.jpg?sqp=-oaymwEbCKgBEF5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLAcip5yLBIgLjYL6w2dK-Y93L3xgg",
"width": 168,
"height": 94
},
{
"url": "https://i.ytimg.com/vi/hLQl3WQQoQ0/hqdefault.jpg?sqp=-oaymwEbCMQBEG5IVfKriqkDDggBFQAAiEIYAXABwAEG&rs=AOn4CLAICpAvBO303GDIAggWPdsdAqgXWw",
"width": 196,
"height": 110
},
{
"url": "https://i.ytimg.com/vi/hLQl3WQQoQ0/hqdefault.jpg?sqp=-oaymwEcCPYBEIoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLA0pk1ZofbGULQCfE5VM2CUxp7ejw",
"width": 246,
"height": 138
}
],
"thumbnailUrl": "https://i.ytimg.com/vi/hLQl3WQQoQ0/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLBQDfyMDNJ6-U7yAdW3PaO7ghHSZA",
"thumbnailCount": 4
}
],
"trackCount": 5,
"tracksCollected": 5,
"reportedTrackCount": 45,
"reportedTrackCountText": "45 videos",
"tracksReported": 45,
"source": "search",
"searchQuery": "Adele playlists",
"sourceUrl": "https://www.youtube.com/results?search_query=Adele+playlists&sp=EgIQAw%3D%3D&hl=en&gl=US",
"sourceRank": 1,
"searchPage": 1,
"sourceTransport": "public-rendered-html",
"extractionMethod": "youtube-public-page-embedded-initial-data",
"metadataSource": "youtube-public-playlist-page",
"metadataEnriched": true,
"playlistPageStatus": "available",
"initialTrackItemsExposed": 44,
"requestedMaxItems": 1,
"requestedMaxTracks": 5,
"playlistSnapshotOnly": true,
"playlistContinuationSupported": false,
"snapshotStopReason": "max-tracks",
"continuationDetected": true,
"continuationCount": 2,
"languageCode": "en",
"countryCode": "US",
"scrapedAt": "2026-10-25T20:46:12.738Z"
}
  • tracks entries contain videoId, title, artists, artist, duration, durationSeconds, publishedTimeText, thumbnails, thumbnailUrl, thumbnailCount, channelName, isLive, isUpcoming, videoUrl, youtubeMusicUrl, youtubeUrl, resultSource, sourceContext, and playlistPosition, when exposed.
  • thumbnails entries contain url (string), width (integer), and height (integer).

Run summary

Run summary is stored separately from the dataset in the run's key-value store under OUTPUT.

FieldMeaning
runTypeFixed run discriminator: youtube-public-music-playlist-run.
statusActor process outcome: SUCCEEDED or FAILED.
dataStatusCompleteness of saved rows: COMPLETE, PARTIAL, NO_RESULTS, or FAILED.
dataAvailableWhether at least one playlist row was saved.
sourceCountSearch queries plus direct playlist URLs supplied.
sourcesWithItemsSources that produced at least one playlist row.
searchPagesFetchedPublic search pages successfully fetched.
playlistPagesFetchedPublic playlist pages successfully fetched.
pageAttemptsTotal public page attempts, including retries and proxy fallback.
playlistCountPlaylists saved.
trackCountTrack rows retained across saved playlists.
tracksCollectedTracks collected across saved playlists.
tracksReportedTrack totals reported by the playlist pages, which may exceed what was collected.
reportedPlaylistCountPlaylist total reported by the source.
initialTrackItemsExposedTrack renderers exposed by initial playlist pages before caps.
diagnosticCountBounded operational issues recorded in the summary.
failedCountSource requests or extractions that failed.
blockedCountResponses classified as public-access blocks.
continuationDetectedWhether a fetched page exposed continuation metadata.
continuationCountContinuation markers observed; no continuation request is replayed.
playlistSnapshotOnlyWhether rows come from a single initial playlist snapshot.
playlistContinuationSupportedWhether later playlist pages were requested; false for this Actor.
proxyRequestedWhether a proxy route was requested or supplied.
proxyConfiguredWhether a proxy URL was successfully configured.
includeDiagnosticsWhether diagnostic logging was enabled.
maxItemsGlobal playlist cap used for the run, 1–100.
maxTracksPer-playlist track cap used for the run, 1–100.
maxPagesSearch-page bound per query, 1–10.
maxRetriesRetry count used after a failed request, 0–3.
requestDelayMsPacing delay used between requests, 0–5000 ms.
requestTimeoutSecsPer-request timeout, 15–180 seconds.
languageCodeLanguage context used for public pages.
countryCodeCountry context used for public pages.
paginationMethodPage-request method recorded for the run.
extractionMethodParser path used for embedded page data.
durationMsElapsed run duration in milliseconds.
finishedAtTime the summary was written, in ISO UTC.
runStatusCanonical run status; matches status.
StatusData statusMeaning
SUCCEEDEDCOMPLETEEligible results were saved without an extraction problem.
SUCCEEDEDPARTIALSome results were saved, but a later problem prevented a complete run. Saved rows remain available.
SUCCEEDEDNO_RESULTSThe source completed cleanly and returned no matching results.
FAILEDFAILEDA fatal error occurred before any usable result was saved.

Example OUTPUT from the saved run:

{
"runType": "youtube-public-music-playlist-run",
"status": "SUCCEEDED",
"dataStatus": "COMPLETE",
"dataAvailable": true,
"sourceCount": 1,
"sourcesWithItems": 1,
"searchPagesFetched": 1,
"playlistPagesFetched": 1,
"pageAttempts": 2,
"playlistCount": 1,
"trackCount": 5,
"tracksCollected": 5,
"tracksReported": 45,
"reportedPlaylistCount": 1,
"initialTrackItemsExposed": 44,
"diagnosticCount": 0,
"failedCount": 0,
"blockedCount": 0,
"continuationDetected": true,
"continuationCount": 14,
"playlistSnapshotOnly": true,
"playlistContinuationSupported": false,
"proxyRequested": false,
"proxyConfigured": false,
"includeDiagnostics": true,
"maxItems": 1,
"maxTracks": 5,
"maxPages": 1,
"maxRetries": 1,
"requestDelayMs": 0,
"requestTimeoutSecs": 60,
"languageCode": "en",
"countryCode": "US",
"paginationMethod": "bounded-search-pages-initial-playlist-snapshot",
"extractionMethod": "youtube-public-page-embedded-initial-data",
"durationMs": 1262,
"finishedAt": "2026-10-25T20:46:12.888Z",
"runStatus": "SUCCEEDED"
}

Coverage and limitations

The Actor accepts playlist searches (searchQueries) and direct playlist URLs (startUrls, or the playlistUrls alias). Direct URLs are the preferred deterministic path; search results use YouTube's public playlist filter and can be bounded by maxPages. maxItems caps unique playlists across all sources, and maxTracks caps the tracks retained from each initial playlist page.

The playlist page is read as a single public snapshot: playlistSnapshotOnly is true, playlistContinuationSupported is false, and continuationDetected/continuationCount report what the page offered without replaying a token. reportedTrackCount can be much larger than tracksCollected; snapshotStopReason explains why collection stopped. Nested tracks keep the fields the public renderer exposes, including videoId, title, artist, artists, duration, durationSeconds, publishedTimeText, and thumbnails. Signed media URLs are not requested or retained. Optional fields are omitted when the source does not publish them, and values are not inferred. Blocked, empty, or partial responses are reported in the run summary rather than written as data rows.

Usage and support

Cost is driven by the number of search pages, selected playlist pages, retries, pacing, proxy use, and the size of each nested initial track array. Start with small item and page limits, 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 run summary; do not include tokens, cookies, or private data. The Actor is not affiliated with YouTube. Use it only for public data and in accordance with the source's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.