YouTube Rich Video Metadata Scraper avatar

YouTube Rich Video Metadata Scraper

Pricing

from $3.99 / 1,000 results

Go to Apify Store
YouTube Rich Video Metadata Scraper

YouTube Rich Video Metadata Scraper

Extract public YouTube player, microformat, embed, regional availability, caption, and schema.org metadata from video pages and public search results.

Pricing

from $3.99 / 1,000 results

Rating

0.0

(0)

Developer

Google API

Google API

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Collect public metadata from YouTube videos. Provide video links or IDs, or use a public YouTube search query to find videos. Each dataset record represents one video.

Input

  • videoUrls: Public YouTube watch, Shorts, live, embed, or youtu.be links, or 11-character video IDs.
  • startUrls: Public video or search URLs.
  • query / queries: Public YouTube search phrases. Each query reads one initial results page.
  • maxItems: Maximum video records; defaults to 10.
  • page / maxPages: Search continuation pages are not supported.
  • includeChannelDetails: Add details from the matched channel's public profile; off by default.
  • proxyConfiguration: Optional Apify Proxy settings for public requests.
  • sourceMode: public_watch (default, unchanged public watch-page scraper) or youtube_data_api (separate, default-off adapter).

YouTube Data API mode (default off)

sourceMode: "youtube_data_api" selects a separate, read-only adapter backed by the YouTube Data API videos.list endpoint. It requests only the snippet, statistics, and contentDetails parts, accepts explicit video IDs/URLs (no search), and maps them into this Actor's existing dataset schema. Unsupported fields stay absent; tags come only from the source; statistics are exact; no video or audio is downloaded. The original public watch-page mode is preserved and is not retried or bypassed.

Credential mechanism (the only one supported): set the protected environment secret APIFY_SECRET_YOUTUBE_DATA_API_KEY (plain YOUTUBE_DATA_API_KEY fallback) in your own authorized Apify project. apify@3.7.2 has no Actor.getSecret(); no key is accepted as an input field. The key is attached only as an outbound X-Goog-Api-Key header — never in a URL, dataset row, log line, diagnostic, run-health record, or QA artifact. If the mode is selected without a configured key, the run emits zero rows, makes zero API requests, and reports API_AUTHORIZATION_PENDING. A key authorizes requests, not redistribution; review YouTube's terms before persisting or exporting results. No keyed API call was made during this Actor's offline qualification.

Dataset

Each record represents one video and includes its videoId. Available information can include title, URLs, complete description, duration, category, tags, publication dates, views, likes, ratings, channel identity and subscriber count, captions, thumbnails, live details, and public availability flags.

Optional channel profile details, public description links, chapters, music credits, and license information are included when available. Compact counts are marked approximate. Relative date text is preserved, not converted to an estimated date.

Results and limits

maxItems is shared across direct inputs and search results. Each search source reads one initial results page.

Run output provides a dataset link and run information.

Responsible use

This Actor reads public YouTube video and channel information. Follow YouTube's terms, applicable law, and your data-protection obligations. This independent Actor is not affiliated with or endorsed by YouTube or Google.