What you get#
Onekey exposes VK as 11 endpoints behind one API key: 3 endpoints return one record (data is an object) and 8 endpoints return a list (data is an array). Every answer uses the same envelope (success, data, metadata, error), the cost is reported in metadata.credits_charged, and fields are mapped onto the unified schema so the code you write for VK also works for the rest of the social networks category.
Endpoints#
| Endpoint | What it does | Parameters | Credits | Status |
|---|---|---|---|---|
community | VK community/group: name, description, members, verification. | group* | 5 | beta |
community_members | Members of a VK community (first page). | group* | 5 | beta |
post | A single VK wall post by {owner_id}_{post_id}. | owner_id*, post_id* | 5 | beta |
post_comments | Comments on a VK wall post. | owner_id*, post_id* | 5 | beta |
search_communities | Search VK communities by keyword. | q* | 5 | beta |
search_posts | Search public VK posts by keyword (newsfeed.search). | q* | 5 | beta |
search_users | Search VK users by keyword. | q* | 5 | beta |
search_videos | Search VK videos by keyword. | q* | 5 | beta |
user | VK user profile: name, status, followers, verification, avatar. | user* | 5 | beta |
user_followers | Followers of a VK user. | user* | 5 | beta |
wall | Recent wall posts of a VK user or community. | domain* | 5 | beta |
A * marks a required parameter. Each endpoint name links to its reference page with the full parameter table, caching window and a recorded response.
Make a request#
This calls vk.community (5 credits, beta). Replace YOUR_API_KEY with your key; sign up, no card. 1,000 free credits cover the open-platform endpoints. Hard-to-reach platforms (X, TikTok, Instagram, Reddit, and others marked on their page) need a verified email and a purchased pack.
curl "https://api.onekey.dev/v1/vk/community?group=apiclub" \
-H "x-api-key: YOUR_API_KEY"Fields you get back#
These unified fields come back from VK, with the same names as on every other platform. The count is how many of its 11 mapped endpoints return the field; a field the source lacks is null, never missing.
| Field | Type | Endpoints |
|---|---|---|
author.id | string | 9 |
content.text | string | 9 |
content.createdAt | ISO 8601 date | 5 |
content.id | string | 5 |
author.avatarUrl | URL | 4 |
author.displayName | string | 4 |
author.followers | integer | 4 |
author.username | string | 4 |
author.verified | boolean | 4 |
engagement.likes | integer | 4 |
engagement.views | integer | 4 |
engagement.comments | integer | 3 |
engagement.shares | integer | 3 |
media.thumbnailUrl | URL | 3 |
entity.description | string | 2 |
entity.id | string | 2 |
entity.name | string | 2 |
entity.slug | string | 2 |
entity.stats.members | integer | 2 |
content.title | string | 1 |
media.durationSeconds | number | 1 |
The full schema is in Unified schema.
Pricing#
Every VK endpoint costs 5 credits per call. Free when served from cache (0.2 credit for a cached response over 100 KB). Invalid, failed or not-found calls are not charged. See pricing for credit packs.