# VK on Onekey > 11 endpoints for VK (0 stable, 11 beta), 5 credits each. Category: Social networks. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/vk Reference (Markdown): https://onekey.dev/docs/api/vk.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 11 mapped VK endpoints return each: - `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 ## Endpoints ### vk.community VK community/group: name, description, members, verification. - Price: 5 credits per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/vk/community?group=apiclub` with header `x-api-key: YOUR_API_KEY` - Parameters: - `group` (string, required): VK community id or screen name - Fields returned: `entity.id`, `entity.name`, `entity.slug`, `entity.description`, `entity.stats.members`, `media.thumbnailUrl` - Reference: https://onekey.dev/docs/api/vk/community.md ### vk.community_members Members of a VK community (first page). - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/vk/community_members?group=apiclub` with header `x-api-key: YOUR_API_KEY` - Parameters: - `group` (string, required): VK community id or screen name - Fields returned: `author.id`, `author.username`, `author.displayName`, `content.text`, `author.followers`, `author.avatarUrl`, `author.verified` - Reference: https://onekey.dev/docs/api/vk/community_members.md ### vk.post A single VK wall post by {owner_id}_{post_id}. - Price: 5 credits per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/vk/post?owner_id=-1&post_id=1` with header `x-api-key: YOUR_API_KEY` - Parameters: - `owner_id` (string, required): VK owner id (negative for communities) - `post_id` (string, required): VK post id - Fields returned: `content.id`, `content.text`, `content.createdAt`, `author.id`, `engagement.likes`, `engagement.comments`, `engagement.shares`, `engagement.views` - Reference: https://onekey.dev/docs/api/vk/post.md ### vk.post_comments Comments on a VK wall post. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/vk/post_comments?owner_id=-1&post_id=1` with header `x-api-key: YOUR_API_KEY` - Parameters: - `owner_id` (string, required): VK owner id (negative for communities) - `post_id` (string, required): VK post id - Fields returned: `content.id`, `content.text`, `content.createdAt`, `author.id`, `engagement.likes` - Reference: https://onekey.dev/docs/api/vk/post_comments.md ### vk.search_communities Search VK communities by keyword. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/vk/search_communities?q=music` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search text - Fields returned: `entity.id`, `entity.name`, `entity.slug`, `entity.description`, `entity.stats.members`, `media.thumbnailUrl` - Reference: https://onekey.dev/docs/api/vk/search_communities.md ### vk.search_posts Search public VK posts by keyword (newsfeed.search). - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/vk/search_posts?q=news` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search text - Fields returned: `content.id`, `content.text`, `content.createdAt`, `author.id`, `engagement.likes`, `engagement.comments`, `engagement.shares`, `engagement.views` - Reference: https://onekey.dev/docs/api/vk/search_posts.md ### vk.search_users Search VK users by keyword. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/vk/search_users?q=ivan` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search text - Fields returned: `author.id`, `author.username`, `author.displayName`, `content.text`, `author.followers`, `author.avatarUrl`, `author.verified` - Reference: https://onekey.dev/docs/api/vk/search_users.md ### vk.search_videos Search VK videos by keyword. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/vk/search_videos?q=music` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search text - Fields returned: `content.id`, `content.title`, `content.text`, `content.createdAt`, `author.id`, `engagement.views`, `media.durationSeconds`, `media.thumbnailUrl` - Reference: https://onekey.dev/docs/api/vk/search_videos.md ### vk.user VK user profile: name, status, followers, verification, avatar. - Price: 5 credits per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/vk/user?user=durov` with header `x-api-key: YOUR_API_KEY` - Parameters: - `user` (string, required): VK user id or screen name, e.g. durov - Fields returned: `author.id`, `author.username`, `author.displayName`, `content.text`, `author.followers`, `author.avatarUrl`, `author.verified` - Reference: https://onekey.dev/docs/api/vk/user.md ### vk.user_followers Followers of a VK user. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/vk/user_followers?user=durov` with header `x-api-key: YOUR_API_KEY` - Parameters: - `user` (string, required): VK user id or screen name, e.g. durov - Fields returned: `author.id`, `author.username`, `author.displayName`, `content.text`, `author.followers`, `author.avatarUrl`, `author.verified` - Reference: https://onekey.dev/docs/api/vk/user_followers.md ### vk.wall Recent wall posts of a VK user or community. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/vk/wall?domain=durov` with header `x-api-key: YOUR_API_KEY` - Parameters: - `domain` (string, required): VK user id or screen name, e.g. durov - Fields returned: `content.id`, `content.text`, `content.createdAt`, `author.id`, `engagement.likes`, `engagement.comments`, `engagement.shares`, `engagement.views` - Reference: https://onekey.dev/docs/api/vk/wall.md ## Sample request ```bash curl "https://api.onekey.dev/v1/vk/community?group=apiclub" \ -H "x-api-key: YOUR_API_KEY" ```