+OK.ru API
Read public OK.ru (Odnoklassniki) groups and their posts with likes, comments and media as JSON.
The API.SH OK.ru API turns public Odnoklassniki (OK.ru) group pages into structured JSON. Look up a public group for its id, name, description, member count and picture with its newest posts, each with text, author, date, photos, videos (title, duration, thumbnail, link), shared links and comment, reshare and like counts. Open any post for its complete text, headline, publish and edit time and the same engagement counts.
- 2 endpoints
- from $1 / 1,000 calls
- 1,000 free credits / month
- failed calls free
GET https://api.api.sh/okru/v1/ group
{ "success": true } What you can build with the OK.ru API
Group monitoring
Check public OK.ru groups on a schedule and collect their newest posts and member counts to follow what brands, media or communities publish.
Engagement analysis
Compare likes, comments and reshares across posts and groups to see which content performs best on Odnoklassniki.
Full-text archiving and research
Open posts for their complete text, headline, timestamps and media to build an archive or dataset for media and social research.
Video catalog of a group
Collect the videos a group posts with title, duration, thumbnail and link to index them or track what video content a community shares.
OK.ru data you get
Field names from real responses. Numbers come parsed, URLs absolute, dates in ISO 8601.
OK.ru API endpoints and prices
Every OK.ru endpoint costs 1 credit per call: credits are $1 per 1,000 on a monthly plan, $2 pay-as-you-go. Pricing
| OK.ru group and its posts /okru/ | $1 · $2 PAYG 1 credit |
| OK.ru group post /okru/ | $1 · $2 PAYG 1 credit |
Call the OK.ru API
OK.ru group and its posts: GET https://api.api.sh/okru/
curl "https://api.api.sh/okru/v1/group?group=rbc" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/okru/v1/group",
params={"group": "rbc"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/okru/v1/group");
url.searchParams.set("group", "rbc");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); # Google Sheets (API.SH add-on)
=APISH("/okru/v1/group", "group", "rbc")
# Zapier, Make, n8n (verified node): pick the API.SH app,
# choose "OK.ru" and "OK.ru group and its posts".
# AI agents (Claude, ChatGPT, Cursor): add the
# API.SH MCP server https://api.sh/mcp - Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
- Create an API keyOne key works for all 482 platforms.
- Send the requestJSON back in one call. Add
output=csvoroutput=ndjsonfor files.
Why API.SH for OK.ru data
- Public data only: no OK.ru login, cookies or account needed
- One key and one response shape for OK.ru and 481 other platforms
- Built and maintained by API.SH, not third-party publishers
- Pay per call; errors on our side cost nothing
- Live status for every endpoint
API.SH vs the official OK.ru API
OK.ru has an official API (apiok.ru) with REST methods, SDKs and group statistics, but you must register an application, use OAuth, and some permissions are granted only on request by OK's support. API.SH needs no app registration and returns public group and post data as JSON with one key.
Instead of registering an OK app or keeping an Odnoklassniki scraper running, use API.SH: one key, the same JSON shape as other social platforms on API.SH and a fixed price per call.
OK.ru API questions
What OK.ru data can I get?+
A public group with its member count, description and newest posts with text, media and like, comment and reshare counts (/okru/v1/group), and one public post in full with complete text, headline, times, media and counts (/okru/v1/post).
How much does the OK.ru API cost?+
Every OK.ru endpoint costs 1 credit per call. On a monthly plan 1,000 credits cost $1 (Starter is $50/month for 50,000 credits). Pay-as-you-go is $2 per 1,000 credits, with top-ups from $15 that never expire.
Is there a free trial?+
Yes. Every account gets 1,000 free credits every month. That is 1,000 calls to /okru/v1/group at 1 credit each.
Is there an official OK.ru (Odnoklassniki) API?+
Yes. The Odnoklassniki API at apiok.ru offers REST methods for apps, games and websites, but it needs a registered application and OAuth, and some data needs extra permissions from OK support. API.SH reads public groups and posts with just an API.SH key.
Do I need an OK.ru account or login?+
No. API.SH reads public OK.ru group pages only. No endpoint logs in, reads private profiles or posts anything.
Can I download OK.ru videos with it?+
No. It returns each video's id, title, duration, thumbnail and link as posted in a group, not the video files.
Can I use the OK.ru API from Python?+
Yes. It is a plain HTTPS API that returns JSON, and there is a Python SDK. For a group's second page of posts, pass next_cursor back as cursor with the same group.
How do I get started?+
1. Sign up at api.sh. 2. Copy your API key. 3. Call /okru/v1/group with group set to a public group's short name or link. Request examples and every parameter are in the docs at https://api.sh/docs. You can also use the JS or Python SDK, Google Sheets, Zapier, Make, n8n or the MCP server at https://api.sh/mcp.