# VK (VKontakte) Post Monitor for Public Walls (`automatic/vk-post-monitor`) Actor

Follow public VK communities and profiles on a schedule. Export new and edited posts with stable IDs, text, dates, engagement counts, reposts, and public attachments.

- **URL**: https://apify.com/automatic/vk-post-monitor.md
- **Developed by:** [Philip Kirkbride](https://apify.com/automatic) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.84 / 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 Post Monitor

Schedule a feed of new and edited posts from public VK walls for media tracking, brand monitoring, or research. Follow communities and public profiles in one run. Each post has a stable ID and a direct link back to VK.

Turn on **Only new or edited posts** and reuse the same `feedName` on each run. The first run establishes a baseline and exports the posts it finds. Later runs return newly found posts and edits. Export the dataset as CSV, Excel, or JSON.

### Try it

The Console example and empty input `{}` both return up to five recent posts from VK's official wall.

```json
{
  "wallUrls": ["https://vk.com/wall-22822305"],
  "maxItems": 5
}
```

### Schedule a monitor

Use a public wall URL such as `https://vk.com/wall-22822305` for a community or `https://vk.com/wall18757868` for a profile. A direct post URL such as `https://vk.com/wall-22822305_1740193` follows one post. Give each schedule its own feed name and run it sequentially.

Existing schedules can still use `stateKey`. If you send both fields, `feedName` takes precedence.

```json
{
  "wallUrls": ["https://vk.com/wall-22822305"],
  "maxItems": 100,
  "maxPages": 3,
  "onlyNewSinceLastRun": true,
  "feedName": "vk-official-wall"
}
```

### What you get

Rows include the post URL and text, published and edited dates, wall and author IDs, likes, comment counts, repost counts, views, and public attachments where VK provides them. Reposts include links to the original posts and their quoted text when available. Monitor rows also indicate whether the post is new or edited and give its first-seen timestamp.

**Selected fields only.**

```json
{
  "postId": "-22822305_1740193",
  "url": "https://vk.com/wall-22822305_1740193",
  "ownerId": -22822305,
  "postedAt": "2026-11-19T10:26:15+00:00",
  "text": "Признавайтесь, у кого сегодня выходной? 🎮",
  "attachments": [{"type": "photo", "id": "photo-22822305_457380168"}]
}
```

Open `OUTPUT` for the number of rows saved, skipped URLs, source errors, and any reason the run stopped early. A quiet monitor returns zero rows with an explanation.

### Pricing

**$0.0012 per post saved**, plus **$0.001 per GB of memory at run start** (minimum $0.001). The start charge applies even when the run saves nothing. Scheduled monitors save only new or edited posts after the first run. When your maximum charge is reached, the run stops and keeps the rows already saved.

### Limits

Each run accepts up to 20 numeric wall or direct post URLs, 20 pages per wall, and 2,000 saved posts across all walls. The default limits are five pages per wall and 100 saved posts. Coverage follows the public pages VK makes available. Private walls, comment bodies, and deleted-post alerts are outside this scope. Engagement counts are snapshots. A change in counts alone does not trigger a monitor row.

# Actor input Schema

## `wallUrls` (type: `object,array,string,integer,number,boolean`):

Public VK wall URLs such as https://vk.com/wall-22822305 (community), https://vk.com/wall18757868 (person) or a single post URL. The sample reads five posts from VK's official wall.

## `maxItems` (type: `object,array,string,integer,number,boolean`):

Total posts to save across all walls, from 1 to 2,000. The regular limit is 100; the sample saves up to five.

## `maxPages` (type: `object,array,string,integer,number,boolean`):

Each page holds about 20 posts. Enter 1 to 20. Defaults to 5.

## `onlyNewSinceLastRun` (type: `object,array,string,integer,number,boolean`):

Set true to deliver only new or materially edited posts on later runs.

## `feedName` (type: `object,array,string,integer,number,boolean`):

Use the same name for repeats of one wall list and a different name for another schedule.

## Actor input object example

```json
{
  "wallUrls": [
    "https://vk.com/wall-22822305"
  ],
  "maxItems": 5
}
```

# Actor output Schema

## `posts` (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 = {
    "wallUrls": [
        "https://vk.com/wall-22822305"
    ],
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatic/vk-post-monitor").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 = {
    "wallUrls": ["https://vk.com/wall-22822305"],
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("automatic/vk-post-monitor").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 '{
  "wallUrls": [
    "https://vk.com/wall-22822305"
  ],
  "maxItems": 5
}' |
apify call automatic/vk-post-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automatic/vk-post-monitor"
        }
    }
}
```

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/36m39DrpI5LKt5ejK/builds/KylJHeayzjeuAiIjQ/openapi.json
