映
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/video | A 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/videoA 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
urlstring required | OK.ru video URL (https://ok.ru/video/<id>) or the numeric video id. e.g. https://ok.ru/video/14418516314862 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
duration | integer (int64) |
formats | Format[] |
quality | string |
url | string |
hlsUrl | string |
id | string |
poster | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/okru/video?url=https%3A%2F%2Fok.ru%2Fvideo%2F14418516314862" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/okru/video?url=https%3A%2F%2Fok.ru%2Fvideo%2F14418516314862", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/okru/video?url=https%3A%2F%2Fok.ru%2Fvideo%2F14418516314862", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }