# VK Video Scraper (`easyapi/vk-video-scraper`) Actor

Scrape videos from VK.com (VKontakte) with advanced search capabilities. Extract comprehensive video metadata including titles, descriptions, statistics, video URLs, thumbnails and more. Perfect for content analysis and social media monitoring.

- **URL**: https://apify.com/easyapi/vk-video-scraper.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Social media, Videos
- **Stats:** 67 total users, 2 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## VK Video Scraper 🎥

Extract videos and their metadata from VK.com (VKontakte), Russia's largest social network. This powerful scraper helps you gather comprehensive video data based on search keywords.

### 🔥 Features

- Search videos by keywords
- Extract detailed video metadata
- Support multiple video quality formats
- Collect engagement metrics (views, likes, comments)
- Get video thumbnails in various sizes
- Subtitle information when available
- Built-in anti-blocking mechanisms

### 📊 Output Data

For each video, you'll get:

- Basic information (ID, title, description)
- Publishing details (date, duration)
- Engagement metrics (views, likes, reposts, comments)
- Video URLs in multiple qualities (144p to 720p)
- HLS stream URL
- Multiple thumbnail sizes
- Subtitle information
- Video dimensions
- Interaction permissions
- Scraping timestamp

### 💡 Use Cases

- Content research and analysis
- Social media monitoring
- Video content aggregation
- Market research
- Competitor analysis
- Trend tracking

### 💪 Benefits

- Ready-to-use structured data
- High success rate
- Efficient resource usage
- Regular maintenance and updates

### 🔧 Input Parameters

- `keywords`: Array of search terms to find videos
- `maxItems`: Maximum number of videos to scrape

#### Input Example

A full explanation of an input example in JSON.

