Command guide
How to download subtitles with yt-dlp
Subtitle downloads are simple once you know the right flags. The main trap is forgetting whether you want subtitle files only, subtitles alongside the media, or auto-generated subtitles when manual captions do not exist.
Short answer: Add --write-subs --skip-download to get only the subtitle files, and --write-auto-subs when a video has no manual captions. If subtitle requests start failing with 429s from a server while they work on your laptop, it's the server's IP (see below). If downloads have to keep working inside an app, a hosted API such as Importly takes the link and returns the file, transcript or metadata, and it works from servers where self-hosted downloads get blocked, with nothing to install or patch on the box.
Quick answer
If you only want subtitle files, start here.
yt-dlp --write-subs --sub-langs "en.*" --skip-download "URL"Auto subtitles
yt-dlp --write-auto-subs --sub-langs "en.*" --skip-download "URL"Use this when the platform does not offer manual captions but does offer auto-generated subtitles.
Download media and subtitles together
yt-dlp --write-subs --sub-langs "en.*" "URL"Remove --skip-download if you want the video file and the subtitle files in the same run.
What usually goes wrong
- subtitles do not exist for that video
- wrong language pattern was requested
- the user forgot
--skip-downloadand got the full media too - manual subtitles were expected, but only auto subtitles are available
Practical recommendation
When subtitle availability is uncertain, test with subtitle-only download first. It is faster and makes it obvious whether the language and subtitle type are actually available.
Do not assume subtitles exist
A subtitle command failing does not automatically mean yt-dlp is broken. A lot of videos simply do not have the subtitle track or language you expected.
"HTTP Error 429" when downloading subtitles
If subtitle downloads fail with Unable to download video subtitles: HTTP Error 429: Too Many Requests — especially when you're pulling several languages, or looping over many videos — YouTube is rate-limiting its caption endpoint, separately from the video itself. Slow the subtitle requests down:
# sleep before each subtitle download
yt-dlp --write-auto-subs --sub-langs "en.*" --skip-download \
--sleep-subtitles 5 "URL"
# or the built-in "sleep" preset (--sleep-subtitles 5 --sleep-requests 0.75)
yt-dlp -t sleep --write-subs --sub-langs "en.*" --skip-download "URL"For a batch, request only the languages you actually need (a broad --sub-langs all multiplies the requests) and let the job take longer. If subtitles 429 only from a server or cloud box but work from your laptop, it's the IP, not the pacing — see YouTube transcripts that fail on a server.
For builders
Using yt-dlp inside an app or script?
Paste a link to see what a managed media-import API returns — no install, no signup.
Building this into an app? See the API your backend calls instead