YouTube download API
The official YouTube Data API gives you metadata, search and uploads — but no way to download a video file. CrawlFetch fills that gap: send any YouTube URL and get back the title, every available format and a direct download link you can save like any other file.
Which YouTube URLs work
- Watch URLs:
youtube.com/watch?v=…(extra query parameters are ignored). - Short links:
youtu.be/…. - Shorts:
youtube.com/shorts/…. - Embed URLs:
youtube.com/embed/…. - A single video inside a playlist URL (
watch?v=…&list=…) — the video is resolved, not the whole playlist.
What one request returns
- Title, channel name, duration and thumbnail URL.
- A list of available formats with container, resolution label and size.
downloadUrl— a direct download link on the CrawlFetch domain for the format you asked for.audioUrl— the audio track on its own, when the platform publishes one.bestQuality— the highest resolution available, from 360p up to 2160p (4K).
Download a YouTube video with one request
Send the YouTube URL to the same GET /v1/resolve endpoint you use for every other platform — CrawlFetch detects the platform from the URL. The downloadUrl in the response is a direct download link on the CrawlFetch domain, so your code downloads a normal file instead of dealing with players, manifests or cookies.
curl -sG "https://api.crawlfetch.com/v1/resolve" \--data-urlencode "url=https://youtu.be/aqz-KE-bpKQ" \-H "Authorization: Bearer $CRAWLFETCH_KEY"
Formats and resolutions
Pass format (mp4, webm, m4a, opus) and res (360p … 2160p) to choose a file; the API falls back to the closest available resolution. Call GET /v1/formats first if you want to show users a picker.
The Free plan is capped at 720p; Starter unlocks 1080p and audio-only formats, Pro and Scale up to 4K. See the format guides for when to choose each one.
What developers build with the YouTube download API
- Transcription and AI pipelines that need the audio track.
- Video archiving for brands archiving their own channel.
- Clip and repurposing tools that cut long videos into Shorts.
- E-learning platforms offering offline lessons.
Use it responsibly
Only download content you own, have licensed, or have the creator's permission to use, and follow YouTube's terms for your use case. CrawlFetch is not affiliated with YouTube.
FAQ
Can the official YouTube Data API download videos?
No. It covers metadata, search, playlists and uploads only. See YouTube Data API vs a download API.
Does it work for YouTube Shorts?
Yes — Shorts URLs resolve like any other video. See YouTube Shorts download API.
Is there a free YouTube download API?
New accounts get 1,000 credits ($1) free on signup, and the Free plan adds 500 credits a month, up to 720p, with no card required. Get a key.
Related
Last updated 2026-10-25