# VK Socials Extractor (`jupri/vkontakte`) Actor

💫 All-in-One VK.com Scraper

- **URL**: https://apify.com/jupri/vkontakte.md
- **Developed by:** [cat](https://apify.com/jupri) (community)
- **Categories:** Videos, Social media
- **Stats:** 229 total users, 11 monthly users, 99.2% runs succeeded, 6 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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

## 💫 Welcome to VK Scraper

<img height="32" src="https://apify.com/actor-badge?actor=jupri~vkontakte" align="right">

![dont be sad readme is here](https://raw.githubusercontent.com/JupriGH/resources/main/cats/catframe.png)

### ▶️ About VK.com

<img width="480" src="https://upload.wikimedia.org/wikipedia/commons/6/60/VK_Full_Logo_%282021-present%29.svg" align="right">

**VK**  (short for its original name  ***VKontakte***;  [Russian](https://en.wikipedia.org/wiki/Russian_language "Russian language"):  ВКонтакте, meaning  *InContact*) is a Russian online  [social media](https://en.wikipedia.org/wiki/Social_media "Social media")  and  [social networking service](https://en.wikipedia.org/wiki/Social_networking_service "Social networking service")  based in  [Saint Petersburg](https://en.wikipedia.org/wiki/Saint_Petersburg "Saint Petersburg"). VK is available in multiple languages but it is predominantly used by  [Russian speakers](https://en.wikipedia.org/wiki/Russophone "Russophone"). VK users can message each other publicly or privately, edit these messages,[\[3\]](https://en.wikipedia.org/wiki/VK_\(service\)#cite_note-3)  create  [groups](https://en.wikipedia.org/wiki/Group_\(online_social_networking\) "Group (online social networking)"), public pages, and events; share and tag images, audio, and video; and play browser-based games.[\[4\]](https://en.wikipedia.org/wiki/VK_\(service\)#cite_note-4)

As of August 2018, VK had at least 500 million accounts.[\[5\]](https://en.wikipedia.org/wiki/VK_\(service\)#cite_note-usercount-5)  As of November 2022, it was the sixth most popular website in Russia.[\[6\]](https://en.wikipedia.org/wiki/VK_\(service\)#cite_note-6)  The network was also popular in  [Ukraine](https://en.wikipedia.org/wiki/Ukraine "Ukraine")  until it was banned by the  [Verkhovna Rada](https://en.wikipedia.org/wiki/Verkhovna_Rada "Verkhovna Rada")  in 2017.[\[7\]](https://en.wikipedia.org/wiki/VK_\(service\)#cite_note-7)

According to  [Semrush](https://en.wikipedia.org/wiki/Semrush "Semrush"), in 2024 VK is the 30th most visited website in the world.[\[8\]](https://en.wikipedia.org/wiki/VK_\(service\)#cite_note-8)

### ▶️ About This Actor

**💫 All-In-One VK.com Scraper**

### ▶️ Parameters

| Name | Type | Description |
|-|-|-|
| `query` | ***array*** | List of `KEYWORD`, `URL` or `COMMAND` |
| `limit` | ***number*** | Limit number of results *(per-query)* |
| `filters` | ***object*** | Search filters

### ▶️ Basic Usage

**Search for videos**

```yaml
{ "query": ["Spongebob Squarepants"], "limit": 10 }
```

**Search for clips**

```yaml
{ "query": ["Dance"], "filters.kind": "clip", "limit": 10 }
```

**Scrape video info**

```yaml
{ "query": ["https://vk.com/video-152205883_456239241"] }
```

### ▶️ Advanced Usage

```
... TO BE CONTINUED ...
```

### 🍂 Support

Feel free to [reach out](https://console.apify.com/actors/1nSEb9lJnGrwIYQvK/issues) to the developer for any issues or suggestions for improvement.

<img src="https://apify-uploads-prod.s3.us-east-1.amazonaws.com/5SxZhwYwpknFk8ek9-cat.gif" width="240">

# Actor input Schema

## `query` (type: `array`):

💡 <b>Search Terms :</b><p><li><code>KEYWORDS</code><br><b>example:</b> <code>"square pants"</code></li><li><code>VIDEO\_ID</code><br><b>example:</b> <code>"-147758547\_456242827"</code></li></p>

## `example` (type: `string`):

💡 QUERY Input Examples

## `search_mode` (type: `string`):

No description

## `limit` (type: `integer`):

💡 Number of results

## `sort` (type: `string`):

No description

## `duration` (type: `string`):

No description

## `date` (type: `string`):

No description

## `hd` (type: `boolean`):

No description

## `city` (type: `string`):

No description

## `min_age` (type: `integer`):

No description

## `max_age` (type: `integer`):

No description

## `birth_day` (type: `integer`):

No description

## `birth_month` (type: `integer`):

No description

## `birth_year` (type: `integer`):

No description

## `gender` (type: `string`):

No description

## `company` (type: `string`):

No description

## `relationship` (type: `string`):

No description

## `with_photo` (type: `boolean`):

No description

## `is_online` (type: `boolean`):

No description

## `dev_proxy_config` (type: `object`):

💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_transform_fields` (type: `array`):

💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>

## `dev_dataset_name` (type: `string`):

💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## `dev_fileupload` (type: `string`):

💡 Upload your file and copy & paste the URL somewhere.

## Actor input object example

```json
{
  "query": [
    "square pants"
  ],
  "limit": 5
}
```

# 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 = {
    "query": [
        "square pants"
    ],
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/vkontakte").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 = {
    "query": ["square pants"],
    "limit": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("jupri/vkontakte").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "query": [
    "square pants"
  ],
  "limit": 5
}' |
apify call jupri/vkontakte --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jupri/vkontakte",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/1nSEb9lJnGrwIYQvK/builds/m08IsdFyfuGJF1ZZo/openapi.json
