# VK Scraper: Community & Profile Posts (`tagadanar/vk-scraper`) Actor

Export public VK community and profile posts with text, dates, likes, reposts, views, media links and author names. Page through older posts. $1.50 per 1,000 posts plus $0.001 per run. No VK account required.

- **URL**: https://apify.com/tagadanar/vk-scraper.md
- **Developed by:** [Tagada Data](https://apify.com/tagadanar) (community)
- **Categories:** Social media, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 94.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 public vk posts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## VK Scraper

Export public VK community and profile posts for social listening, content research and marketing reports. Enter community URLs or screen names and get one row per post, including older wall posts.

**$1.50 per 1,000 posts plus $0.001 per run.** Infrastructure costs are included. Bronze, Silver and Gold prices are $1.35, $1.20 and $1.05 per 1,000 posts. Only delivered posts incur a post charge. The run fee also applies to invalid inputs and runs that return no posts.

```json
{
  "targets": ["durov", "kinopoisk"],
  "maxPosts": 20,
  "maxPostsPerTarget": 10
}
```

Use `maxPostsPerTarget` to page further into each wall. For example, increasing it to 30 asks for older posts as well as the first page. Targets are processed in input order until the global `maxPosts` limit is reached. If you want results from every target, allow enough total posts for the whole list.

### Input

| Field | Meaning |
| --- | --- |
| `targets` | Required list of public community/profile URLs, screen names, or owner IDs. Examples: `durov`, `kinopoisk`, `https://vk.com/club108468`, `-108468`, `id1`, `https://vk.ru/wall-108468`. VK.com, VK.ru and their mobile URLs are accepted. |
| `maxPosts` | Maximum unique posts across the run. Default 100; maximum 10,000. |
| `maxPostsPerTarget` | Maximum posts from each wall. Default 100; maximum 500. |

The JSON interface also accepts a single target, comma/newline-separated targets, or URL objects such as `{"url":"https://vk.com/durov"}`. Direct post permalinks are not accepted as wall targets.

### Output

Each dataset row describes one unique post. Export the dataset as JSON, CSV or Excel through Apify.

| Fields | What you get |
| --- | --- |
| `target`, `id`, `ownerId`, `url` | Input target, stable post ID, wall owner and post permalink. Community owner IDs are negative. |
| `text`, `publishedDate`, `dateRaw` | Visible post text, calendar date in `YYYY-MM-DD` format when available, and VK's original date label. No time of day is invented. |
| `authorName`, `authorUrl` | Post author and VK profile/community link. |
| `likes`, `reposts`, `views` | Available engagement counts. Values may be rounded when VK shows an abbreviated count. |
| `likesRaw`, `repostsRaw`, `viewsRaw` | Original display values, for example `243,8K`. |
| `commentsCount`, `visibleCommentsCount` | Total comments only if VK exposes it; otherwise `null`. Visible comment previews are counted separately and are not a total. Comment text is not collected. |
| `imageUrls`, `videoUrls`, `links`, `attachmentUrls` | Visible image URLs, VK video links, outbound URLs and attachment links. These are metadata; media files are not downloaded. |
| `isRepost` | Whether the post contains an embedded repost. Nested reposts are not emitted as extra posts. |
| `sourceName`, `sourceDescription`, `sourceMembersCount` | Public community/profile name, description and member/follower count when available. |
| `retrievedAt` | Retrieval time in UTC. |

Unavailable values are `null`; missing media links use empty arrays. VK may expose only part of a post, omit an attachment or hide a counter. The export reflects what the public page returns.

### Coverage and limits

Only public pages are supported. No VK account, login cookies or API token is requested. VK-wide keyword search redirects to login and is not offered. Private, deleted, restricted or unreadable walls are reported in the run status. If every wall is unreadable and emptiness cannot be proved, the run fails with a named reason.

The actor walks the wall's offset pages, compares post IDs, and stops at the requested limit, the end of exposed results, a repeated page, a refusal, the run clock or a safety cap. A partial run keeps posts already delivered and names the skipped work. It does not promise a complete archive of posts that VK hides from visitors.

Private Apify validation on 2026-11-05 exported 20 posts with the example input (run `B8a7CGWpGU58gvmwZ`), 200 distinct posts across ten pages per wall (`DNrJKemn0wftrzi2b`), and 2 posts with a one-post-per-wall limit (`jV6gBSY3KbNiLefdL`). Invalid input ended successfully with an explicit input-error status and no posts (`qK5ZPc8A9e3RMiXXQ`). The earlier route proof was `NhLsCYY1FPCTxYJFX`. Across these public-page checks, all 28 requests succeeded and no captcha challenge was observed. This small sample covers these two walls and does not establish a long-run captcha rate.

Questions or a broken public wall? Open an issue on this actor with the target and run URL.

# Changelog

This Actor's version history is a separate document: https://apify.com/tagadanar/vk-scraper/changelog.md

# Actor input Schema

## `targets` (type: `array`):

Public VK community/profile URLs, screen names (durov, kinopoisk), owner IDs (-108468), or club/public/event/id forms. VK.com and VK.ru supported. Post URLs and network-wide search are not supported.

## `maxPosts` (type: `integer`):

Global limit across all targets; duplicate posts are delivered once. Targets are processed in input order.

## `maxPostsPerTarget` (type: `integer`):

Limit for each public wall, paging through older posts when necessary. Stop sooner if VK stops exposing posts.

## Actor input object example

```json
{
  "targets": [
    "durov",
    "kinopoisk"
  ],
  "maxPosts": 20,
  "maxPostsPerTarget": 10
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# 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 = {
    "targets": [
        "durov",
        "kinopoisk"
    ],
    "maxPosts": 20,
    "maxPostsPerTarget": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("tagadanar/vk-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 = {
    "targets": [
        "durov",
        "kinopoisk",
    ],
    "maxPosts": 20,
    "maxPostsPerTarget": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("tagadanar/vk-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 '{
  "targets": [
    "durov",
    "kinopoisk"
  ],
  "maxPosts": 20,
  "maxPostsPerTarget": 10
}' |
apify call tagadanar/vk-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tagadanar/vk-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/BUtpdQphyHSDr8FBC/builds/hcduObuhi3gEafMDR/openapi.json
