# VK Posts Scraper: Walls, Media & Ads (`luzivanlt/vk-posts-scraper`) Actor

VK wall posts from public communities and profiles, each saved once. $2.50 per 1,000 posts. Under maximedupre's $3.60 per 1,000. Text, author, date, edited date, likes, comment count, shares, views, reactions, photos and videos, with pinned and ad flags. No login needed.

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

## Pricing

from $1.75 / 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 Posts Scraper: Walls, Media & Ads

VK wall posts from any public community or profile, each saved once. You give it handles, links or ids, and it saves one row per post with the text, the author, the date, engagement counts, reactions, photos and videos. Pinned posts and ads are marked. No VK account or cookies needed.

Tested end to end on 2026-11-24 against public VK walls.

### What does this Actor do?

Paste one or more VK pages: a handle such as `tproger`, a community or profile link, a wall link, a post link or a numeric id. The Actor finds each page, reads its wall from the newest post backwards, and saves every post it passes until it reaches your limit or the end of the wall. A post link saves that one post.

A wall reports its own total, and the Actor reads past the first screen to that total. On 2026-11-24 the tproger wall reported 29,243 posts; the Actor read them newest first in pages of about 20 and stopped only at the limit or the end of the wall. A page is not cut off at a fixed number of posts.

Each post comes with:

- The text as plain words, with line breaks kept and every link written in full.
- The author: name, id, community or profile, page link, avatar and verified badge.
- The date it was published, and the date it was last edited when it has one.
- Likes, the comment count, shares, views and the reaction breakdown by type (Like, Haha, Wow, Love, Sad, Angry).
- Every photo and video with the largest image, a thumbnail and all offered sizes; links and polls with their text.
- Flags for a pinned post and an advertisement.

### Why use it?

- **Every post is saved once.** A post that appears on two pages, or on a page read twice, is saved and charged once.
- **Pinned posts and ads are marked.** Filter a sheet by `isAd` to separate paid placements, or by `isPinned` to see what the page is pushing.
- **Every image size is kept.** The largest image and a thumbnail come with each photo, so a sheet can show a small preview and still link the full picture.
- **Cheaper per 1,000 posts than maximedupre.** $2.50 per 1,000 posts against that Actor's $3.60 on the same date.
- **Export as JSON, CSV or Excel**, or read the dataset through Apify's API.

### How to use it

1. In **VK pages and posts**, paste a handle, a community or profile link, a wall link, a post link or a numeric id. One value per line.
2. In **Filters**, set a date range or a word if you want only part of the wall. Leave both empty to keep every post.
3. In **Limits**, set **Maximum posts** for the whole run and **Posts per page** when you want each page to give the same share.

A run with no changes reads the last 20 posts of `tproger`, a public technology community.

#### Links that work

- `tproger` and `https://vk.com/tproger` read the community's wall.
- `https://vk.com/wall-30666517_1879698` saves that one post.
- `-30666517` and `club30666517` read the same community by id.

A post link is found among the newest posts of its wall: the Actor reads up to 8 pages (about 80 posts) to reach it. An older post is reported as not found and its post is not charged.

A value that is not a VK page stops the run before anything is read, naming the value. Blank lines are ignored.

### Input

| Title | Key | What it does | Default |
| --- | --- | --- | --- |
| **VK pages and posts** | `targets` | Handles, links, wall links, post links or ids, one per line. Up to 50 values. | `tproger` |
| **Published after** | `publishedAfter` | Save posts published on this UTC date or later, as `YYYY-MM-DD`. | empty |
| **Published before** | `publishedBefore` | Save posts published on this UTC date or earlier, as `YYYY-MM-DD`. | empty |
| **Word or phrase** | `containsText` | Keep only posts whose own text contains this word or phrase. | empty |
| **Include pinned posts** | `includePinnedPosts` | Keep or skip the post pinned to the top of a wall. | on |
| **Include reposts** | `includeReposts` | Keep or skip a post a page shared from another page, when VK sends one. | on |
| **Maximum posts** | `maxItems` | The most posts to save in the run. `0` reads every post the pages offer. | 100 |
| **Posts per page** | `maxItemsPerTarget` | The most posts to save from each value. `0` reads every post that page offers. | 0 |

