/ytdl
YouTube
Video/audio info lookup and download for YouTube links.
Some endpoints on this page stream a file rather than returning JSON. Try-it-out shows the response headers for these instead of the file itself.
Get video info
Get title, duration, and available formats for a YouTube video.
POST
/ytdl/infoYouTube video ID or URL.
Response
Run the request to see a live response here.
Create download token
Create a one-time download token for a specific format.
POST
/ytdl/tokenYouTube video ID or URL.
Format ID from the info endpoint.
"video" or "audio".
Filename for the downloaded file.
Response
Run the request to see a live response here.
Download file
Streams the file for a one-time token. Token expires in 5 minutes and is single-use.
GET
/ytdl/dl/:tokenToken returned from the token endpoint.
Response
Run the request to see a live response here.