Get direct playable video stream URLs from OK.ru / Odnoklassniki links. Simple REST API, API-key auth, per-user rate limiting.
Base URL: https://okru-api.pages.dev — all endpoints return JSON.
X-API-Key header./api/user/login.1. Register and grab your key:
curl -s -X POST https://okru-api.pages.dev/api/register \
-H "Content-Type: application/json" \
-d '{"username":"myuser","email":"me@example.com"}' | jq .api_key
2. Extract streams:
curl -s -X POST https://okru-api.pages.dev/api/extract \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"url":"https://ok.ru/video/1234567890"}'
3. Response:
{
"streams": [
{ "quality": "1080p", "label": "OK.ru", "url": "https://...m3u8" },
{ "quality": "720p", "label": "OK.ru", "url": "https://...m3u8" },
{ "quality": "480p", "label": "OK.ru", "url": "https://...m3u8" }
],
"used": 1,
"limit": 1000
}
Rate limit response (HTTP 429):
{
"error": "Daily limit reached",
"limit": 1000,
"used": 1000,
"reset_at": "2025-07-01T00:00:00.000Z"
}