Skip to content

YouTube Video Downloader


Downloads a YouTube Video

POST/api/youtube/download
Terminal window
https://api.cookie-api.com/api/youtube/download


{
"url": "https://youtu.be/YW7NV8J8oxI?si=jipA1bTmTo_qs6Io",
"mode": "video" // Can be 'video' or 'audio' for audio export only (useful for music)
}

Terminal window
curl --location 'https://api.cookie-api.com/api/youtube/download' \
--header 'Authorization: API_Key' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://youtu.be/YW7NV8J8oxI?si=jipA1bTmTo_qs6Io",
"mode": "video"
}'

Responses
{
"message": "Video will be available shortly on the url.",
"success": true,
"url": "https://videos.cookie-api.com/youtube/e81ccd95-c889-45ca-9301-03ff36471808.mp4",
"video_id": "e81ccd95-c889-45ca-9301-03ff36471808"
}

Returns the status of the element that is currently being uploaded


GET/api/youtube/video-status
Terminal window
https://api.cookie-api.com/api/youtube/video-status


URL Parameters
videoEither the cdn url directly or the provided video_id

curl --location 'https://api.cookie-api.com/api/youtube/video-status?video=e7f254b3-6cef-46ac-b30c-c5930789d37e' \
--header 'Authorization: API_Key'

Responses
{
"cdn_link": "https://videos.cookie-api.com/youtube/e81ccd95-c889-45ca-9301-03ff36471808.mp4",
"media_format": "mp4",
"media_type": "video",
"status": "uploading",
"success": true,
"uploaded_at": "1746650585",
"youtube_link": "https://youtu.be/YW7NV8J8oxI?si=jipA1bTmTo_qs6Io"
}

Deletes a video

DELETE/api/youtube/delete-video
Terminal window
https://api.cookie-api.com/api/youtube/delete-video


URL Parameters
videoEither the cdn url directly or the provided video_id

curl --location --request DELETE 'https://api.cookie-api.com/api/youtube/delete-video?video=https%3A%2F%2Fvideos.cookie-api.com%2Fyoutube%2Fc6f4a7c4-ee92-4c8f-a211-299da29b044c.mp4' \
--header 'Authorization: API_Key'
Responses
{
"message": "Video deleted successfully",
"success": true
}