tools
Download YouTube video
Download YouTube videos or audio. Returns available formats or direct download URL. Rate limits: Build (50/day), Accelerate (500/day), Unlimited (unlimited).
AuthorizationBearer <token>
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
urlstring
YouTube video URL or video ID
action?string
Action to perform: 'download' returns download URL, 'formats' lists available formats
Default
"download"Value in
"download" | "formats"format?string
Desired format (when action=download)
Default
"video"Value in
"video" | "audio"quality?string
Desired quality (when action=download)
Default
"hd"Value in
"hd" | "sd"formatId?string
Specific format ID from formats list
Response Body
application/json
application/json
curl -X GET "https://getlate.dev/api/v1/tools/youtube/download?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ"{
"success": true,
"title": "string",
"downloadUrl": "http://example.com",
"formats": [
{
"id": "string",
"label": "string",
"ext": "string",
"type": "string",
"height": 0,
"width": 0
}
]
}{
"error": "Unauthorized"
}Empty
Empty