Authorization
bearerAuth API key issued from the dashboard, sent as Authorization: Bearer YOUR_API_KEY.
In: header
Request Body
application/json
Download parameters.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://youtube-download-api.org/api/v2/download" \ -H "Content-Type: application/json" \ -d '{ "url": "https://youtu.be/dQw4w9WgXcQ", "format": "mp3" }'{
"jobId": "69cfc45e8a3b4d2f9c1e0a7b",
"title": "Rick Astley - Never Gonna Give You Up",
"duration": 213,
"status": "IN_QUEUE",
"message": "Download job enqueued. Poll GET /api/v2/download/{jobId} for status."
}{
"error": "Missing required field: url"
}{
"error": "Missing API key. Provide it as 'Bearer YOUR_API_KEY'"
}{
"error": "Download limit reached",
"downloadsUsed": 25,
"downloadsAllowance": 25
}{
"error": "Failed to enqueue download job"
}