# VK Posts Scraper: Walls, Comments & Community Stats, No Login (`benthepythondev/vk-posts-scraper`) Actor

Returns public VK (VKontakte) wall posts from communities, public pages, profiles or post links: text, date, likes, comments, reposts, views, photos and videos, reposted originals, community member count, plus optional comments. Date and keyword filters. No login, no cookies.

- **URL**: https://apify.com/benthepythondev/vk-posts-scraper.md
- **Developed by:** [Ben](https://apify.com/benthepythondev) (community)
- **Categories:** Social media, Marketing, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.40 / 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.
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 Posts Scraper: Walls, Comments & Community Stats, No Login

**VK Posts Scraper exports public posts from VK (VKontakte), Russia's largest social network.** Give it community handles, profile links, owner ids or post links. You get one row per post with the text, date, likes, comments, reposts, views, photos and videos, the original of every repost, and the wall's member count. You can also add the newest comments under each post. It needs no VK account, no cookies and no browser.

**Price:** $2.50 per 1,000 posts on the Free plan ($2.25 Bronze, $2.13 Silver, $2.00 Gold and higher). Comments are optional at $1.50 per 1,000 ($1.20 on Gold). There is no start fee. A wall that is private, missing or empty costs nothing.

Export to JSON/CSV/Excel, run on a schedule, call via API, or connect to Make, Zapier or n8n.

### 🔎 What is VK Posts Scraper?

VK Posts Scraper is an Apify Actor that reads public VK walls the way a logged-out visitor sees them. It calls VK's own API with the anonymous visitor token that vk.com hands every browser, so it gets VK's exact numbers rather than text copied off the page. One call returns up to 100 posts, and a 1,000-post wall takes about 20 seconds.

#### What data does it extract?

- **Post:** `postId`, `sourceUrl`, `text` (VK markup turned into plain text), `postedAt`, `editedAt`, `isPinned`, `isAd`, `hashtags`
- **Engagement:** likes, comments, reposts and views, plus reaction counts
- **Media:** photos at their largest size, videos with title, duration, views and thumbnail, links, documents, polls
- **Reposts:** the original post's id, link, text, author, date and media in `repost`
- **Wall owner:** community or profile name, type, `membersCount` or `followersCount`, verified badge, activity, site and description. This is free and comes from the same call.
- **Comments (optional):** text, date, likes, reply count and the commenter's public id and link, inside the post row

### How is it different from other VK scrapers?

| What users report about VK scrapers | What this Actor does |
|---|---|
| A leading VK Actor's users reported "Breaking input/output schema changes, ~3× runtime regression, and missing migration state persistence" | The output fields are fixed and covered by tests. `rawPost` stays available as an option. Progress is saved after every page, so a server move resumes where it stopped. |
| "fetches up to 100 posts for each target before applying the date window" | Without filters it asks VK for exactly the posts you want (5 wanted, 5 read). With a start date it stops at the first older post. |
| Comment counts are missing "when VK shows it to anonymous visitors (most walls hide it)" | The comment count comes from VK's API and is filled on every post. |
| Community size needs a second Actor | `wallOwner.membersCount` is on every row at no extra cost |
| Per-run start fees | No start fee. You pay per post saved. |

Field names follow the common VK scraper layout (`targets`, `maxItemsPerTarget`, `publishedAfter`, `postId`, `sourceUrl`, `postedAt`, `author`, `engagement`, `media`), so switching takes little code.

### ⬇️ Input

| Field | What it does | Default |
|---|---|---|
| `targets` | Handles (`vk`, `durov`), community or profile links (`https://vk.com/apiclub`, `https://vk.com/club22822305`, `https://vk.com/id1`), owner ids (`-22822305`), wall links, post links (`https://vk.com/wall-22822305_1739735`). vk.com and vk.ru both work. | `["vk", "apiclub"]` |
| `maxItemsPerTarget` | Most posts per wall, newest first | 20 |
| `maxItems` | Most posts in the whole run (0 = no run limit) | 20 in the form, none through the API |
| `publishedAfter` / `publishedBefore` | Date window, YYYY-MM-DD in UTC | none |
| `containsText` | Only posts of the wall containing a word or phrase. Uses VK's wall search, about 10 s per 100 posts. | none |
| `includePinnedPosts` / `includeReposts` | Keep pinned posts and reposts | on |
| `includeComments` + `maxCommentsPerPost` | Newest comments inside each post row | off, 20 |
| `includeWallOwner` | Community or profile stats on every row | on |
| `includeRawPost` | VK's full post object in `rawPost` | off |

#### Example input

```json
{
  "targets": ["https://vk.com/apiclub", "https://vk.com/wall-22822305_1739735"],
  "maxItemsPerTarget": 50,
  "publishedAfter": "2026-10-01",
  "includeComments": true,
  "maxCommentsPerPost": 10
}
```

### ⬆️ Output

```json
{
  "target": "vk",
  "targetType": "handle",
  "postId": "-22822305_1739770",
  "ownerId": -22822305,
  "sourceUrl": "https://vk.com/wall-22822305_1739770",
  "text": "Готовьтесь: впереди 100 часов игры в GTA 6 🎮 ...",
  "postedAt": "2026-11-18T10:03:49Z",
  "editedAt": "2026-11-19T08:11:56Z",
  "isPinned": false,
  "isRepost": false,
  "isAd": false,
  "postType": "post",
  "author": {"id": -22822305, "type": "community", "name": "ВКонтакте", "screenName": "vk", "profileUrl": "https://vk.com/vk", "isVerified": true},
  "engagement": {"likes": 203, "comments": 207, "reposts": 86, "views": 134834, "reactions": [{"id": 0, "count": 199}, {"id": 4, "count": 4}]},
  "hashtags": [],
  "media": [{"type": "video", "id": 456253759, "ownerId": -212496568, "url": "https://vk.com/video-212496568_456253759", "title": "100 часов GTA 6 в эфире VK Play", "views": 851923}],
  "repost": null,
  "wallOwner": {"id": -22822305, "type": "community", "communityType": "public page", "name": "ВКонтакте", "screenName": "vk", "url": "https://vk.com/vk", "membersCount": 14147844, "isVerified": true, "isClosed": false},
  "comments": [{"commentId": 1740653, "text": "Почему стало долго загружаться видео на канал ...", "postedAt": "2026-11-20T08:54:57Z", "likes": 0, "replies": 0, "authorId": 8892359, "authorType": "profile", "authorUrl": "https://vk.com/id8892359", "replyToCommentId": null, "media": []}],
  "scrapedAt": "2026-11-20T09:00:00Z"
}
```

`comments` appears only with `includeComments`, and `rawPost` only with `includeRawPost`. Each run also writes a `SUMMARY` record with the posts and comments saved and the walls that were hidden, missing or empty.

### 🤖 For AI agents

No input is required. Every field has a default, and no login or API key is needed. Copy this input:

```json
{"targets": ["vk"], "maxItemsPerTarget": 10}
```

The Actor returns one dataset row per VK post. Its status message says how many posts were saved and which walls were private or not found.

### 💡 Use cases

- 📈 **Social listening and brand monitoring** in Russia and the CIS: follow competitors' communities and track likes, views and comments over time
- 📰 **Media and OSINT research:** archive public pages of news outlets, officials and organisations with exact dates and edit times
- 🧪 **Academic and NLP datasets:** clean post text plus comments for sentiment and topic models
- 📊 **Influencer and community vetting:** member counts, posting frequency and engagement per post in one export

### 💰 How much does it cost?

| Plan | Per post | Per comment (optional) |
|---|---|---|
| Free | $0.0025 | $0.0015 |
| Bronze | $0.00225 | $0.00135 |
| Silver | $0.002125 | $0.001275 |
| Gold and higher | $0.002 | $0.0012 |

1,000 posts cost $2.50 on Free. The same 1,000 posts with 10 comments each cost $17.50. A run stops cleanly at your maximum charge and says so in its status.

### ❓ FAQ

**Do I need a VK account or cookies?** No. The Actor uses the same anonymous visitor access vk.com gives every logged-out browser.

**Which walls work?** Public communities, public pages, events and profiles whose wall is open to visitors. Private profiles and hidden walls are skipped, named in the status message and not charged.

**Can it search all of VK for a keyword?** No. VK refuses site-wide search (`newsfeed.search`) to anonymous visitors. `containsText` searches inside the walls you give it, back to their first post.

**How far back can it go?** To the first post of a wall. VK lists walls newest first, and `publishedAfter` stops reading at your start date.

**How fast is it?** About 100 posts per call and roughly 20 seconds per 1,000 posts. With `containsText`, wall search takes about 10 seconds per 100 posts.

**Are commenter names included?** No. A comment carries the commenter's public id and profile link, but not the private person's name.

**What happens if the run is moved to another server?** It saves its place after every page and continues there without duplicate rows or double charges.

**Is it legal to scrape VK?** The Actor reads only data VK shows to any logged-out visitor and does not log in. VK's terms restrict automated collection (section 6.3.9), and personal data falls under laws such as GDPR and Russia's 152-FZ. Use the data for research, monitoring or analysis with a lawful basis, and do not build profiles of private people.

**What does an empty result cost?** Nothing. A wall that is empty, private or not found saves no row and charges no event.

### 🔗 You might also like

- [Telegram Channel Scraper](https://apify.com/benthepythondev/telegram-channel-scraper): messages, views and reactions from public Telegram channels
- [Threads User Posts Scraper](https://apify.com/benthepythondev/threads-user-posts-scraper): every post of a Threads profile
- [Reddit Archive Scraper](https://apify.com/benthepythondev/reddit-archive-scraper): Reddit posts and comments back to 2005
- [Facebook Pages Scraper](https://apify.com/benthepythondev/facebook-pages-scraper): public Facebook page details

Reviews help other people find this Actor: [leave one](https://apify.com/benthepythondev/vk-posts-scraper/reviews).

**Keywords:** VK scraper, VK posts scraper, VKontakte scraper, VK wall scraper, VK comments scraper, VK API without login, vk.com posts export, vk.ru scraper, VK community posts, VK group scraper, парсер ВК, парсер постов ВКонтакте, VK social listening, Russian social media data, VK engagement data, VK post analytics

# Actor input Schema

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

Public VK walls or single posts to read. Accepts handles (vk, durov), community or profile links (https://vk.com/apiclub, https://vk.com/club22822305, https://vk.com/id1), owner ids (-22822305 for a community, 1 for a profile), wall links and post links (https://vk.com/wall-22822305_1739735). vk.com and vk.ru both work. No login needed.

## `maxItemsPerTarget` (type: `integer`):

Most posts saved for each wall, newest first. When no filter is set the Actor asks VK for only this many, so small numbers are fast and cheap.

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

Most posts saved across all walls in the run. The form starts at 20 so a first try stays cheap; set 0 or clear it for no run-wide limit (the per-wall limit still applies).

## `publishedAfter` (type: `string`):

YYYY-MM-DD (UTC). Keeps posts from the start of this day; reading a wall stops at the first older post, so old history is not read or paid for. Pinned posts are judged by their own date.

## `publishedBefore` (type: `string`):

YYYY-MM-DD (UTC). Keeps posts up to the end of this day; newer posts are skipped and not charged.

## `containsText` (type: `string`):

Only posts of the wall that contain this word or phrase (case-insensitive, also in reposted text). Uses VK's wall search, so it reaches far back in a wall; it is slower (about 10 s per 100 posts). This searches inside the given walls, not all of VK.

## `includePinnedPosts` (type: `boolean`):

Keep the post a wall pins on top. Turn off to skip it.

## `includeReposts` (type: `boolean`):

Keep posts that share another post. The original's id, link, text, author and media are in the repost field.

## `includeComments` (type: `boolean`):

Adds the newest comments of each post inside its row (comments array: text, date, likes, reply count, commenter id and link; no commenter names). Each comment is charged as its own event.

## `maxCommentsPerPost` (type: `integer`):

Most comments read for each post when Include comments is on, newest first (1 to 1000).

## `includeWallOwner` (type: `boolean`):

Adds the wall's community or profile to every row: name, type, member or follower count, verified badge, activity, site and description. Free, read in the same call.

## `includeRawPost` (type: `boolean`):

Adds VK's full original post object (rawPost) to each row, for reposts, attachments or fields this Actor does not map.

## Actor input object example

```json
{
  "targets": [
    "vk",
    "apiclub"
  ],
  "maxItemsPerTarget": 20,
  "maxItems": 20,
  "includePinnedPosts": true,
  "includeReposts": true,
  "includeComments": false,
  "maxCommentsPerPost": 20,
  "includeWallOwner": true,
  "includeRawPost": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (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": [
        "vk",
        "apiclub"
    ],
    "maxItemsPerTarget": 20,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("benthepythondev/vk-posts-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": [
        "vk",
        "apiclub",
    ],
    "maxItemsPerTarget": 20,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("benthepythondev/vk-posts-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": [
    "vk",
    "apiclub"
  ],
  "maxItemsPerTarget": 20,
  "maxItems": 20
}' |
apify call benthepythondev/vk-posts-scraper --silent --output-dataset

```

## MCP server setup

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