```
{
    "keywords": [
       "fashion"
    ],
    "maxItems": 50
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```
[
	{
		"videoId": 456240913,
		"ownerId": -5509733,
		"title": "Fashion",
		"description": "",
		"duration": 120,
		"date": 1690475473,
		"views": 1667,
		"likes": 4,
		"reposts": 0,
		"comments": 0,
		"playerUrl": "https://vk.com/video_ext.php?oid=-5509733&id=456240913&hash=8dbae4ff704cda11&__ref=vk.web2",
		"videoUrls": {
			"mp4_144": "https://vkvd517.okcdn.ru/?expires=1732548664930&srcIp=111.197.248.88&pr=40&srcAg=CHROME_MAC&ms=185.226.55.155&type=4&subId=5205896858131&sig=ZC3GHUfx5eA&ct=0&urls=185.226.52.152&clientType=13&appId=512000384397&zs=43&id=5203890014739",
			"mp4_240": "https://vkvd517.okcdn.ru/?expires=1732548664930&srcIp=111.197.248.88&pr=40&srcAg=CHROME_MAC&ms=185.226.55.155&type=0&subId=5205896858131&sig=scwboEbnS2c&ct=0&urls=185.226.52.152&clientType=13&appId=512000384397&zs=43&id=5203890014739",
			"mp4_360": "https://vkvd517.okcdn.ru/?expires=1732548664930&srcIp=111.197.248.88&pr=40&srcAg=CHROME_MAC&ms=185.226.55.155&type=1&subId=5205896858131&sig=0V8LcK61KUM&ct=0&urls=185.226.52.152&clientType=13&appId=512000384397&zs=43&id=5203890014739",
			"mp4_480": "https://vkvd517.okcdn.ru/?expires=1732548664930&srcIp=111.197.248.88&pr=40&srcAg=CHROME_MAC&ms=185.226.55.155&type=2&subId=5205896858131&sig=MSlOngtR3hg&ct=0&urls=185.226.52.152&clientType=13&appId=512000384397&zs=43&id=5203890014739",
			"mp4_720": "https://vkvd517.okcdn.ru/?expires=1732548664930&srcIp=111.197.248.88&pr=40&srcAg=CHROME_MAC&ms=185.226.55.155&type=3&subId=5205896858131&sig=iCG_5zM8FAs&ct=0&urls=185.226.52.152&clientType=13&appId=512000384397&zs=43&id=5203890014739",
			"hls": "https://vkvd517.okcdn.ru/video.m3u8?cmd=videoPlayerCdn&expires=1732548664930&srcIp=111.197.248.88&pr=40&srcAg=CHROME_MAC&ms=185.226.55.155&mid=7010157799443&type=2&sig=m6FrIPFu17k&ct=8&urls=185.226.52.152&clientType=13&zs=43&id=5203890014739"
		},
		"thumbnails": [
			{
				"url": "https://i.mycdn.me/getVideoPreview?id=5203890014739&idx=0&type=39&tkn=mGMOfD6pAL6FqRmPGUfLJNlgtDI&fn=vid_s",
				"width": 130,
				"height": 96
			},
			{
				"url": "https://i.mycdn.me/getVideoPreview?id=5203890014739&idx=0&type=39&tkn=mGMOfD6pAL6FqRmPGUfLJNlgtDI&fn=vid_m",
				"width": 160,
				"height": 120
			},
			{
				"url": "https://i.mycdn.me/getVideoPreview?id=5203890014739&idx=0&type=39&tkn=mGMOfD6pAL6FqRmPGUfLJNlgtDI&fn=vid_l",
				"width": 320,
				"height": 240
			},
			{
				"url": "https://i.mycdn.me/getVideoPreview?id=5203890014739&idx=0&type=39&tkn=mGMOfD6pAL6FqRmPGUfLJNlgtDI&fn=vid_x",
				"width": 800,
				"height": 450
			},
			{
				"url": "https://i.mycdn.me/getVideoPreview?id=5203890014739&idx=0&type=39&tkn=mGMOfD6pAL6FqRmPGUfLJNlgtDI&fn=vid_w",
				"width": 1280,
				"height": 720
			},
			{
				"url": "https://i.mycdn.me/getVideoPreview?id=5203890014739&idx=0&type=39&tkn=mGMOfD6pAL6FqRmPGUfLJNlgtDI&fn=vid_t",
				"width": 320,
				"height": 180
			},
			{
				"url": "https://i.mycdn.me/getVideoPreview?id=5203890014739&idx=0&type=39&tkn=mGMOfD6pAL6FqRmPGUfLJNlgtDI&fn=vid_u",
				"width": 720,
				"height": 405
			}
		],
		"subtitles": [
			{
				"language": "ru",
				"title": "ru_auto.vtt",
				"url": "https://vkvd517.okcdn.ru/?expires=1732548664930&srcIp=111.197.248.88&srcAg=CHROME_MAC&ms=185.226.55.155&mid=7010157799443&type=2&ix=0&subId=5205896858131&sig=APASp0pY5n0&ct=13&urls=185.226.52.152&clientType=13&appId=512000384397&zs=43&id=5205896858131",
				"isAuto": true
			}
		],
		"width": 1280,
		"height": 720,
		"canLike": true,
		"canRepost": true,
		"canDownload": true,
		"scrapedAt": "2024-11-22T15:31:06.476Z"
	},
    ...
]
```

### Related Actors

- 🎥 [VK Video Downloader](https://apify.com/easyapi/vk-video-downloader) - Extract and download high-quality videos from VK.com and VKVideo.ru in multiple formats.
- 🎥 [VK Video Profile Scraper](https://apify.com/easyapi/vk-video-profile-scraper) - Scrape VK Video profiles and groups data including statistics like video counts, followers, views, and likes.
- 🎥 [VK Clips Search Scraper](https://apify.com/easyapi/vk-clips-search-scraper) - Scrape short videos from VK Clips Search with advanced filtering and rich metadata.
- 🔍 [VK Posts Scraper](https://apify.com/easyapi/vk-posts-scraper) - Extract posts and images from VK social network based on keywords.
- 🔍 [VK People Scraper](https://apify.com/easyapi/vk-people-scraper) - Scrape user profiles from VK.com based on search keywords.
- 🚀 [VK Follower Scraper](https://apify.com/easyapi/vk-follower-scraper) - Extract VK group/profile followers data including user profiles and details.
- 🎮 [VK Games Search Scraper](https://apify.com/easyapi/vk-games-search-scraper) - Scrape VK Games search results and game details.
- 🛍️ [VK Market Search Scraper](https://apify.com/easyapi/vk-market-search-scraper) - Scrape VK.com marketplace listings with advanced search capabilities.
- 🎥 [All-in-One Media Downloader](https://apify.com/easyapi/all-in-one-media-downloader) - Download videos and media from various platforms including VK.
- 🎥 [YouTube Video Data Scraper](https://apify.com/easyapi/youtube-video-data-scraper) - A powerful video data extractor for comprehensive metadata collection.
- 📺 [YouTube Trending Videos/Shorts Scraper](https://apify.com/easyapi/youtube-trending-videos-shorts-scraper) - Extract trending videos and shorts from YouTube.
- 🎥 [TikTok Videos Scraper](https://apify.com/easyapi/tiktok-videos-scraper) - Scrape TikTok video search results with advanced filtering capabilities.
- 🎥 [Facebook Videos Scraper](https://apify.com/easyapi/facebook-videos-scraper) - Scrape Facebook Watch videos data including video details and metrics.
- 🎥 [Instagram Videos Downloader](https://apify.com/easyapi/instagram-videos-downloader) - A powerful Instagram video downloader for posts, reels, and stories.
- 🎥 [Vimeo Video Downloader](https://apify.com/easyapi/vimeo-video-downloader) - Extract and download Vimeo videos in multiple quality options.

# Actor input Schema

## `keywords` (type: `array`):

List of keywords to search for videos

## `maxItems` (type: `integer`):

Maximum number of videos to scrape (default: 50)

## Actor input object example

```json
{
  "keywords": [
    "fashion"
  ],
  "maxItems": 50
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/vk-video-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("easyapi/vk-video-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call easyapi/vk-video-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,easyapi/vk-video-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/7Ab57Qljw7CndeAwu/builds/dlbzlN6yaKcmKFmIU/openapi.json
