# VK Posts Scraper (`piotrv1001/vk-posts-scraper`) Actor

The VK Posts Scraper extracts public wall posts from VK communities and profiles without a login — text, likes, reposts, views, media and repost source, plus comment threads and profile rows with followers, verified badge and contacts — ideal for social listening,media monitoring and research.

- **URL**: https://apify.com/piotrv1001/vk-posts-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** Social media, News, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.60 / 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 Scraper

Turn any public VK wall into clean, structured data — **no VK account, login, cookies or API token needed**. The **VK Scraper** takes community handles, profile links or single post URLs and returns every post with its text, engagement counts, media and repost source, optionally the full comment threads under each post, and a profile row with followers or members, verified badge, description and contacts. Built for social listening, brand and media monitoring, competitor research, academic datasets and lead lists across the Russian-speaking internet.

### ✨ Features

- 📝 **Wall posts at scale**: 100 posts per request straight from VK's own data feed — text, publish and edit time, likes, reposts, views, comment count, pinned and ad flags, and the original post when it is a repost.
- 💬 **Comments and threaded replies**: every comment under a post with author, text, likes and the parent comment it answers — including replies hidden behind "show more" that most scrapers miss.
- 👤 **Profile rows**: followers (people) or members (communities), verified badge, status, description, activity, city, website, contact persons and pinned links.
- 🖼️ **Media**: photos in the largest available size, videos with title, duration and view count, links with preview, documents, polls and articles — each as a normalised attachment object.
- 🎯 **Any public target**: communities (`lentach`, `club29534144`, `https://vk.com/lentach`), people (`durov`, `id1`), `vk.ru` and mobile links, or a single post (`https://vk.com/wall-29534144_25069682`).
- 🔎 **Filters**: date window (`publishedAfter` / `publishedBefore`) with early stop on old walls, and a case-insensitive keyword filter on post text.
- ⚡ **Fast and reliable**: no browser, no login, no fragile HTML parsing — 100 posts in a few seconds, walls with tens of thousands of posts paged to the end.
- 💸 **Pay per result**: one price per post, per comment and per profile — nothing else.

### 🛠️ How It Works

1. **Enter targets** – Paste VK community or profile URLs, handles, ids, or direct post links into `targets`.
2. **Choose what to collect** – Set `maxPosts` per wall, turn on `includeComments` and `includeProfile` if you need them, add a date window or keyword.
3. **Run the scraper** – Each post, comment and profile lands in the dataset as its own row (`type` = `post`, `comment` or `profile`), ready for export to JSON, CSV or Excel.

### 💰 Pricing

| Event     | Price   | What you get                                                                    |
| --------- | ------- | ------------------------------------------------------------------------------- |
| `post`    | $0.0036 | One post row with text, engagement counts, repost source and media              |
| `comment` | $0.002  | One comment or reply row with author, text, likes and thread parent             |
| `profile` | $0.005  | One profile row with followers / members, verified badge, description, contacts |

Example: 10 communities × 100 posts + comments on 50 of them (20 each) + 10 profiles = 1,000 × $0.0036 + 1,000 × $0.002 + 10 × $0.005 = **$5.65**.

### ⚠️ Good to know

- Works on **public walls** — open communities, public pages and profiles whose wall is visible without a login. Closed profiles and private groups are skipped with a warning (VK reports "user hid his wall").
- `maxPosts` is per wall; `maxItems` caps the total number of rows (posts + comments + profiles) in the run.
- VK-wide keyword search is not available without an account, so the `keyword` filter is applied to the posts of the targets you list.
- Counts (`likes`, `reposts`, `views`, `comments`) are the numbers VK reports at scrape time. Deleted comments are not returned.
- A few communities are restricted to Russian IPs; if one comes back empty, select a Russian residential proxy in `proxyConfiguration`.

### 📊 Sample Output Data

One post, one of its comments and the community profile from a single run:

