# VK API

Find videos and read public wall posts using keywords and identifiers to trace Russian content and community discussions.

Get videos and wall posts by keyword or identifier. Video search finds videos only, not the full text of wall posts.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "vk", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/vk-api](https://everyinfra.com/en/vk-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### video_search — Video search
Search VK videos by keyword for title, duration, publish date, views, likes, reposts and the owning user or community. It searches videos only, not wall posts, groups or profiles, and does not download the media.
- Sync delivery · Price: $16 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): Specifies the search query for the video_search action. This parameter only searches videos; it does not perform general text searches across wall posts, groups, or user profiles.
- Returns fields: id, url, title, text, media_type, duration_sec, duration_seconds, posted_at, view_count, like_count, repost_count, cover_image_url, owner_id, owner_url, platform
- Capability page: [https://everyinfra.com/en/vk-api/video_search](https://everyinfra.com/en/vk-api/video_search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/vk-api/video_search.md)

### user_posts — Posts by user
Get VK wall posts of a user or community as JSON. Each post has text, media links, likes, comments, reposts, views and author type. Pass a short name, a numeric club or owner ID, or a vk.com wall link. Closed profiles are not accessible.
- Sync delivery · Price: $5.1 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `username` (required): Identifies the target public profile or community for the user_posts action. Accepts a short name, a numeric club ID, a numeric owner ID, or a full profile/wall URL (e.g., vk.com links), rather than just personal user handles.
- Returns fields: id, url, text, posted_at, like_count, comment_count, repost_count, view_count, media_urls, author_id, author_name, author_type, author_url, author_avatar, platform
- Capability page: [https://everyinfra.com/en/vk-api/user_posts](https://everyinfra.com/en/vk-api/user_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/vk-api/user_posts.md)

## VK API questions

### What can I retrieve with the VK API?

Set `platform` to `vk`. The current catalog lists video search and posts by user. These action names identify different VK objects or views; they are not interchangeable search modes.

### Which input starts the VK `video_search` request?

Specifies the search query for the video_search action. This parameter only searches videos; it does not perform general text searches across wall posts, groups, or user profiles. Send it as `keyword` inside `params`.

### Which fields can VK `video_search` return?

Its declared schema includes `title`, `text`, `media_type`, and `duration_sec`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every VK action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=vk
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
