VK API

Get VK data as clean JSON with one key: 11 endpoints, 5 credits per call, the same response shape as every other platform.

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#

EndpointWhat it doesParametersCreditsStatus
communityVK community/group: name, description, members, verification.group*5beta
community_membersMembers of a VK community (first page).group*5beta
postA single VK wall post by {owner_id}_{post_id}.owner_id*, post_id*5beta
post_commentsComments on a VK wall post.owner_id*, post_id*5beta
search_communitiesSearch VK communities by keyword.q*5beta
search_postsSearch public VK posts by keyword (newsfeed.search).q*5beta
search_usersSearch VK users by keyword.q*5beta
search_videosSearch VK videos by keyword.q*5beta
userVK user profile: name, status, followers, verification, avatar.user*5beta
user_followersFollowers of a VK user.user*5beta
wallRecent wall posts of a VK user or community.domain*5beta

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.

FieldTypeEndpoints
author.idstring9
content.textstring9
content.createdAtISO 8601 date5
content.idstring5
author.avatarUrlURL4
author.displayNamestring4
author.followersinteger4
author.usernamestring4
author.verifiedboolean4
engagement.likesinteger4
engagement.viewsinteger4
engagement.commentsinteger3
engagement.sharesinteger3
media.thumbnailUrlURL3
entity.descriptionstring2
entity.idstring2
entity.namestring2
entity.slugstring2
entity.stats.membersinteger2
content.titlestring1
media.durationSecondsnumber1

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.