yt-dlp

CLI

Download videos and audio from YouTube and 1000+ other sites.

Download videos/audio from YouTube and 1000+ sites with format selection

3 curated recipes · not yet executed by the harness#youtube#download#video#audio

Recipes

Curated from documentation and usage. Percentages are estimates, not measurements.

Download best quality video

~94% est.
yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]' URL

Extract audio as MP3

~96% est.
yt-dlp -x --audio-format mp3 --audio-quality 0 URL
Common failures (1)
  • ffmpeg not foundInstall ffmpeg: brew install ffmpeg

Download entire playlist

~91% est.
yt-dlp --yes-playlist -o '%(playlist_index)s-%(title)s.%(ext)s' PLAYLIST_URL

Install

Homebrewbrew install yt-dlp
pippip install yt-dlp

Agent notes

When to use
Downloading online video or audio for offline use
Quick examples
  • yt-dlp https://youtu.be/VIDEO_ID
  • yt-dlp -x --audio-format mp3 URL
  • yt-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.

Homepage ↗Unlicense0 views