yt-dlp
$ yt-dlp Community Med Riskyt-dlp extracts video metadata, chapters, formats, and subtitles or downloads audio/video streams from YouTube and 1,000+ sites. Agents can inspect metadata cleanly without downloading media via --dump-single-json (-J) and --skip-download.
brew install yt-dlp Inspect metadata with yt-dlp -J --skip-download | jq directly in shell without downloading huge video files into the workspace.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
-J (--dump-single-json), --skip-download, and --quiet --no-warnings work reliably, though raw -J JSON is bulky unless filtered with jq.
- Supports
--dump-single-json(-J),--skip-download, and--no-warnings
Defaults to downloading media into the working directory unless --skip-download is passed; --cookies-from-browser reads local browser cookies.
- Default invocation writes video files locally; optional browser cookie access
Available everywhere via brew, pip, uvx, and standalone binaries (ffmpeg recommended for merging formats).
- Cross-platform binary and PyPI distribution
Unmatched extractor coverage for video metadata, transcripts/subtitles, and audio/video downloads.
- Supports 1,000+ media sites, subtitles, and JSON metadata
Highly active yt-dlp/yt-dlp OSS project under Unlicense.
- Active
yt-dlp/yt-dlpGitHub repository
Comprehensive README and --help, though option list is very large.
- Detailed flag documentation at github.com/yt-dlp/yt-dlp
Security, Auth & Guardrails
Optional --cookies Netscape cookie files or --cookies-from-browser; standard public lookups require no credentials.
Free, Unlicense public-domain open-source CLI; pairs with ffmpeg for muxing.
# yt-dlp Agent Rules - Always pass `--skip-download` when only inspecting metadata (`-J`) or pulling subtitles (`--write-subs`). - Pipe `-J` JSON through `jq`—raw `yt-dlp -J` objects include dozens of format entries and often exceed 50 KB.
Agent-Ready Command Recipes
Safe Read-Only Queries
yt-dlp --dump-single-json --skip-download --no-warnings 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' | jq '{title, duration, uploader}' Extracts full video metadata JSON (--dump-single-json) without writing media files (--skip-download).
Controlled Writes & Previews
yt-dlp --skip-download --write-auto-subs --sub-lang en --sub-format srt -o '%(id)s.%(ext)s' 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
Downloads only English subtitles (--skip-download) into the workspace.
Strengths for Agents
- +
--dump-single-json --skip-downloadretrieves structured metadata, chapters, and subtitle URLs cleanly. - + Active community updates keep site extractors working.
Caveats & Pitfalls
- ! Raw
-JJSON payloads are verbose (50+ KB per video)—filter withjq. - ! Default command downloads large video files unless
--skip-downloadis specified.