YouTube Downloader: Reliable Downloads at Scale with Massive
Open-source async service that runs YouTube downloads through Massive Residential Proxies: bounded concurrency, strict sticky sessions, a fresh route on every retry, and per-attempt telemetry.
YouTube Downloader at Scale
Why direct download scripts fail at volume
Running yt-dlp straight against YouTube tends to break the same ways once the volume goes up. This service exists to avoid them.
- Unbounded concurrency. A naive script opens as many connections as it has URLs. That overwhelms both the proxy pool and YouTube, so failures cascade instead of backing off.
- Sessions that time out mid-download. sessionmode=flex rotates the route underneath a long download, so a large video times out partway through and the whole attempt is wasted.
- Retries that repeat the failure. A plain retry reuses the same route that just failed, so the second attempt fails the same way, burning the attempt budget without changing anything.
- Invisible proxy errors. When a proxy-side error is swallowed, the job just “failed” with no exit IP, country, or ASN to act on. You can’t tell a bad route from a bad video.
How it works: the operating model
One job flows from the API to a bounded worker, through a strict Massive session, into yt-dlp, and out to storage. A failed attempt returns for a fresh route.
What the service gives you
Built for reliable, observable downloads.
Async job API
Queue a job with POST /video and poll it with GET /video/{id}. Downloading happens in the worker, not in the HTTP request, so the response returns right away.
# Queue a download jobcurl -X POST https://your-host/video \-H "Content-Type: application/json" \-d '{"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"}'# => { "id": "job_123", "state": "queued" }# Poll itcurl https://your-host/video/job_123# Inspect every attemptcurl https://your-host/video/job_123/attempts# Retry a terminal failurecurl -X POST https://your-host/video/job_123/retry
- Explicit states: queued, running, uploading, completed, failed.
- Per-attempt visibility: GET /video/{id}/attempts, and retry a terminal failure at POST /video/{id}/retry.
Bounded concurrency and leases
A per-worker concurrency cap holds connections to a level your proxy and YouTube success rates can sustain, and worker leases track jobs in flight.
- Pick the cap from observed success rates. 30 is a useful load-test setting.
- Crash-safe leases. A crashed worker leaves a lease behind; an expired lease is recovered and requeued on restart.
Strict Massive sessions
Every attempt gets a unique session ID with sessionmode=strict. A route error invalidates the session rather than persisting through failures.
yt-dlp Python API integration
The service drives yt-dlp through its Python API, so proxy credentials never pass through a child-process command line, source file, or shell history.
Modern YouTube extraction
A Deno JavaScript runtime and configurable YouTube player clients handle modern player extraction.
YTDLP_JS_RUNTIME=denoYTDLP_YOUTUBE_PLAYER_CLIENTS=web,web_safari,tv
Local or S3 storage
Write results to the local filesystem for development, or to S3 and S3-compatible buckets when the optional dependency and credentials are present.
Per-attempt telemetry
Each attempt records its phase, timing, byte count, selected player clients, and error code. Credentials are never included.
- Massive exit metadata. With capture enabled, records include exit IP, country, timezone, and ASN — so you can tell a bad route from a bad video.
Signed completion webhooks
Set a webhook URL on a job to receive terminal notifications. With a signing secret set, deliveries carry an HMAC-SHA256 signature header.
Why Massive: real residential routes, not datacenter IPs
The service routes every attempt through Massive Residential Proxies, so YouTube sees organic local traffic from real consumer devices.
| Metric | Value |
|---|---|
| Response | <600ms |
| Success | 99.8% |
| Uptime | 99.9% |
| Countries | 195+ |
Enterprise-ready.
- SOC 2 Type 1 audited. Independent audit of security controls and operational integrity.
- GDPR + CCPA compliant. Full compliance with global data privacy regulations.
- AppEsteem certified. Independent review of SDK practices and consent mechanisms.
- 99.9% uptime SLA. Backed by 24/7 monitoring and dedicated infrastructure.
- Engineers who answer engineers. Dedicated account manager and technical support from the team that built it.
- Full audit trail. Every device opted in, every request logged. Passes security review.
No signup, no gate. Point it at your own Massive Residential credentials and you’re downloading in minutes. When your volume outgrows a test run, book a call and we’ll help you size a plan.
Clone it. Run it. Ship it.
