POST/downloader/

Downloads media to our server and returns a URL for streaming/downloading. The HTTP connection stays open until the file is ready. Use this if you need a stable URL that survives past the CDN cache.

Parameters

urlrequiredstring

Media URL to download.

modeoptionalselectauto | audio | video

Preferred download mode. 'auto' picks video for video URLs, audio for audio URLs.

qualityoptionalselectmax | 2160 | 1440 | 1080 | 720 | 480 | 360

Preferred video quality. 'max' picks the highest available.

use_cookiesoptionalboolean

Use authenticated cookies for private content (premium feature).

max_file_size_mboptionalnumber

Maximum file size in megabytes. Files larger than this will be rejected or truncated.

Code examples

curl
curl -X POST 'https://api.anysave.click/downloader/' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "https://youtu.be/dQw4w9WgXcQ",
  "mode": "auto",
  "quality": "max",
  "use_cookies": false,
  "max_file_size_mb": 1990
}'

Response example

json
{
  "status": "ok",
  "data": {
    "source_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "service": "youtube",
    "is_truncated": false,
    "status": "tunnel",
    "file": {
      "type": "video",
      "url": "https://api.example.com/media/abc123.mp4",
      "filename": "abc123.mp4",
      "file_size_bytes": 15728640,
      "extra": {
        "metadata": {
          "duration": 212,
          "width": 1920,
          "height": 1080,
          "thumbnail": "https://api.example.com/media/abc123_thumb.jpg"
        }
      }
    }
  }
}