# VK Posts Scraper — Communities, Views, Likes, Monitoring (`apimy/vk-posts-scraper`) Actor

VK (ВКонтакте) wall posts of public communities and pages: text, date, views, likes, reposts, comments and media, plus monitoring that returns only new posts or the growth since the last run.

- **URL**: https://apify.com/apimy/vk-posts-scraper.md
- **Developed by:** [Nikita Iakovlev](https://apify.com/apimy) (community)
- **Categories:** Social media, Marketing, News
- **Features:** Limited permissions
- **Stats:** 19 total users, 8 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.40 / 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.
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 (ВКонтакте) wall posts of public communities and pages, with no login and no VK token of your own: post text, date, views, likes, reposts, comments and media links. A built-in monitoring mode returns only new posts, or every post with its growth since the last run, and any post can be re-measured later by its link.

### What you get

| Field | Example (РИА Новости, 08 Nov 2026) |
|---|---|
| `text`, `postedAt`, `url` | the post and its link `vk.com/wall-15755094_…` |
| `viewCount`, `likeCount`, `repostCount`, `commentCount` | 18,431 views · 66 likes · 2 reposts · 7 comments |
| `mediaUrls` | image links of the post |
| `author` / `authorType` | `community` for public communities, `profile` for personal pages |
| `community` | the name exactly as you wrote it |

Personal pages work too: `durov` returned a 2018 post with 15,996,716 views and 243,885 likes.

### Re-measure any post by its link

Put post links into **Re-measure posts by link**, e.g. `https://vk.com/wall-15755094_51081554`. Each post comes back with its current views, likes, reposts and comments, however old it is. On 09 Nov 2026 a РИА Новости post from 06 Nov returned 250,015 views (249,118 two days earlier).

A post that does not come back (deleted, hidden, closed community) gets a free notice row and is not charged.

### Monitoring: new posts and growth between runs

Give the run a **Monitoring name** (any text, e.g. `vk-brand-watch`) and schedule it. Runs with the same name remember what they have seen.

- **New posts only** (default): the dataset gets only posts that were not there last time. A run with nothing new returns no data rows and a free summary row, and that is the correct result.
- A post VK skipped in an earlier run but returns now (inside the window you already covered) still counts as new and comes with `lateArrival: true` — it is not lost in new-only mode.
- **All posts with growth**: every post, with `isNew`, `firstSeenAt`, `seenRuns` and `deltaViews` / `deltaLikes` / `deltaReposts` since the previous run.

Different names keep separate histories. The history keeps up to 300 posts per community and forgets posts not seen for 30 days.

**Keep measuring posts for N days.** A busy community pushes a post out of its latest posts in about a day. Set **Keep measuring posts for N days** (1–30), and every tracked post that scrolled out is re-measured by its id on each run until it is N days old, with `deltaViews` / `deltaLikes` / `deltaReposts` since its previous measurement and `remeasureScope: "by_id"`. These rows come in both monitoring modes. **Max re-measured posts per run** (default 50) caps how many; the newest go first.

### Honest limits

- **One post per source request when re-measuring.** That is why a re-measured post costs more than a post from a wall. Re-measuring 50 posts takes a few minutes, because the source answers each request in up to 90 seconds and the Actor sends 5 at a time.
- **Without "Keep measuring posts for N days", growth is measured only while a post is among the community's latest posts** (up to 100, about one day for a very active community). A post that scrolls out is reported as `droppedFromWindow` in the summary.
- **Up to 100 latest posts per community, in practice about one day of posts.** Our source returns a slice of the wall, sometimes shifted by a few posts. The Actor sends two requests per community, merges them and sorts by date, so the newest posts are almost always included. Rarely the source answers with an older part of the wall; monitoring notices it (the post dates are older than what it has already seen), asks again, and never passes those older posts off as new. A very active community (40+ posts a day) returns roughly its last day of posts.
- **A comment count of 0 on older posts often means "not counted"**, not "no comments". Such rows have `commentCount: null` and `commentCountReason: "not_reported_by_source"`.
- **Names, not bare numbers.** `ria`, `@ria`, `vk.com/ria`, `https://vk.com/ria` and `club15755094` work. A bare number is rejected before any request, and nothing is charged for it.

### Pricing

| Event | Price |
|---|---|
| Post | $0.0004 ($0.40 per 1,000 posts) |
| Re-measured post (by link or tracked by id) | $0.0045 |
| Video (only when VK video search is on) | $0.004 |
| Run start | $0.009 |

The run start fee is charged once per run. For a schedule it is cheaper to put several communities in one run than to run one community at a time.

On the Apify Free plan a run returns up to 20 posts, re-measures up to 5 links, does not keep measuring tracked posts and has video search off, because every request is bought from a paid data source. Paid plans have no such limit.

### Input examples

```json
{ "communities": ["ria", "lentach", "https://vk.com/tass"], "postsPerCommunity": 50 }
```

```json
{ "communities": ["ria", "tass"], "monitoringStoreName": "vk-news-watch", "monitoringMode": "snapshot", "remeasureDays": 7 }
```

```json
{ "postUrls": ["https://vk.com/wall-15755094_51081554", "https://vk.com/wall-15755094_51081684"] }
```

### Every row carries its origin

`provenance` holds the source, the post id, the parser and schema versions, and the time the counts were observed. Free `notice` rows explain anything skipped. Filter them out with `type != "notice"`.

# Actor input Schema

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

Short name or link: ria, @ria, vk.com/ria, https://vk.com/ria, club15755094. A bare number is not accepted — write club<number> for a community.

## `postsPerCommunity` (type: `integer`):

Latest wall posts per community, up to 100. Our source returns about one day of posts per request, so a very active community may return fewer than 100.

## `postUrls` (type: `array`):

Links to individual posts, e.g. https://vk.com/wall-15755094_51081554. Each post is fetched again with its current views, likes, reposts and comments, however old it is. One source request per post, so it costs more than a post from a wall. On the Apify Free plan up to 5 links.

## `monitoringStoreName` (type: `string`):

Optional. Any name, e.g. vk-brand-watch. Runs with the same name remember the posts already seen: new-only returns just new posts, snapshot returns all posts with the growth of views, likes and reposts since the last run.

## `monitoringMode` (type: `string`):

Works only with a monitoring name. Growth is measured while a post is still among the community's latest posts (up to 100, about one day for a very active community).

## `remeasureDays` (type: `integer`):

Works with a monitoring name. 0 = off. When a tracked post scrolls out of the community's latest posts, it is re-measured by its id on every run until it is older than N days, so its growth is not lost. Each such post is a re-measured post in pricing.

## `maxRemeasurePerRun` (type: `integer`):

Upper limit for posts re-measured by id in one run (links above plus tracked posts). The newest tracked posts go first.

## `videoKeywords` (type: `array`):

Keywords for VK video search, 20–50 videos each. Off when empty. Not available on the Apify Free plan.

## `videosPerKeyword` (type: `integer`):

20 to 50 videos per keyword.

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

Upper limit of paid rows — protection against an unexpectedly large bill.

## Actor input object example

```json
{
  "communities": [
    "ria"
  ],
  "postsPerCommunity": 40,
  "monitoringMode": "new-only",
  "remeasureDays": 0,
  "maxRemeasurePerRun": 50,
  "videosPerKeyword": 20,
  "maxItems": 1000
}
```

# Actor output Schema

## `dataset` (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 = {
    "communities": [
        "ria"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apimy/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 = { "communities": ["ria"] }

# Run the Actor and wait for it to finish
run = client.actor("apimy/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 '{
  "communities": [
    "ria"
  ]
}' |
apify call apimy/vk-posts-scraper --silent --output-dataset

```

## MCP server setup

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