# VK Video search API (vk.video_search)

- Canonical 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)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "vk", "action": "video_search", "params": {...}}
- Price: $0.016 per call ($16 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 10, max 50 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=vk&action=video_search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 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. |
| limit | integer (1–50) | no | 10 | The most rows to return in this call, an integer from 1 to 50. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| media_type | platform-native meaning |
| duration_sec | platform-native meaning |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| view_count | Views or plays. null means not disclosed, not 0. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| repost_count | Reposts (as distinct from quote posts). null means not disclosed. |
| cover_image_url | platform-native meaning |
| owner_id | platform-native meaning |
| owner_url | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "vk",
  "action": "video_search",
  "params": {
    "keyword": "уроки гитары"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "vk",
        "action": "video_search",
        "params": {
            "keyword": "уроки гитары",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-07T14:47:42Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 10. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "vk",
  "action": "video_search",
  "results": [
    {
      "id": "•••",
      "url": "https://vk.com/video-55568446_456241316",
      "title": "Стрыкало - Наше лето 🎶 кавер на гитаре и аккорды",
      "text": "Аккорды: https://disk.yandex.ru/i/5an1tLBsaEugQw\nШкола про гитару: https://pro-gitaru.ru/startyv\nМой Boosty тут: https://boosty.to/pro-gitaru\nНаш Телеграм канал: https://t.me/pro_gitaru\nКанал в MAX: https://max.ru/progitaru\n============================================\nОсновной ка…",
      "media_type": "video",
      "duration_sec": 144,
      "posted_at": "2026-11-07T15:00:00+00:00",
      "view_count": 10,
      "like_count": 3,
      "repost_count": 0,
      "cover_image_url": "https://iv.okcdn.ru/getVideoPreview?id=20878830144069&idx=0&type=39&tkn=X48yCkHmO3ysQCnQws28tAnP1-Y&fn=vid_w&scl=4",
      "owner_id": "•••",
      "owner_url": "https://vk.com/•••",
      "platform": "vk",
      "duration_seconds": 144
    },
    {
      "id": "•••",
      "url": "https://vk.com/video-55568446_456241315",
      "title": "Абдулов - Мир без любви 🎶 кавер на гитаре и аккорды",
      "text": "Текст и аккорды: https://pro-gitaru.ru/?p=93435\nШкола про гитару: https://pro-gitaru.ru/startyv\nМой Boosty тут: https://boosty.to/pro-gitaru\nНаш Телеграм канал: https://t.me/pro_gitaru\nКанал в MAX: https://max.ru/progitaru\n============================================\nОсновной кан…",
      "media_type": "video",
      "duration_sec": 164,
      "posted_at": "2026-11-06T13:00:00+00:00",
      "view_count": 111,
      "like_count": 4,
      "repost_count": 0,
      "cover_image_url": "https://iv.okcdn.ru/getVideoPreview?id=20878743177797&idx=0&type=39&tkn=mers2oD6RWs-8qm1UwnbUNdDofg&fn=vid_w&scl=4",
      "owner_id": "•••",
      "owner_url": "https://vk.com/•••",
      "platform": "vk",
      "duration_seconds": 164
    }
  ],
  "count": 10,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=vk
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
