YouTube Video Scraper avatar

YouTube Video Scraper

Pricing

from $0.10 / 1,000 results

Go to Apify Store
YouTube Video Scraper

YouTube Video Scraper

Scrape YouTube video titles, descriptions, channels, thumbnails, durations and available view counts from video URLs, channels or search queries. Export results to JSON, CSV or Excel.

Pricing

from $0.10 / 1,000 results

Rating

0.0

(0)

Developer

Inus Grobler

Inus Grobler

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

20 days ago

Last modified

Features

Limited permissions

Share

Collect public YouTube video titles, creator-written descriptions and available metrics from video URLs, channel handles or URLs, and search queries. Full descriptions are fetched automatically for discovered videos; blocked or missing descriptions are clearly marked. Export your results as JSON, CSV, or Excel. The Actor discovers videos from public YouTube pages and tries native metadata and watch pages for descriptions. If native recovery fails, it automatically tries the free Invidious API at yt.chocolatemoo53.com. No API key, account, cookies, paid data provider, model API, or other Actor is required.

Input

The form has two controls: Videos, channels or search queries, and Maximum videos. Run the prefilled example to collect one video from @OpenAI, or replace it with your own video URLs, channel handles/URLs, or search phrases. Mix up to 20 sources in the shared list; they are processed in the order you enter them.

{
"targets": ["@OpenAI"],
"maxItems": 1
}

For individual videos:

{
"targets": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
"maxItems": 1
}

For a search:

{
"targets": ["OpenAI"],
"maxItems": 5
}
Main inputMeaningDefault
targetsVideo or channel URLs, channel handles/IDs, or search phrases. Up to 20 entries.Prefilled @OpenAI
maxItemsMaximum delivered videos, up to 500.1

Channel and search modes collect the initial public page. They do not paginate through a complete channel archive or all search results. One source may expose fewer videos than Maximum videos. Use multiple sources for larger batches. Duplicate video IDs across sources are returned once by default.

HTTP allowances are sized automatically for discovery and video descriptions, within a 1,560-request and 150-second collection limit. Description requests use three workers; rows are saved in discovery order. A result limit is an upper bound, not a guaranteed count. Source restrictions, redirects, time and spending limits may produce a partial collection.

Existing JSON/API settings

Technical settings and phrase analysis are hidden from the form. Existing live-collection API field names remain accepted. The following settings are available through JSON/API:

FieldMeaningRuntime default without targets
startUrlsPublic video or channel URLs. Supports youtu.be, Shorts, and live video links.Empty
channelsHandles such as @OpenAI, channel IDs, or channel URLs.Prefilled @OpenAI in Console
searchQueriesSearch phrases; keywords remains a compatible alias.Empty
maxItemsMaximum delivered live YouTube videos.1
maxVideosPerChannel / maxVideosPerKeywordOverride the maximum delivered videos from each initial channel/search page. Shared targets use maxItems when omitted.10 each
maxTotalVideosAdditional total cap; zero uses maxItems.0
maxPublicPagesOverride total HTTP requests across discovery, descriptions, redirects and retries.4 × (maxItems + unique sources) + 2; multiplier 5 when paid proxy fallback is explicitly enabled; capped at 1,560
requestTimeoutSecsUpper bound per request; native metadata attempts also have an 8-second maximum; mirror attempts have a 5-second maximum.12
deduplicateVideosReturn one result per video ID across sources.true
useApifyProxyFallbackExplicitly enable potentially paid proxy retries.false
proxyConfigurationProxy settings used only when proxy fallback is explicitly true.Residential proxy for enabled retries
analysisQueryLiteral phrase to find in delivered records.Empty

This Actor collects live public YouTube pages and native metadata, with a free Invidious description backup. Older requests containing providedRecords or providedDatasetId fail with UPLOADED_DATA_NOT_SUPPORTED. Remove those fields and use YouTube URLs, channel handles, or search phrases in targets.

Requests without targets retain their existing source combination and per-source defaults. The automatic HTTP allowance also applies to these requests. With no source fields supplied to the API, the Actor uses the same one-video @OpenAI example. When targets is present it takes precedence over the older source fields, including hidden Console prefills. Empty targets are rejected instead of silently returning the example channel. Explicit JSON/API allowance overrides remain honored.

