Youtube Downloader avatar

Youtube Downloader

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Youtube Downloader

Youtube Downloader

Extracts direct download URLs and core metadata from YouTube videos in bulk — useful for content archiving, offline distribution, video processing pipelines, and research workflows.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

Alex

Alex

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Share

YouTube Video Downloader Scraper

Overview

Extracts direct download URLs and core metadata from YouTube videos in bulk — useful for content archiving, offline distribution, video processing pipelines, and research workflows.


Input Format

{
"urls": [
"https://www.youtube.com/watch?v=...",
"https://www.youtube.com/shorts/..."
]
}
  • urls: Array of YouTube video URLs (youtube.com/watch?v=...).

Output Format

FieldTypeDescription
video_idStringUnique YouTube identifier from the URL
titleStringFull video title as shown on YouTube
length_secondsIntegerTotal duration in seconds
download_urlsArrayDirect file URLs across all available formats and qualities

Each entry in download_urls includes:

Sub-fieldDescription
urlDirect playback/download link
mime_typeFile format and codec (e.g., video/mp4, audio/webm)
quality_labelHuman-readable quality (e.g., 1080p, 720p, 480p)
width / heightResolution in pixels
fpsFrames per second
bitrate / average_bitrateBitrate in bps
content_lengthFile size in bytes

Example Output (abbreviated)

{
"video_id": "DEofhN7oun0",
"title": "Example Video Title",
"length_seconds": "373",
"download_urls": [
{
"url": "https://rr2---sn-....googlevideo.com/videoplayback?...",
"mime_type": "video/mp4; codecs=\"avc1.640028\"",
"quality_label": "1080p",
"width": 1920,
"height": 1080,
"fps": 30,
"bitrate": 4345033,
"content_length": "119275508"
},
{
"url": "https://rr2---sn-....googlevideo.com/videoplayback?...",
"mime_type": "audio/mp4; codecs=\"mp4a.40.2\"",
"quality_label": "",
"width": 0,
"height": 0,
"fps": 0,
"bitrate": 130855,
"content_length": "6040133"
}
]
}

⚠️ Download URLs are time-limited. They expire within minutes to hours. Act on them immediately after extraction.


Usage

  1. Collect URLs — Use clean watch?v=VIDEO_ID format when possible. Avoid playlist URLs with extra parameters.
  2. Set ignore_url_failures: true — Prevents one bad URL from halting a batch job.
  3. Run and act promptly — Initiate downloads or pass URLs to your pipeline as soon as results return.
  4. Use video_id as your primary key — Stable across records; can reconstruct the source URL anytime.
  5. Use length_seconds for size estimation — Helps forecast storage requirements before downloading.

Common Issues

ProblemSolution
URL returns 403/410 errorToken expired — re-run the scraper for fresh links
Video skipped silentlyCheck run log; verify video is public and accessible on YouTube
Wrong video returnedUse clean watch?v= URLs; avoid shortened or playlist URLs

Use Cases

  • Archiving: Build offline libraries of owned or licensed video content
  • Offline education: Distribute lecture/tutorial videos in low-connectivity environments
  • Processing pipelines: Feed URLs into transcoding, captioning, or computer vision systems
  • Research: Collect raw video files for academic datasets (subject to licensing and ethics review)
  • Content ops: Automate video asset retrieval for internal editing or compliance workflows