Give at least one value in **VK pages and posts**.

```json
{
  "targets": ["tproger", "https://vk.com/mash"],
  "publishedAfter": "2026-11-01",
  "maxItems": 500
}
```

### Output

One row per post.

```json
{
  "target": "tproger",
  "targetType": "handle",
  "postId": "-30666517_1879698",
  "ownerId": -30666517,
  "sourceUrl": "https://vk.com/wall-30666517_1879698",
  "text": "A short example post with a link to https://example.com/docs.",
  "postedAt": "2026-11-20T09:15:00.000Z",
  "editedAt": "2026-11-20T10:02:00.000Z",
  "isPinned": false,
  "isRepost": false,
  "isAd": false,
  "author": {
    "id": -30666517,
    "name": "Example Community",
    "type": "community",
    "profileUrl": "https://vk.com/example",
    "avatarUrl": "https://example.com/avatar.jpg",
    "isVerified": true
  },
  "engagement": {
    "likes": 128,
    "comments": 14,
    "reposts": 9,
    "views": 5400,
    "reactions": [
      { "type": "Like", "count": 120 },
      { "type": "Haha", "count": 8 }
    ]
  },
  "media": [
    {
      "type": "photo",
      "id": 457239017,
      "ownerId": -30666517,
      "url": "https://example.com/photo-1280.jpg",
      "thumbnailUrl": "https://example.com/photo-320.jpg",
      "width": 1280,
      "height": 720,
      "variants": [
        { "url": "https://example.com/photo-320.jpg", "width": 320, "height": 180, "type": "m" },
        { "url": "https://example.com/photo-1280.jpg", "width": 1280, "height": 720, "type": "x" }
      ]
    }
  ]
}
```

| Field | What it holds |
| --- | --- |
| `target` | The handle, link or id exactly as you wrote it. |
| `targetType` | How you wrote it: `handle`, `wallUrl`, `postUrl` or `ownerId`. |
| `postId` | VK's id for the post as `owner_post`, stable across runs. |
| `ownerId` | The wall owner's numeric id: negative for a community, positive for a profile. |
| `sourceUrl` | The post's page on VK. |
| `text` | The post's own text, plain, with links in full. |
| `postedAt` | When the post was published, in UTC. |
| `editedAt` | When the post was last edited, in UTC. Empty when never edited. |
| `isPinned` | True when the page pinned the post to the top of its wall. |
| `isRepost` | True when the page shared a post from another page. |
| `isAd` | True when VK marks the post as an advertisement. |
| `author` | The author's id, name, type, page link, avatar and verified flag. |
| `engagement` | Likes, comment count, reposts, views and reactions by type. |
| `media` | Photos, videos, links and polls, with the largest image, a thumbnail and every size. |
| `repost` | The post this one shared, with its own author, text, date, media and any repost of its own. |

`editedAt`, `author.avatarUrl`, `engagement.views`, `media` and `repost` are empty on posts that have none. On a busy wall, most posts carry an author, engagement and media; an edited date appears on about one post in nine.

### How much does it cost?

You pay for what you get: **$2.50 per 1,000 posts** ($0.0025 per post) and **$0.02 for a post link**. There is no per-run fee.

- **One post** is charged when it is saved to your results. A post found twice in a run is charged once.
- **One post link** is charged once per link when you paste a link to a single post, because the wall is read from the newest post down to that post. A handle, a community link or a wall link never carries this price.
- **Not charged:** a post your date or word filter leaves out, a post that is already saved, a page that does not answer, and a post link on a wall that could not be read.

A run that saves 2,000 posts from walls costs $5.00: 2,000 × $0.0025. A run that saves 20 costs $0.05. A run of one post link costs $0.0225: $0.02 for the link and $0.0025 for the post.

