curl --request POST \
--url https://api.example.com/api/download \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"quality": "<string>",
"download_type": "<string>",
"format_id": "<string>"
}
'{
"download_id": "<string>",
"id": "<string>"
}Initiates a new video or audio download from a URL
curl --request POST \
--url https://api.example.com/api/download \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"quality": "<string>",
"download_type": "<string>",
"format_id": "<string>"
}
'{
"download_id": "<string>",
"id": "<string>"
}"video" - Download video with audio"audio" - Download audio onlydownload_id (both fields return the same value)curl -X POST https://your-api.com/api/download \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"quality": "1080p",
"download_type": "video"
}'
{
"download_id": "550e8400-e29b-41d4-a716-446655440000",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
download_id is generated"pending"pending → downloading → processing → completedstatus is "completed", retrieve the file using Get File