This API allows you to download videos via curl and get a server link to the downloaded file.
/curldl?url=VIDEO_URL
Downloads a video from the provided URL and returns a server link.
curl -X GET "http://your-server:3000/curldl?url=https://www.youtube.com/watch?v=VIDEO_ID"
{
"success": true,
"message": "Download successful",
"download_url": "http://your-server:3000/videos/MEDIA_ID.mp4",
"media_id": "MEDIA_ID",
"media_type": "video",
"note": "This file will be automatically deleted after 30 minutes"
}
/curldl/delete/:mediaId
Manually delete a downloaded media file using its media ID.
curl -X GET "http://your-server:3000/curldl/delete/MEDIA_ID"
{
"success": true,
"message": "Media file deleted successfully"
}
curl -X GET "http://your-server:3000/curldl?url=https://www.youtube.com/watch?v=VIDEO_ID"
curl -o downloaded_video.mp4 "http://your-server:3000/videos/MEDIA_ID.mp4"
curl "http://your-server:3000/videos/MEDIA_ID.mp4" | mpv -
curl -X GET "http://your-server:3000/curldl/delete/MEDIA_ID"