```json
[
    {
        "type": "post",
        "id": "-29534144_25069593",
        "url": "https://vk.com/wall-29534144_25069593",
        "ownerId": -29534144,
        "ownerName": "Лентач",
        "ownerUrl": "https://vk.com/lentach",
        "authorId": -29534144,
        "authorName": "Лентач",
        "authorUrl": "https://vk.com/lentach",
        "text": "Россияне начали называть детей в честь героев турецких сериалов, рассказали власти Подмосковья.\n\nСреди новорождённых появились Неслихан и Бурак. Встречаются и варианты поэкзотичнее: Кассиопея, Шахеризада и Эсмеральда.\n\nСамыми популярными именами остаются София и Михаил",
        "publishedAt": "2026-09-15T11:50:09.000Z",
        "editedAt": null,
        "likes": 78,
        "reposts": 214,
        "views": 26466,
        "comments": 35,
        "isPinned": false,
        "isAd": false,
        "repostOf": null,
        "attachments": [
            {
                "type": "photo",
                "url": "https://sun1-83.userapi.com/s/v1/ig2/cQs4WTgrXDQK6acflSVjrGv…",
                "title": null,
                "thumbnailUrl": "https://sun1-83.userapi.com/s/v1/ig2/cQs4WTgrXDQK6acflSVjrGv…",
                "width": 1199,
                "height": 875
            }
        ],
        "target": "https://vk.com/lentach"
    },
    {
        "type": "comment",
        "id": "-29534144_25069594",
        "url": "https://vk.com/wall-29534144_25069593?reply=25069594",
        "postId": "-29534144_25069593",
        "postUrl": "https://vk.com/wall-29534144_25069593",
        "parentCommentId": null,
        "replyToUserId": null,
        "authorId": 64451114,
        "authorName": "Dmitry Dmitriev",
        "authorUrl": "https://vk.com/id64451114",
        "text": "Кавказ . там турецкие сми вещают бесплатно",
        "publishedAt": "2026-09-15T11:52:13.000Z",
        "likes": 0,
        "replies": 1,
        "attachments": [],
        "target": "https://vk.com/lentach"
    },
    {
        "type": "profile",
        "id": -29534144,
        "url": "https://vk.com/lentach",
        "profileType": "page",
        "name": "Лентач",
        "screenName": "lentach",
        "isVerified": true,
        "isClosed": 0,
        "followers": null,
        "members": 1763464,
        "description": "Пропаганда здравого смысла.\n\nМы в Telegram: https://t.me/old…",
        "status": "Пропаганда здравого смысла",
        "activity": "Internet media",
        "city": null,
        "country": null,
        "website": null,
        "birthDate": null,
        "lastSeenAt": null,
        "photoUrl": "https://sun1-27.userapi.com/s/v1/ig2/4KNF5VCUg19Mj…",
        "contacts": [
            {
                "userId": 1111582830,
                "description": "Реклама и партнерство",
                "phone": null,
                "email": null
            }
        ],
        "links": [
            {
                "url": "https://vk.com/page-29534144_51633465",
                "name": "Комментарии"
            }
        ],
        "target": "https://vk.com/lentach"
    }
]
```

Monitor the Russian-speaking web with **VK Scraper** today! 🚀

# Actor input Schema

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

VK handles, ids or URLs — a community (`lentach`, `club29534144`, `https://vk.com/lentach`), a profile (`durov`, `id1`) or a single post (`https://vk.com/wall-29534144_25069682`). Public walls only.

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

Maximum number of posts to collect from each wall, newest first.

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

Only posts published on or after this date (e.g. `2025-01-01`). Paging stops once the wall is older than this.

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

Only posts published on or before this date (e.g. `2025-12-31`).

## `keyword` (type: `string`):

Only keep posts whose text contains this word or phrase (case-insensitive).

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

Also collect the comments and threaded replies under each post (one comment row each).

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

Cap on comments (including replies) saved for each post when comments are enabled.

## `includeProfile` (type: `boolean`):

Also save one profile row per target: followers or members, verified badge, description, city, website, contacts.

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

Maximum number of rows (posts, comments and profiles) to save in total across all targets.

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

Proxy settings. The default works; pick a Russian residential proxy only if a community is region-restricted.

## Actor input object example

```json
{
  "targets": [
    "https://vk.com/lentach",
    "durov"
  ],
  "maxPosts": 50,
  "includeComments": false,
  "maxCommentsPerPost": 100,
  "includeProfile": false,
  "maxItems": 200,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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": [
        "https://vk.com/lentach",
        "durov"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/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": [
        "https://vk.com/lentach",
        "durov",
    ],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/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": [
    "https://vk.com/lentach",
    "durov"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call piotrv1001/vk-posts-scraper --silent --output-dataset

```

## MCP server setup

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