Skip to content

OK.ru API

1 endpointSocial & VideoRUsocial:read1 real examples

Returns a public OK.ru video's title, duration, poster, HLS playlist and direct stream of each quality.

View as Markdown
GET/okru/videoA public OK.ru video by its URL or id: title, duration, poster, HLS playlist and the direct stream of each quality.

video

GET/v1/okru/video

A public OK.ru video by its URL or id: title, duration, poster, HLS playlist and the direct stream of each quality.

scope social:read1 unitcached 5 min

Parameters

url
string
required
OK.ru video URL (https://ok.ru/video/<id>) or the numeric video id.
e.g. https://ok.ru/video/14418516314862
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

9 fields
durationinteger (int64)
formatsFormat[]
qualitystring
urlstring
hlsUrlstring
idstring
posterstring
titlestring
urlstring
curl "https://api.hoshime.com/v1/okru/video?url=https%3A%2F%2Fok.ru%2Fvideo%2F14418516314862" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "duration": 378,
    "formats": [
      {
        "quality": "mobile",
        "url": "https://vd418.okcdn.ru/?expires=1794074569915&srcIp=160.79.106.140&pr=10&srcAg=CHROME&rjz=43&ms=95.163.35.124&type=4&subId=15558588959470&si…"
      },
      {
        "quality": "lowest",
        "url": "https://vd418.okcdn.ru/?expires=1794074569915&srcIp=160.79.106.140&pr=10&srcAg=CHROME&rjz=43&ms=95.163.35.124&type=0&subId=15558588959470&si…"
      }
    ],
    "hlsUrl": "https://vd418.okcdn.ru/video.m3u8?cmd=videoPlayerCdn&expires=1794074569915&srcIp=160.79.106.140&pr=10&srcAg=CHROME&rjz=43&ch=1894956448&ms=9…",
    "id": "14418516314862",
    "poster": "https://iv.okcdn.ru/i?r=BDFSTM1h2o92P_v-s8DgGlgYI3s-Evx5IO9bkMqCCSkA9uxxcL8xx-DhYJB6FLBlu_g&fn=external_8",
    "title": "Ко дню рождения А.С.Пушкина!",
    "url": "https://ok.ru/video/14418516314862"
  },
  "meta": {
    "cached": false,
    "endpoint": "video",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "okru",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open