# VK Posts Scraper - Walls, Media & Engagement (`thirdwatch/vk-posts-scraper`) Actor

Scrape public VK profile and community posts without login, browser, or proxy. Export text, authors, dates, reactions, comments, reposts, views, media metadata, and source URLs.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## VK Posts Scraper

Scrape public VK profile and community posts without a VK login, API key, browser, or proxy. Export clean post rows with text, authors, dates, reactions, comments, reposts, views, media metadata, and stable source URLs.

The Actor reads VK's server-rendered structured post payloads over HTTP. That keeps runs fast and inexpensive while avoiding brittle scraping of localized button labels.

### Quick start

Use a handle, public profile/community URL, wall URL, or direct post URL:

```json
{
  "targets": ["durov", "https://vk.com/wall1_2442097"],
  "maxPostsPerTarget": 20,
  "maxTotalPosts": 40
}
```

No cookies, credentials, API token, residential proxy, or browser setup is required.

### Inputs

| Input | What it controls | Default |
| --- | --- | --- |
| `targets` | Public VK handles, profiles, communities, walls, and direct post URLs | `durov` |
| `maxPostsPerTarget` | Maximum eligible posts saved from each target | `20` |
| `maxTotalPosts` | Global result cap across the run | `100` |
| `publishedAfter` | Inclusive lower publication-date bound | none |
| `publishedBefore` | Inclusive upper publication-date bound | none |
| `includeReposts` | Include posts with copy history | `true` |
| `includePinned` | Include pinned posts | `true` |
| `maxPagesPerTarget` | Historical-pagination safety cap; about 20 posts/page | `25` |

Supported target examples:

- `durov`
- `club22822305`
- `https://vk.com/durov`
- `https://vk.com/wall1?own=1`
- `https://vk.com/wall-22822305`
- `https://vk.com/wall1_2442097`

### Output

Each eligible public post is one dataset row and one billable result:

```json
{
  "recordType": "vk_post",
  "target": "durov",
  "targetType": "profile",
  "ownerId": 1,
  "postId": 2442097,
  "sourceUrl": "https://vk.com/wall1_2442097",
  "text": "...",
  "postedAt": "2018-05-08T18:59:24Z",
  "editedAt": "2018-05-08T21:10:26Z",
  "isPinned": false,
  "author": {
    "id": 1,
    "name": "Pavel Durov",
    "screenName": "durov",
    "profileUrl": "https://vk.com/durov",
    "photoUrl": "https://...",
    "verified": true
  },
  "engagement": {
    "likesCount": 242724,
    "commentsCount": 0,
    "repostsCount": 14837,
    "viewsCount": 15729030,
    "reactions": []
  },
  "media": [],
  "mediaTypes": [],
  "repost": null,
  "scrapedAt": "2026-08-12T00:00:00Z"
}
```

Top-level `authorName`, `likesCount`, `commentsCount`, `repostsCount`, and `viewsCount` fields are also included for convenient spreadsheet exports. The nested objects retain richer structured data.

### Common workflows

- Monitor brand or community announcements on scheduled runs.
- Compare engagement across public profiles and communities.
- Archive public posts and media metadata for research.
- Track a date-bounded campaign or news event.
- Feed public VK content into dashboards, warehouses, or alerting workflows.

Deduplication uses VK's stable `(ownerId, postId)` pair. If multiple inputs find the same post, it is saved and charged once per run.

### Pricing and cost control

The entry tier is **$0.003 per unique saved post**, below the leading comparable Actor's $0.0036/post price observed during development. BRONZE, SILVER, and GOLD tiers reduce the unit price for higher-volume users.

Use `maxPostsPerTarget`, `maxTotalPosts`, and date bounds to make the run size predictable. Skipped duplicates, reposts, pinned posts, out-of-range posts, invalid targets, and empty pages are not charged.

### Limitations and troubleshooting

- Public pages only. Private, deleted, age-gated, login-only, or geographically unavailable content is not bypassed.
- VK can expose different fields for different post and attachment types; absent source fields remain `null` or empty.
- Direct URLs work only while VK continues to expose the public post.
- Very old history requires more wall pages. Increase `maxPagesPerTarget` carefully and use `publishedAfter` to stop early.
- An empty dataset usually means the target is private/unavailable, no post matched the date or repost filters, or VK exposed no anonymous public wall payload.
- Use Apify schedules for monitoring and compare `postId` plus engagement counts across runs.

This Actor collects public data only. Use the output lawfully and respect privacy, data-protection, and platform requirements that apply to your use case.

# Actor input Schema

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

Public VK handles and URLs. Examples: <code>durov</code>, <code>vk.com/durov</code>, <code>vk.com/wall1</code>, <code>vk.com/wall-22822305</code>, or <code>vk.com/wall1\_2442097</code>.

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

Stop after saving this many unique posts from each profile, community, wall, or direct post target.

## `maxTotalPosts` (type: `integer`):

Global safety limit across every submitted target.

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

Optional inclusive lower date bound. Pagination stops once a wall is older than this date.

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

Optional inclusive upper date bound.

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

When disabled, posts containing VK copy history are skipped rather than charged.

## `includePinned` (type: `boolean`):

When disabled, pinned wall posts are skipped rather than charged.

## `maxPagesPerTarget` (type: `integer`):

Safety limit for historical pagination. Each public wall page normally contains up to 20 posts.

## Actor input object example

```json
{
  "targets": [
    "durov"
  ],
  "maxPostsPerTarget": 20,
  "maxTotalPosts": 100,
  "includeReposts": true,
  "includePinned": true,
  "maxPagesPerTarget": 25
}
```

# 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": [
        "durov"
    ],
    "maxPostsPerTarget": 20,
    "maxTotalPosts": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("thirdwatch/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": ["durov"],
    "maxPostsPerTarget": 20,
    "maxTotalPosts": 100,
}

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

```

## MCP server setup

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