Explicit request and per-source allowance overrides remain honored. Without an override, shared inputs use maxItems per source; older source fields retain a per-source limit of 10. Do not expect more rows than the initial public pages actually expose.

Output

Each default-dataset row includes a video ID, canonical URL, title, source, and collection time. Channel details, thumbnails, durations, publication text, descriptions, and view counts are included when exposed by the public page or metadata response.

An output excerpt showing a public channel video when no full description could be confirmed:

{
"record_type": "video",
"video_id": "6ep8Vvm4Bdw",
"url": "https://www.youtube.com/watch?v=6ep8Vvm4Bdw",
"title": "Why Merge CEO Shensi Ding stays hands-on with Codex",
"query": "@OpenAI",
"query_type": "channel",
"dataInputSource": "web",
"sourceVerified": true,
"metadataCoverage": "initial_page",
"descriptionStatus": "unavailable"
}

Actual rows also include collection and processing timestamps and a processing hash. Metadata varies by source and layout. Exact observed counts preserve real zeros. Abbreviated values such as 147K views remain in view_count_text; unavailable metrics, including likes, stay unknown. No guessed counts or placeholder videos are produced.

Every discovered video receives a description attempt. Complete descriptions from direct video URLs are reused. Otherwise, recovery tries native player metadata, native watch-description metadata, and watch-page HTML, followed by the automatic free Invidious backup. A paid native proxy retry is attempted last only when explicitly enabled. Only description fields and their source attribution are merged into channel/search rows, preserving the original title, metrics and query attribution. Paragraphs, Unicode and complete URL destinations are preserved; unresolved shortened links trigger recovery rather than a complete-description claim.

descriptionSourceType is youtube or invidious, and descriptionSourceUrl identifies the response used for that description. Video discovery remains first-party YouTube. Mirror responses must identify the exact video and match its channel when known. The mirror’s HTML description is decoded when its plain description is empty; empty mirror fields do not prove the creator supplied an empty description.

descriptionStatusMeaning
fullComplete source description for this exact video, with URL destinations preserved. Consult the description source fields.
emptyThat native description field exists and is exactly empty (description: "").
snippetOnly a listing or HTML preview is available; it may be truncated.
unavailableNo full description could be confirmed. Missing does not mean empty.
budget_limitedThe request allowance or collection deadline prevented completion. Any existing preview is retained.

Video metadata remains useful when a watch page is blocked: the row is delivered with its status, and the collection summary reports partial. Full descriptions are attempted automatically, but source access is not guaranteed. No descriptions are generated or inferred.

Rows are saved as each ordered enrichment completes. Discovered metadata is still saved if the collection deadline or HTTP allowance expires; event spending limits can prevent further delivery. OUTPUT and PUBLIC_COLLECTION_SUMMARY in the run key-value store report requested, attempted, and skipped source counts, HTML/metadata/bootstrap/mirror request counts, attempt timings, proxy usage, delivered records, description coverage, bounded safe description failure codes, and stop reasons. status is succeeded, partial, or failed. Stop reasons distinguish result limits, request limits, deadlines, charging limits, exhausted sources, and a zero-result limit. A failed source preserves metadata from successful sources and returns partial results. A run with no meaningful metadata fails clearly, except when an explicit zero-result or charging limit prevents collection.

The Source checks output links to PUBLIC_SOURCE_CHECKS. It samples the first, middle and last delivered videos, plus successful HTML/player/watch-description/mirror methods when present, up to six checks. Native video IDs, titles, canonical URLs and available channel/view-count fields are compared independently. Each check includes the source URL, HTTP status, request time, response hash, and a hash of the final enriched delivered row. Description checks independently compare the complete native field for the exact video, recording its SHA-256, character length and separate page or metadata-response HTTP evidence without copying the full text into diagnostics. matched: true requires both matching fields and a completed public-source response. Missing HTTP evidence stays unverified. These sampled checks do not establish the accuracy of every field or every video in a larger dataset. A detected field mismatch rejects that sampled record before delivery and is recorded separately under rejections.

EVIDENCE_ANALYSIS contains deterministic analysis and literal phrase matches from confirmed delivered records. sourceRecordHash identifies a processed row; it is not a YouTube-issued identifier. Metadata does not establish playback availability.

Use cases

