YouTube Video Downloader | MP4/WebM Files & Metadata avatar

YouTube Video Downloader | MP4/WebM Files & Metadata

Pricing

from $20.00 / 1,000 results

Go to Apify Store
YouTube Video Downloader | MP4/WebM Files & Metadata

YouTube Video Downloader | MP4/WebM Files & Metadata

Download YouTube videos you own or are authorized to save. YouTube downloader with batch URLs, MP4, WebM or MKV files, 360p to 4K limit, title, channel and view metadata, temporary download links, per-URL results and optional cookies and proxy recovery.

Pricing

from $20.00 / 1,000 results

Rating

2.6

(3)

Developer

Xtech

Xtech

Maintained by Community

Actor stats

14

Bookmarked

370

Total users

0

Monthly active users

10 hours ago

Last modified

Features

Limited permissions

Share

YouTube Video Downloader

Save videos you own or are authorized to download, together with searchable metadata and a temporary direct download link.

What it does

  • Process one or many YouTube video URLs in a single run
  • Choose a maximum video resolution from 360p up to 4K
  • Receive the title, channel, duration, description, view count, thumbnail, and download result
  • Save each successful video to the run’s key-value storage and return a direct retrieval link
  • Use optional cookies for content you are authorized to access, such as your own age-restricted videos
  • Use a proxy when regional availability or rate limits require it

Best for

  • Create an offline copy of videos you own or have permission to archive
  • Build a metadata catalog before sending videos to a transcript, caption, or analysis workflow
  • Download a small batch of approved videos with one consistent resolution limit

This Actor does not bypass paywalls, private access controls, or YouTube’s policies. Use it only for content you are allowed to save.

Get started

Add one or more direct video URLs, choose the largest resolution you want, then run the Actor. The input form includes a public test video so you can verify the output before using your own URLs.

{
"urls": [
{ "url": "https://www.youtube.com/shorts/vVoMLnsbQqE" }
],
"resolution": "720p"
}

For age-restricted videos you own or are authorized to access, paste a Netscape-format cookies.txt value into the secret cookies field. The Actor tries a direct connection first. When YouTube refuses it, the Actor uses its included residential proxy for those requests; video files are downloaded directly whenever YouTube accepts it.

Pricing

See the Actor's Pricing tab for the current price. Apify Proxy is not used.

Ready-to-run presets

Reliable single-video cloud check:

{
"urls": [{ "url": "https://www.youtube.com/shorts/vVoMLnsbQqE" }],
"resolution": "360p"
}

Approved batch at a consistent quality:

{
"urls": [
{ "url": "https://www.youtube.com/watch?v=aqz-KE-bpKQ" },
{ "url": "https://www.youtube.com/watch?v=G56v017spr0" }
],
"resolution": "720p"
}

Single longer video:

{
"urls": [{ "url": "https://www.youtube.com/watch?v=aqz-KE-bpKQ" }],
"resolution": "720p"
}

Add authorized cookies only in the secret cookies input; never place them in a task description or shared preset.

Results

Successful downloads appear in the default dataset with video details and a saved-file link. On pay-per-event runs, failed URLs and missing-file results go to the separate diagnostics dataset without a result-event charge. Open the DIAGNOSTICS key-value record for its link. Free/legacy runs retain failed rows in the default dataset. If all inputs fail, the run is marked FAILED after writing diagnostics. Each run writes a RUN_SUMMARY with successful, failed, saved and skipped counts, including whether it stopped at the spending limit. Saved media can be MP4 or WebM, depending on the formats YouTube supplies.

Malformed or non-YouTube URLs are retained as Invalid YouTube URL error rows and are not sent through yt-dlp retries. This keeps a typo from consuming runtime or proxy traffic while preserving a clear correction path in diagnostics.

Example successful row:

{
"url": "https://www.youtube.com/watch?v=aqz-KE-bpKQ",
"video_id": "aqz-KE-bpKQ",
"title": "Big Buck Bunny 60fps 4K - Official Blender Foundation Short Film",
"channel": "Blender",
"duration": 120,
"download_url": "https://api.apify.com/v2/key-value-stores/<store-id>/records/aqz-KE-bpKQ",
"error": null
}

The download link points to the Actor run’s key-value store and is subject to your Apify data-retention period. Download or copy the file while the run storage is retained.

Good to know

Only download content that you own or have permission to save. Availability, formats, and access rules are determined by YouTube and the video owner.

Troubleshooting

  • YouTube JavaScript challenge: the Actor bundles yt-dlp's EJS challenge solver and the Deno runtime. If YouTube still asks for sign-in, retry or use authorized cookies.
  • yt-dlp failed: confirm the URL is a direct YouTube video URL, then retry with a lower resolution.
  • Age-restricted or private video: provide authorized Netscape cookies; do not paste cookies into the public input or README.
  • Bot-check or 403 Forbidden: keep the proxy enabled (the default). Setting useApifyProxy to false forces direct connections only, which YouTube usually blocks from the cloud.
  • Proxy limit: if YouTube only accepts a video file through the proxy, files above 300 MB are not transferred. Choose a lower resolution or a shorter video.
  • Memory: video files are streamed through disk, so 512 MB is enough for ordinary downloads. Run disk space grows with memory; use more memory for very large files. Files above 800 MB are rejected.
  • Missing download_url: the video metadata was returned with an error; inspect the row's error field and run status.

Pay-per-event results and diagnostics

Only successfully stored video files enter the paid default dataset. Failed and invalid-input rows are kept in a separate diagnostics dataset; the DIAGNOSTICS key-value-store record contains its ID and link. The run-start fee and applicable platform/proxy usage still apply. If no video can be downloaded, the run is marked failed after saving diagnostics.

RUN_SUMMARY reports saved videos, skipped inputs and whether the result spending limit stopped processing. Keep a maximum run charge and start with one short permitted video. A spending limit does not resolve YouTube access restrictions.