YouTube Music Video Scraper avatar

YouTube Music Video Scraper

Pricing

from $2.99 / 1,000 music videos

Go to Apify Store
YouTube Music Video Scraper

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

w3crawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 minutes ago

Last modified

Categories

Features

Limited permissions

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

  1. Open the Actor Store page and select Try for free or open the Input tab.
  2. Supply at least one searchQueries entry or one startUrls entry. Start URLs are processed first when both are present.
  3. Keep maxItems and maxPages small for the first run. Leave includePlayerDetails enabled only if you need optional watch-page metadata.
  4. 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.

FieldTypeRequired?DefaultMeaning
searchQueriesstring arrayConditionalNot supplied (prefill ["Adele official music video"])Public YouTube search phrases, up to 100 entries of 1–200 characters.
startUrlsstring arrayConditionalNot suppliedPublic YouTube or YouTube Music playlist, browse, or channel URLs, up to 100 entries. Each uses one public page.
maxItemsintegerOptional20Maximum unique video rows across all sources, 1–100.
maxPagesintegerOptional3Maximum public search pages per query, 1–10. Start URLs use one page and their continuation markers are not followed.
maxRetriesintegerOptional1Retries for the same public request, 0–3.
requestTimeoutSecsintegerOptional60Timeout per public page attempt, 15–180 seconds.
requestDelayMsintegerOptional250Delay between successive search-page requests, 0–5000 ms.
countryCodestringOptionalUSTwo-letter locale context, such as US, GB, or IN.
languageCodestringOptionalenLanguage context, such as en, es, or pt-BR.
includePlayerDetailsbooleanOptionaltrueEnrich each result from the public watch page; signed media and caption URLs are never stored.
enableProxyFallbackbooleanOptionaltrueTry one ordinary configured Apify Proxy request after a direct failure.
proxyConfigurationobjectOptional{"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.

FieldTypeAvailabilityMeaning
recordTypestringAlwaysRecord discriminator; always youtube_music_video.
videoIdstringAlways11-character YouTube video ID.
titlestringAlwaysPublicly displayed video title.
descriptionstringWhen publishedDescription or description snippet exposed by the source page.
descriptionLengthintegerWhen publishedCharacter count of the stored description.
accessibilityTextstringAlwaysAccessibility label exposed by the result renderer.
artistsobject arrayAlwaysArtist or channel objects with name, and id and url when exposed.
artiststringAlwaysFlattened artist or channel label.
albumstringWhen publishedAlbum text exposed by a music renderer.
durationstringAlwaysDisplayed duration, such as 3:54.
durationSecondsintegerAlwaysDuration parsed from the displayed label.
viewsintegerAlwaysDisplay count parsed from public text.
viewsTextstringAlwaysOriginal displayed view or play label.
releaseYearintegerWhen publishedRelease year exposed by a music result.
publishedTimeTextstringAlwaysRelative or displayed publication label.
explicitbooleanAlwaysWhether an explicit badge was displayed.
badgesstring arrayAlwaysPublic renderer badges.
thumbnailsobject arrayAlwaysThumbnail objects with url, width, and height when exposed.
thumbnailUrlstringAlwaysPreferred public thumbnail URL.
thumbnailCountintegerAlwaysNumber of retained thumbnails.
channelNamestringAlwaysPublic channel or artist name.
channelIdstringAlwaysPublic channel identifier.
channelUrlstringAlwaysPublic channel URL.
youtubeMusicUrlstringAlwaysCanonical YouTube Music watch URL derived from videoId.
youtubeUrlstringAlwaysCanonical YouTube watch URL derived from videoId.
sourcestringAlwaysSource family: search or browse.
searchQuerystringWhen search-sourcedSearch phrase for a search-sourced record.
sourceUrlstringAlwaysPublic search or browse page used for extraction.
rankintegerAlwaysRun-level rank after deduplication.
sourceRankintegerAlwaysRank among unique records retained from this source.
searchRankintegerWhen search-sourcedSearch-result rank.
pageintegerAlwaysPublic page number used for the record.
resultSourcestringAlwaysEmbedded renderer family used to parse the card.
sourceTransportstringAlwayspublic-rendered-html-direct or public-rendered-html-via-apify-proxy.
extractionMethodstringAlwaysEmbedded public-page extraction method.
metadataSourcestringAlwaysSearch or browse page family that supplied metadata.
metadataEnrichedbooleanAlwaysWhether the row was assembled from source-page metadata.
isShortbooleanAlwaysWhether the result URL or badge identified a Short.
isLivebooleanAlwaysWhether a live badge or public player field was exposed.
isUpcomingbooleanAlwaysWhether the result was marked upcoming.
continuationDetectedbooleanAlwaysWhether the page exposed a continuation marker.
continuationCountintegerAlwaysContinuation markers observed; continuation calls are not made.
initialItemsExposedintegerAlwaysCandidate items in the parsed initial page data.
requestedMaxItemsintegerAlwaysRun-wide maxItems value.
languageCodestringAlwaysNormalized language context.
countryCodestringAlwaysNormalized two-letter country context.
playerDetailsRequestedbooleanAlwaysWhether watch-page enrichment was requested.
playerDetailsAvailablebooleanAlwaysWhether watch-page metadata was attached.
playerDetailsStatusstringAlwaysnot-requested, available, or unavailable.
playerTransportstringWhen publishedyoutube-public-watch-page when metadata was requested.
playerobjectWhen publishedPublic watch-page metadata summary.
scrapedAtstringAlwaysTime 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.

FieldMeaning
runTypeSummary record discriminator.
statusActor outcome: SUCCEEDED or FAILED.
dataStatusSaved-data status: COMPLETE, PARTIAL, NO_RESULTS, or FAILED.
dataAvailableWhether at least one normal row was saved.
sourceCountNumber of normalized search and browse sources.
sourcesWithItemsSources whose first page produced at least one candidate.
maxItemsRun-wide unique-record cap.
maxPagesSearch pages per query; start URLs use one page.
pagesFetchedPublic result pages fetched successfully.
pageAttemptsPage and watch-page attempts, including retries.
itemCountMusic-video rows written to the dataset.
diagnosticCountBounded diagnostics recorded during the run.
failedCountFailed request or extraction events.
blockedCountEvents classified as blocked or access-limited.
playerDetailsRequestedRecords for which watch-page enrichment was attempted.
playerDetailsAvailableCountRecords with player metadata attached.
playerDetailsUnavailableCountRequested enrichments that were unavailable.
continuationDetectedWhether any page exposed a continuation marker.
continuationCountContinuation markers observed; continuation calls are not made.
proxyRequestedWhether proxy use or fallback was requested.
proxyConfiguredWhether an Apify Proxy URL was resolved.
includeDiagnosticsWhether diagnostics were enabled.
languageCodeNormalized language context.
countryCodeNormalized country context.
maxRetriesRetries per public request.
requestDelayMsDelay between search-page requests.
requestTimeoutSecsPublic request timeout.
paginationMethodPublic-page pagination method.
extractionMethodEmbedded-data extraction method.
durationMsActor runtime in milliseconds.
finishedAtTime the summary was written, in ISO UTC.
runStatusCanonical run status; matches status.
StatusData statusMeaning
SUCCEEDEDCOMPLETEEligible results were saved without a later extraction problem.
SUCCEEDEDPARTIALSome results were saved, but a later problem prevented a complete run. Saved rows remain available.
SUCCEEDEDNO_RESULTSThe run completed cleanly and returned no matching results.
FAILEDFAILEDA 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.