Plan discounts: Bronze $2.25 per 1,000 posts and $0.018 per post link, Silver $2.00 and $0.016, Gold $1.75 and $0.014.

### How long does a run take?

About 20 posts in 8 seconds, 50 in 20 seconds and 500 in 88 seconds, measured on 2026-11-24. A slow network window took 716 seconds for the same 500, so a big run can take minutes; the run stops 90 seconds before the timeout and says so.

### Good to know

- **Comments are not saved.** VK does not show comment threads to a reader who is not signed in, so this Actor returns the comment count and not the comments. Every comment route was tested on 2026-11-24 and refused.
- **A closed community or a private profile cannot be read.** The run names the page and saves nothing from it; that page is not charged.
- **A keyword search is not one of the inputs.** VK's search answers a reader who is not signed in with an empty page shell and no posts, on every route tested on 2026-11-24, so this Actor reads a page's wall rather than the site by word.
- **A post link is found among the wall's newest posts.** The Actor reads up to 8 pages (about 80 posts) to reach it, and the link carries a $0.02 price. An older post is reported as not found and its post is not charged.
- **Posts are read newest first.** A date range stops the read on a page once it reaches older posts, so a narrow range on a huge wall is quick.
- **`Maximum posts: 0` reads the whole wall.** On a wall of hundreds of thousands of posts that can take a long time and cost a lot; set a number for a daily run.
- **A daily schedule saves only new posts** when you keep the same dataset: posts already in the results are skipped and not charged.
- **A repost of another page's post is not in VK's signed-out answer.** Across 1,600 posts read on 44 public walls on 2026-11-24, every post came back with an empty `repost` field: the share count is saved, the shared post itself is not served to a reader who is not signed in. If VK does send one, it is saved inside `repost` with its own author, date, text and media.

### FAQ

**Do I need a VK account?**
No. No login and no cookies are needed.

**Can I read a private community?**
No. Only public communities and profiles answer.

**Can I get the comments?**
Not yet. The comment count is saved; the comments themselves are not available to a signed-out reader.

**Can I read a wall by its numeric id?**
Yes. `-30666517`, `club30666517` and `https://vk.com/tproger` all read the same community.

# Actor input Schema

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

Paste VK handles, community or profile links, wall links, post links or numeric ids, such as tproger, https://vk.com/mash or https://vk.com/wall-30666517_1879698. Up to 50 values in one run; a value written twice is read once. A post link saves that one post and costs $0.02; a wall is charged only for the posts it saves. A value that is not a VK page stops the run before anything is read, naming it.

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

Save posts published on this date or later, written as YYYY-MM-DD in UTC, for example 2026-11-01. Leave empty for no start date. The run stops walking a page once it reaches older posts.

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

Save posts published on this date or earlier, written as YYYY-MM-DD in UTC, for example 2026-11-24. Leave empty for no end date. Posts published later are left out.

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

Save only posts whose own text contains this word or phrase, such as MySQL or отпуск. Case does not matter. Leave empty to keep every post. Posts left out are never charged.

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

Keep on to save the post a page has pinned to the top of its wall. Turn off to skip it. A pinned post is marked in the results either way.

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

Keep on to save posts a page shared from another page. Turn off to skip them. A saved repost carries the post it copied.

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

How many posts to save in one run, across every page. 0 reads every post the pages offer. A large number takes longer and costs more.

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

The most posts to save from each handle, link or id. 0 reads every post that page offers. Use it to give each page an equal share of the run.

## Actor input object example

```json
{
  "targets": [
    "tproger"
  ],
  "includePinnedPosts": true,
  "includeReposts": true,
  "maxItems": 20,
  "maxItemsPerTarget": 0
}
```

# Actor output Schema

## `posts` (type: `string`):

Every post read from the pages you gave, one row each.

## `summary` (type: `string`):

How many posts were saved, how many pages were read, and why the run stopped.

## `misses` (type: `string`):

Handles, links and ids that did not answer, with the reason.

# 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": [
        "tproger"
    ],
    "maxItems": 20
};

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

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

```

## MCP server setup

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