# VK Posts Scraper - VKontakte Community Walls (`rolezeiro/vk-scraper`) Actor

Scrape posts from public VK (VKontakte) communities and pages: text, date, likes, reactions, reposts, views, comment counts, photos, videos and links. No login, no personal data, API-based and fast.

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

## Pricing

$2.50 / 1,000 posts

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/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 Posts Scraper

Extract posts from public [VK (VKontakte)](https://vk.com) communities and pages, and export them to JSON, CSV or Excel. Give it a list of communities (news outlets, brands, media pages, public groups) and get each post's text, date, likes, reactions, reposts, views, comment count, photos, videos and links.

Fast and lightweight: it reads VK's own API, 100 posts per request, without a browser, without a VK account and without a proxy.

### What data you get

One row per post:

| Field | Example |
|---|---|
| `id`, `postId`, `url` | -25232578_19006216, https://vk.com/wall-25232578_19006216 |
| `date`, `editedAt` | 2026-10-22T21:00:00.000Z |
| `text` | the full post text, in its original language |
| `likes`, `reactions`, `reposts`, `views`, `comments` | 2, 2, 1, 542, 0 |
| `isPinned`, `isAd` | `true` for the pinned post and for posts marked as advertising |
| `imageUrls` | photo URLs, largest size |
| `attachments` | each photo, video, link, article, poll or document: `type`, `url`, `title`, `imageUrl`, `durationSec`, `views` |
| `isRepost`, `repostOf` | for reposts of another community: its post URL, date, text and photos |
| `communityId`, `communityName`, `communityScreenName`, `communityUrl`, `communityMembers` | 25232578, РБК, rbc, https://vk.com/rbc, 847546 |

**No personal data.** Only posts published by the community itself are saved. Posts written by people on a community wall, author signatures, commenter names, comments and personal profiles are never collected. Media owned by a person is kept only as its type.

### Use cases

- Media monitoring of Russian-language news outlets and public pages
- Brand and competitor tracking in Russia and the CIS
- Engagement analysis: views, likes and reposts per post and per community
- Research on public discourse and information campaigns
- Scheduled runs that collect only the newest posts every day

### How to use

1. **Communities:** add the short names (`rbc`, `lentach`), URLs (`https://vk.com/rbc`, `vk.ru/rbc`) or IDs (`club123`, `public123`).
2. **Max posts per community:** how far back to go on each wall, newest first.
3. **Only posts newer than** (optional): a date (`2026-10-01`) or a period (`24 hours`, `7 days`, `1 month`). The Actor stops going back once it reaches older posts, so a daily schedule with `24 hours` only pays for new posts.

A wrong or deleted name, a closed group or a wall that is turned off is skipped with a warning in the log; the other communities still run.

#### Input example

The last 7 days of three news communities, up to 500 posts each:

```json
{
  "communities": ["rbc", "https://vk.com/lentach", "public15755094"],
  "maxPostsPerCommunity": 500,
  "onlyPostsNewerThan": "7 days",
  "maxItems": 2000
}
```

### Output example

```json
{
  "id": "-25232578_19006216",
  "postId": 19006216,
  "url": "https://vk.com/wall-25232578_19006216",
  "communityId": 25232578,
  "communityName": "РБК",
  "communityScreenName": "rbc",
  "communityUrl": "https://vk.com/rbc",
  "communityMembers": 847546,
  "date": "2026-10-22T21:00:00.000Z",
  "editedAt": null,
  "text": "Население Украины сократилось до 28,5 млн человек...",
  "isPinned": false,
  "isAd": false,
  "likes": 2,
  "reactions": 2,
  "reposts": 1,
  "views": 542,
  "comments": 0,
  "imageUrls": ["https://sun9-6.userapi.com/s/v1/ig2/...jpg"],
  "attachments": [
    {
      "type": "photo",
      "url": "https://sun9-6.userapi.com/s/v1/ig2/...jpg",
      "title": null,
      "imageUrl": "https://sun9-6.userapi.com/s/v1/ig2/...jpg",
      "durationSec": null,
      "views": null
    }
  ],
  "isRepost": false,
  "repostOf": null,
  "scrapedAt": "2026-10-22T21:19:10.374Z"
}
```

### Pricing

**$2.50 per 1,000 posts**: you pay per post saved, with no start fee. Duplicates are never charged, and posts skipped by the date filter are not charged. Set a spending limit on the run and the Actor stops by itself when it reaches it.

### FAQ

**Do I need a VK account or token?** No. The Actor uses the same anonymous access that vk.com gives to visitors who are not logged in.

**Can I scrape a personal profile, comments or search all of VK?** No. Only public community walls are supported, so that no personal data is collected. VK's anonymous access also does not allow global post search.

**Can I scrape closed or private groups?** No. Their walls are only visible to members.

**How far back can I go?** As far as the community wall goes. Large news pages have hundreds of thousands of posts; use **Max posts per community** and **Only posts newer than** to control the size.

**How fast is it?** About 1,000 posts in 10 to 20 seconds.

**Is the text translated?** No. Text keeps the original language, usually Russian. Numbers and dates are plain values.

**What if VK asks for a captcha?** The Actor does not solve captchas. It stops, keeps the posts already saved and ends with a clear error. Try again later or with a proxy.

**Something broke or a field is missing?** Open an issue in the Issues tab. The Actor is tested against the live API every day.

# Actor input Schema

## `communities` (type: `array`):

Public VK communities or pages to scrape. Use the short name (rbc), the URL (https://vk.com/rbc or vk.ru/rbc) or the numeric ID (club123, public123, 123). Personal profiles are not supported.

## `maxPostsPerCommunity` (type: `integer`):

Newest posts to collect from each community wall (a pinned post counts as one of them).

## `onlyPostsNewerThan` (type: `string`):

Skip older posts and stop going back in time. A date (2026-10-01) or a relative period (24 hours, 7 days, 2 weeks, 1 month). Leave empty for no date limit.

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

Maximum number of posts in total, across all communities.

## `proxyConfiguration` (type: `object`):

Not needed: the VK API answers Apify servers directly. Use a proxy only if you see blocking or captcha errors.

## Actor input object example

```json
{
  "communities": [
    "rbc"
  ],
  "maxPostsPerCommunity": 30,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `posts` (type: `string`):

Posts collected from the community walls.

# 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 = {
    "communities": [
        "rbc"
    ],
    "maxPostsPerCommunity": 30,
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rolezeiro/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 = {
    "communities": ["rbc"],
    "maxPostsPerCommunity": 30,
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("rolezeiro/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 '{
  "communities": [
    "rbc"
  ],
  "maxPostsPerCommunity": 30,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call rolezeiro/vk-scraper --silent --output-dataset

```

## MCP server setup

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