# VK API API reference

> 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…

Source: https://osinttools.io/apis/vk-api/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/vk-api/

- Base URL: https://api.vk.ru/method
- Authentication: Bearer token in the `Authorization` header. Get a key: https://dev.vk.com/en/api/overview Access keys come from OAuth 2.1; the v parameter (API version) is also required on every call.
- Rate limits: 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.
- Vendor docs: https://dev.vk.com/en/method
- JSON Schema SDK: vk-api-schema, https://github.com/VKCOM/vk-api-schema

## Overview

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.

## Errors

| Status | Meaning |
| --- | --- |
| 200 | Errors are returned in a JSON error object; error code 6 means too many requests per second |

## Users

### Profile information for users

`GET /users.get`

- Takes: Username
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `v` | query | string | yes | API version Example: 5.199 |
| `user_ids` | query | string | no | Comma-separated user IDs or screen names. Up to 1000 Example: example_screen_name |
| `fields` | query | string | no | Comma-separated profile fields to return, such as nickname, screen_name, sex, bdate Example: bdate,screen_name |
| `name_case` | query | string | no | Case for declension of the name: nom (default), gen, dat, acc, ins, abl Example: nom |
| `from_group_id` | query | integer | no | Community ID the request is made on behalf of Example: 0 |

Response fields:

- `response[].id` (integer): User ID
- `response[].first_name` (string): First name
- `response[].last_name` (string): Last name
- `response[].bdate` (string): Birth date, when requested and visible

```bash
curl 'https://api.vk.ru/method/users.get?v=5.199' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

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

### Search users by name and filters

`GET /users.search`

- Takes: Name, Username
- Footprint: passive (the target is not contacted)
- Plan: User access key

Returns a list of users matching the search criteria. Accepts a user access key.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `v` | query | string | yes | API version Example: 5.199 |
| `q` | query | string | no | Search query string, such as a person's name Example: Alex Example |
| `sort` | query | integer | no | 1 sorts by date registered, 0 by rating Example: 0 One of: 0, 1 |
| `offset` | query | integer | no | Offset for a subset of results Example: 0 |
| `count` | query | integer | no | Number of users to return Example: 20 |
| `fields` | query | string | no | Comma-separated profile fields to return Example: bdate,screen_name |
| `city` | query | integer | no | City ID Example: 1 |
| `country` | query | integer | no | Country ID Example: 1 |
| `hometown` | query | string | no | City name as a string Example: Example City |
| `sex` | query | integer | no | 1 female, 2 male, 0 any (default) Example: 0 One of: 0, 1, 2 |
| `age_from` | query | integer | no | Minimum age Example: 20 |
| `age_to` | query | integer | no | Maximum age Example: 40 |
| `birth_year` | query | integer | no | Year of birth Example: 2000 |
| `company` | query | string | no | Name of the company where users work Example: Example Corp |
| `position` | query | string | no | Job position Example: Engineer |
| `online` | query | boolean | no | 1 for online users only Example: 0 |
| `has_photo` | query | boolean | no | 1 for users with a photo only Example: 0 |
| `group_id` | query | integer | no | Community ID to search within Example: 1 |

Response fields:

- `response.count` (integer): Total number of available results
- `response.items[].id` (integer): User ID
- `response.items[].first_name` (string): First name
- `response.items[].last_name` (string): Last name

```bash
curl 'https://api.vk.ru/method/users.search?v=5.199' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "response": {
    "count": 1,
    "items": [
      {
        "id": 1000001,
        "first_name": "Alex",
        "last_name": "Example"
      }
    ]
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
