Skip to content
OSINTtools.io

VK API API

VKontakte's official API: look up profiles by ID or short name, read walls and search public posts, with JSON responses.

Base URL
https://api.vk.ru/method
Sign-in
Bearer token
Format
REST
Endpoints
2

Compiled by OSINTtools.io editors from dev.vk.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The VK API is VKontakte's method API. Each method works on one kind of VK object (users, groups, wall posts and so on). This reference covers the two user lookups that matter for an investigation: users.get returns profile information for given IDs or screen names, and users.search finds users matching a name and optional filters such as city, age or workplace. What a call can return depends on the access key and on the profile's privacy settings.

Calls are GET or POST requests to https://api.vk.ru/method/<method name> with the parameters in the query string. Every request must carry the API version in v (the docs name 5.199 as current) and an access key, which the docs say is sent in the Authorization: Bearer header. Keys come from OAuth 2.1 authorization; the key types are service, user and community keys. Responses are JSON with the data under response, or an error object. The method names and parameters here come from the official VKCOM/vk-api-schema repository.

The docs state rate limits per second by key type and say that exceeding them returns error 6. VK's docs site did not load for automated readers, so the request format and limits were read from an archived copy of https://dev.vk.com/en/api/api-requests taken on 2026-05-18 (read on 2026-11-29). The docs also say a VK API policy update on 2 April 2026 phases out methods that are not in the public documentation.

Quick start

  1. Get a key

    Create an account with VK API and copy your bearer token. Where to get it

  2. Make your first request

    Profile information for users. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.vk.ru/method/users.get?v=5.199' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "response": [
        {
          "id": 1000001,
          "first_name": "Alex",
          "last_name": "Example",
          "bdate": "1.1.2000"
        }
      ]
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Access keys come from OAuth 2.1; the v parameter (API version) is also required on every call.

Get a key from VK API

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

User access key: 3 requests per second. Community key: 20 per second. Service key: 5 to 60 per second depending on the app's user count. Exceeding it returns error 6.

Errors

StatusMeaning
200Errors are returned in a JSON error object; error code 6 means too many requests per second

Users

  • Takes: Username
  • Passive: the target is not contacted
  • Plan: User, community or service access key

Returns detailed information on users. With no user_ids it returns the user the access key belongs to. Which fields come back depends on the key and on privacy settings.

Query parameters

vstringrequired

API version

Example: 5.199Default: 5.199
user_idsstringtakes your username

Comma-separated user IDs or screen names. Up to 1000

Example: example_screen_name
fieldsstring

Comma-separated profile fields to return, such as nickname, screen_name, sex, bdate

Example: bdate,screen_name
name_casestring

Case for declension of the name: nom (default), gen, dat, acc, ins, abl

Example: nom
from_group_idinteger

Community ID the request is made on behalf of

Example: 0Default: 0
Response fields · 4Show

idinteger

User ID

first_namestring

First name

last_namestring

Last name

bdatestring

Birth date, when requested and visible

curl 'https://api.vk.ru/method/users.get?v=5.199' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "response": [
    {
      "id": 1000001,
      "first_name": "Alex",
      "last_name": "Example",
      "bdate": "1.1.2000"
    }
  ]
}