Collect titles and descriptions for content research, inspect a channel's visible videos, find videos through public search, or save metadata snapshots for later comparison.

Costs and public-data limits

No paid data API is used. The automatic Invidious backup is a third-party public service, requires no subscription or key, and may be unavailable or return partial coverage. No challenge pages are solved. Native restrictions remain terminal. Each discovered video has at most four description retrieval attempts, or five when the optional paid proxy retry is enabled, in addition to any discovery/bootstrap requests. Apify hosting, storage, result pricing, and explicitly enabled proxy usage can still incur charges; consult the Store pricing panel.

Direct collection is the default. Proxy settings and environment proxy variables do not silently enable a proxy. If YouTube blocks a public page, native description recovery and the free mirror backup are attempted within the shared budgets; exhausted routes produce clear failures or partial results. To allow native Apify Proxy retries within your request budget, explicitly set:

{
"targets": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
"maxItems": 1,
"useApifyProxyFallback": true,
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"]
}
}

Changing from earlier releases: omitting useApifyProxyFallback now means false. Supplying proxyConfiguration alone does not enable it and produces a warning in the run summary.

An explicitly enabled retry requests the reviewed public page or metadata endpoint from another IP. Recognized bot warnings and redirects to a bot-challenge page can trigger this retry; the Actor never submits a challenge. HTTP 403/429, temporary server errors, connection failures, timeouts and missing public metadata are also eligible. Discovery allows at most two proxy retries per source; description enrichment allows at most one proxy retry per video. All routes share the request, charging and deadline limits. Two consecutive transport failures disable a description endpoint for the remainder of the run; HTTP 429 cooldowns apply across workers for the affected host. Mirror requests are serialized. proxyRequests counts attempted target requests through a proxy; proxy configuration alone does not establish that a proxy request happened.

Authentication, consent, private/age restrictions, HTTP 404/410, TLS errors, oversized pages and other permanent failures stop without proxy retries. Summaries include safe error codes and response diagnostics; headers, public client keys, visitor configuration, proxy credentials and unreviewed redirect query strings are excluded. YouTube may respond differently to Apify-hosted requests than to your browser, so a public video or search URL can still fail while channel listings work.

Source codeMeaning and next step
PUBLIC_ACCESS_CHALLENGE / SOURCE_BLOCKEDYouTube blocked a public request. Explicit proxy fallback may help, but is not guaranteed.
PUBLIC_AUTH_REQUIRED / PUBLIC_CONSENT_REQUIREDA login or consent page was encountered. Choose another publicly accessible source.
PUBLIC_PAGE_PRIVATE / PUBLIC_PAGE_AGE_RESTRICTEDThe content is restricted and is skipped.
PUBLIC_SOURCE_UNAVAILABLEThe page is missing, removed, or reported unavailable. Check the URL.
PUBLIC_REDIRECT_RESTRICTED / PUBLIC_PAGE_RESTRICTEDThe source redirected outside allowed public pages or reported another restriction.
SOURCE_DOCUMENT_TOO_LARGE / SOURCE_TLS_ERRORThe page exceeded the download limit or failed TLS verification. Collection stops for that source.
SOURCE_METADATA_MISMATCHA sampled extracted record did not match native source fields and was rejected. Inspect Source checks and share the run ID through Issues.

Collection has a 150-second deadline, a four-megabyte decompressed HTML limit per document, and the configured request/result budgets. TLS verification remains enabled. Discovery reads initial public HTML pages; descriptions can also come from native metadata or the reviewed Invidious endpoint. Each mirror JSON response is limited to one megabyte and mirror access never enables paid proxies. Metadata JSON is limited to one megabyte per response. Private, age-restricted, login-only, consent-wall, and otherwise restricted pages are skipped without bypass attempts. No video files, comments, transcripts, or continuation API responses are collected. Older includeLikeCount, useYtDlpFallback, and maxConcurrency settings remain accepted for compatibility and do not enable additional collection services.

Python API example

This example uses Apify Client for Python 3.x.

import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("nRTzbCmODVqCn10lZ").call(run_input={
"targets": ["@OpenAI"],
"maxItems": 1,
})
if run is None:
raise RuntimeError("The Actor did not return a completed run.")
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item)

For support, share a run ID and sanitized input through the Actor Issues tab.