saveapi.org

OK.ru Video Downloader API

OK.ru videos resolve through the public embedded player, so no account, cookie or token is involved. OK.ru shares its CDN with VK and publishes the same ladder — 144p up to 1080p, and 1440p or 2160p on some clips — so formats[] lists every rendition with a ready MP4 URL and its exact size, and medias[] carries the largest one up to 1080p, or the largest that fits limit_mb if you pass it. ok.ru/video, m.ok.ru, videoembed and group or profile video links are all accepted.

videoGET /v1/ok1.5 credits

Links we accept

Any public post URL on these hosts. Short links and country mirrors are resolved for you.

Hosts

ok.ru · odnoklassniki.ru · ok.me

Request

curl -s "https://api.saveapi.org/v1/ok" \
  -H "Authorization: Bearer sk_live_xxxx" \
  -G --data-urlencode "url=https://ok.ru/video/284965866238"

Response

{
  "success": true,
  "platform": "ok",
  "type": "video",
  "medias": [
    { "type": "video", "url": "https://…", "ext": "mp4" }
  ],
  "formats": [
    { "format": "mp4_480", "label": "480p", "type": "video", "size_mb": 7.9, "url": "https://…" },
    { "format": "mp4_720", "label": "720p", "type": "video", "size_mb": 17.19, "url": "https://…" }
  ],
  "recommended_format": "mp4_720",
  "meta": { "title": "…", "author": "…", "thumbnail": "https://…" },
  "credits": { "spent": 1.5, "remaining": 99988.5 }
}

Worth knowing

Every quality the source already publishes comes back in the same response — each with a ready URL and its exact size. Pick the one you want client-side: there is no second call and no format parameter.

Accepts limit_mb — this source offers several renditions, so you can cap the size you get back.

Questions before you build

Do I need an OK.ru account?
No. Everything is read from the public embedded player — the same one any website uses to show an OK.ru video. Private and deleted videos come back as a 404 that costs 0.1 credits.
How do I get a specific quality?
Every rendition OK.ru publishes is already in formats[] with a ready URL and its exact size, so you filter for the one you want — there is no second call. medias[] carries the recommended pick: the largest up to 1080p, or the largest that fits limit_mb when you pass one.
What if the video is a two-hour film?
Full films run into gigabytes at 1080p, and every size is in formats[] before you download anything. If you pass limit_mb and even the smallest rendition is bigger, the call returns INVALID_FORMAT with no charge — raise the limit or leave it out. Live broadcasts have no file and are refused.

Other platforms

Get a key and try itFull API reference