yt-dlp
CLIDownload videos and audio from YouTube and 1000+ other sites.
Download videos/audio from YouTube and 1000+ sites with format selection
Recipes
Curated from documentation and usage. Percentages are estimates, not measurements.
Download best quality video
yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]' URLExtract audio as MP3
yt-dlp -x --audio-format mp3 --audio-quality 0 URLCommon failures (1)
- ffmpeg not foundInstall ffmpeg: brew install ffmpeg
Download entire playlist
yt-dlp --yes-playlist -o '%(playlist_index)s-%(title)s.%(ext)s' PLAYLIST_URLInstall
Homebrew
brew install yt-dlppip
pip install yt-dlpAgent notes
- When to use
- Downloading online video or audio for offline use
- Quick examples
yt-dlp https://youtu.be/VIDEO_IDyt-dlp -x --audio-format mp3 URLyt-dlp -f 'bestvideo+bestaudio' URL
Use from an agent
curl -s https://clihub.com/api/tools/yt-dlp | jq '.agentHints.provenRecipes[] | {task, command, verified}'Or call get_tool with slug yt-dlp on the MCP server at https://clihub.com/mcp.