YouTube Music Video Scraper
Pricing
from $2.99 / 1,000 music videos
YouTube Music Video Scraper
Search and browse YouTube Music videos with first-party YouTube Music endpoints, pagination, deduplication, and optional player metadata.
Pricing
from $2.99 / 1,000 music videos
Rating
0.0
(0)
Developer
w3crawler
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 minutes ago
Last modified
Categories
Features
Share
Collect deduplicated public music-video results from YouTube search pages and public YouTube or YouTube Music playlist, browse, and channel pages. Each row records the video identity, artist and channel context, album text when exposed, duration, displayed counts, thumbnails, canonical links, source rank, and extraction provenance. Optional public watch-page metadata adds descriptions, dates, caption-language summaries, and format counts without storing signed media or caption URLs.
Get started
- Open the Actor Store page and select Try for free or open the Input tab.
- Supply at least one
searchQueriesentry or onestartUrlsentry. Start URLs are processed first when both are present. - Keep
maxItemsandmaxPagessmall for the first run. LeaveincludePlayerDetailsenabled only if you need optional watch-page metadata. - Start the Actor, open the dataset, and export the records as JSON, CSV, or Excel. Open Run summary (
OUTPUT) to check the outcome and counts.
Input
At least one of searchQueries or startUrls is required. Other 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 |
|---|---|---|---|---|
searchQueries | string array | Conditional | Not supplied (prefill ["Adele official music video"]) | Public YouTube search phrases, up to 100 entries of 1–200 characters. |
startUrls | string array | Conditional | Not supplied | Public YouTube or YouTube Music playlist, browse, or channel URLs, up to 100 entries. Each uses one public page. |
maxItems | integer | Optional | 20 | Maximum unique video rows across all sources, 1–100. |
maxPages | integer | Optional | 3 | Maximum public search pages per query, 1–10. Start URLs use one page and their continuation markers are not followed. |
maxRetries | integer | Optional | 1 | Retries for the same public request, 0–3. |
requestTimeoutSecs | integer | Optional | 60 | Timeout per public page attempt, 15–180 seconds. |
requestDelayMs | integer | Optional | 250 | Delay between successive search-page requests, 0–5000 ms. |
countryCode | string | Optional | US | Two-letter locale context, such as US, GB, or IN. |
languageCode | string | Optional | en | Language context, such as en, es, or pt-BR. |
includePlayerDetails | boolean | Optional | true | Enrich each result from the public watch page; signed media and caption URLs are never stored. |
enableProxyFallback | boolean | Optional | true | Try one ordinary configured Apify Proxy request after a direct failure. |
proxyConfiguration | object | Optional | {"useApifyProxy":false} | Optional account-authorized Apify Proxy or credential-free HTTP/SOCKS configuration. |
Example input using the search prefill and every default:
{"searchQueries": ["Adele official music video"],"maxItems": 20,"maxPages": 3,"maxRetries": 1,"requestTimeoutSecs": 60,"requestDelayMs": 250,"countryCode": "US","languageCode": "en","includePlayerDetails": true,"enableProxyFallback": true,"proxyConfiguration": {"useApifyProxy": false}}
The Actor reads ordinary rendered public pages and their embedded data. It does not sign in, call private APIs, follow signed media or caption URLs, or download media. Results are deduplicated by video ID across all start URLs and queries.
Output
The dataset contains one row per unique public music video. Optional values are omitted when the source does not publish them; they are never inferred. No diagnostic or placeholder rows are written. The 2026-10-25 run saved three search results, and all three requested watch-page enrichments were unavailable, so player and playerTransport are absent.
| Field | Type | Availability | Meaning |
|---|---|---|---|
recordType | string | Always | Record discriminator; always youtube_music_video. |
videoId | string | Always | 11-character YouTube video ID. |
title | string | Always | Publicly displayed video title. |
description | string | When published | Description or description snippet exposed by the source page. |
descriptionLength | integer | When published | Character count of the stored description. |
accessibilityText | string | Always | Accessibility label exposed by the result renderer. |
artists | object array | Always | Artist or channel objects with name, and id and url when exposed. |
artist | string | Always | Flattened artist or channel label. |
album | string | When published | Album text exposed by a music renderer. |
duration | string | Always | Displayed duration, such as 3:54. |
durationSeconds | integer | Always | Duration parsed from the displayed label. |
views | integer | Always | Display count parsed from public text. |
viewsText | string | Always | Original displayed view or play label. |
releaseYear | integer | When published | Release year exposed by a music result. |
publishedTimeText | string | Always | Relative or displayed publication label. |
explicit | boolean | Always | Whether an explicit badge was displayed. |
badges | string array | Always | Public renderer badges. |
thumbnails | object array | Always | Thumbnail objects with url, width, and height when exposed. |
thumbnailUrl | string | Always | Preferred public thumbnail URL. |
thumbnailCount | integer | Always | Number of retained thumbnails. |
channelName | string | Always | Public channel or artist name. |
channelId | string | Always | Public channel identifier. |
channelUrl | string | Always | Public channel URL. |
youtubeMusicUrl | string | Always | Canonical YouTube Music watch URL derived from videoId. |
youtubeUrl | string | Always | Canonical YouTube watch URL derived from videoId. |
source | string | Always | Source family: search or browse. |
searchQuery | string | When search-sourced | Search phrase for a search-sourced record. |
sourceUrl | string | Always | Public search or browse page used for extraction. |
rank | integer | Always | Run-level rank after deduplication. |
sourceRank | integer | Always | Rank among unique records retained from this source. |
searchRank | integer | When search-sourced | Search-result rank. |
page | integer | Always | Public page number used for the record. |
resultSource | string | Always | Embedded renderer family used to parse the card. |
sourceTransport | string | Always | public-rendered-html-direct or public-rendered-html-via-apify-proxy. |
extractionMethod | string | Always | Embedded public-page extraction method. |
metadataSource | string | Always | Search or browse page family that supplied metadata. |
metadataEnriched | boolean | Always | Whether the row was assembled from source-page metadata. |
isShort | boolean | Always | Whether the result URL or badge identified a Short. |
isLive | boolean | Always | Whether a live badge or public player field was exposed. |
isUpcoming | boolean | Always | Whether the result was marked upcoming. |
continuationDetected | boolean | Always | Whether the page exposed a continuation marker. |
continuationCount | integer | Always | Continuation markers observed; continuation calls are not made. |
initialItemsExposed | integer | Always | Candidate items in the parsed initial page data. |
requestedMaxItems | integer | Always | Run-wide maxItems value. |
languageCode | string | Always | Normalized language context. |
countryCode | string | Always | Normalized two-letter country context. |
playerDetailsRequested | boolean | Always | Whether watch-page enrichment was requested. |
playerDetailsAvailable | boolean | Always | Whether watch-page metadata was attached. |
playerDetailsStatus | string | Always | not-requested, available, or unavailable. |
playerTransport | string | When published | youtube-public-watch-page when metadata was requested. |
player | object | When published | Public watch-page metadata summary. |
scrapedAt | string | Always | Time the record was saved, in ISO UTC. |
player can contain title, description, descriptionLength, durationSeconds, viewCount, channelName, channelId, channelUrl, isLive, keywords, publishDate, uploadDate, category, tags, captions, captionCount, playabilityStatus, playabilityReason, hasVideo, hasAudio, formatCount, videoFormatCount, audioFormatCount, metadataSource, and extractionMethod. Caption entries contain languageCode, name, kind, isAutoGenerated, and isTranslatable; signed caption URLs are omitted.
Real saved row
This is the complete first row from the 2026-10-25 run. The other two rows have the same shape with rank values 2 and 3.
{"recordType": "youtube_music_video","videoId": "rYEDA3JcQqw","title": "Adele - Rolling in the Deep (Official Music Video)","accessibilityText": "Adele - Rolling in the Deep (Official Music Video) 3 minutes, 54 seconds","artists": [{"name": "Adele","id": "UCsRM0YB_dabtEPGPTKo-gcw","url": "https://www.youtube.com/channel/UCsRM0YB_dabtEPGPTKo-gcw"}],"artist": "Adele","duration": "3:54","durationSeconds": 234,"views": 2942008382,"viewsText": "2,942,008,382 views","publishedTimeText": "15y ago","explicit": false,"badges": ["CC","Official Artist Channel"],"thumbnails": [{"url": "https://i.ytimg.com/vi/rYEDA3JcQqw/hq720.jpg?sqp=-oaymwEcCOgCEMoBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLCXUeeaG2F4OZqgx4Bx5HfD7UEjaQ","width": 360,"height": 202},{"url": "https://i.ytimg.com/vi/rYEDA3JcQqw/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLB2HxwOXzcANdiNG9O9-OLcMz-19Q","width": 720,"height": 404}],"thumbnailUrl": "https://i.ytimg.com/vi/rYEDA3JcQqw/hq720.jpg?sqp=-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLB2HxwOXzcANdiNG9O9-OLcMz-19Q","thumbnailCount": 2,"channelName": "Adele","channelId": "UCsRM0YB_dabtEPGPTKo-gcw","channelUrl": "https://www.youtube.com/channel/UCsRM0YB_dabtEPGPTKo-gcw","youtubeMusicUrl": "https://music.youtube.com/watch?v=rYEDA3JcQqw","youtubeUrl": "https://www.youtube.com/watch?v=rYEDA3JcQqw","source": "search","searchQuery": "Adele official music video","sourceUrl": "https://www.youtube.com/results?search_query=Adele+official+music+video&hl=en&gl=US&sp=EgIQAQ%3D%3D","rank": 1,"sourceRank": 1,"searchRank": 1,"page": 1,"resultSource": "ytInitialData.videoRenderer","sourceTransport": "public-rendered-html-direct","extractionMethod": "youtube-public-page-embedded-initial-data","metadataSource": "youtube-public-search-page","metadataEnriched": true,"isShort": false,"isLive": false,"isUpcoming": false,"continuationDetected": true,"continuationCount": 1,"initialItemsExposed": 20,"requestedMaxItems": 3,"languageCode": "en","countryCode": "US","playerDetailsRequested": true,"playerDetailsAvailable": false,"playerDetailsStatus": "unavailable","scrapedAt": "2026-10-25T20:50:34.151Z"}
Run summary
Run summary is stored separately from the dataset in the run key-value store under OUTPUT.
| Field | Meaning |
|---|---|
runType | Summary record discriminator. |
status | Actor outcome: SUCCEEDED or FAILED. |
dataStatus | Saved-data status: COMPLETE, PARTIAL, NO_RESULTS, or FAILED. |
dataAvailable | Whether at least one normal row was saved. |
sourceCount | Number of normalized search and browse sources. |
sourcesWithItems | Sources whose first page produced at least one candidate. |
maxItems | Run-wide unique-record cap. |
maxPages | Search pages per query; start URLs use one page. |
pagesFetched | Public result pages fetched successfully. |
pageAttempts | Page and watch-page attempts, including retries. |
itemCount | Music-video rows written to the dataset. |
diagnosticCount | Bounded diagnostics recorded during the run. |
failedCount | Failed request or extraction events. |
blockedCount | Events classified as blocked or access-limited. |
playerDetailsRequested | Records for which watch-page enrichment was attempted. |
playerDetailsAvailableCount | Records with player metadata attached. |
playerDetailsUnavailableCount | Requested enrichments that were unavailable. |
continuationDetected | Whether any page exposed a continuation marker. |
continuationCount | Continuation markers observed; continuation calls are not made. |
proxyRequested | Whether proxy use or fallback was requested. |
proxyConfigured | Whether an Apify Proxy URL was resolved. |
includeDiagnostics | Whether diagnostics were enabled. |
languageCode | Normalized language context. |
countryCode | Normalized country context. |
maxRetries | Retries per public request. |
requestDelayMs | Delay between search-page requests. |
requestTimeoutSecs | Public request timeout. |
paginationMethod | Public-page pagination method. |
extractionMethod | Embedded-data extraction method. |
durationMs | Actor runtime in milliseconds. |
finishedAt | Time the summary was written, in ISO UTC. |
runStatus | Canonical run status; matches status. |
| Status | Data status | Meaning |
|---|---|---|
SUCCEEDED | COMPLETE | Eligible results were saved without a later extraction problem. |
SUCCEEDED | PARTIAL | Some results were saved, but a later problem prevented a complete run. Saved rows remain available. |
SUCCEEDED | NO_RESULTS | The run completed cleanly and returned no matching results. |
FAILED | FAILED | A fatal error occurred before any usable result was saved. |
Example OUTPUT from the 2026-10-25 run:
{"runType": "youtube-public-music-video-run","status": "SUCCEEDED","dataStatus": "COMPLETE","dataAvailable": true,"sourceCount": 1,"sourcesWithItems": 1,"maxItems": 3,"maxPages": 1,"pagesFetched": 1,"pageAttempts": 7,"itemCount": 3,"diagnosticCount": 3,"failedCount": 0,"blockedCount": 0,"playerDetailsRequested": 3,"playerDetailsAvailableCount": 0,"playerDetailsUnavailableCount": 3,"continuationDetected": true,"continuationCount": 1,"proxyRequested": false,"proxyConfigured": false,"includeDiagnostics": true,"languageCode": "en","countryCode": "US","maxRetries": 1,"requestDelayMs": 0,"requestTimeoutSecs": 60,"paginationMethod": "public-page-query","extractionMethod": "youtube-public-page-embedded-initial-data","durationMs": 8096,"finishedAt": "2026-10-25T20:50:42.133Z","runStatus": "SUCCEEDED"}
Coverage and limitations
This Actor collects music-video cards from ordinary YouTube search results and public playlist, browse, or channel pages. It does not search the YouTube Music catalog directly, and its rank values reflect the collected page order rather than chart popularity or stable historical counts.
Start URLs are processed before search queries and each contributes one public page. Search queries can use up to maxPages pages. Continuation markers on start pages are reported but not followed. maxItems caps unique videos across every source, and duplicates are removed. requestDelayMs applies between search pages, not to start-page or watch-page requests.
Optional watch-page enrichment is attempted only when includePlayerDetails is enabled. In the saved run all three attempts failed, which explains diagnosticCount: 3 and playerDetailsAvailableCount: 0; the search rows remain valid. The Actor never stores signed caption or media URLs and does not download media. It does not log in, solve CAPTCHAs, or bypass access controls. Blocked, empty, or partial responses are reported in OUTPUT and logs rather than written as dataset rows.
Usage and support
Cost depends on Apify compute, search and start pages, and optional watch-page requests. Enabling includePlayerDetails adds one request per result, so test with a small maxItems first. Optional proxying can add traffic costs. 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 not affiliated with, endorsed by, or sponsored by YouTube, Google, or YouTube Music. 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.