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

VK Posts Scraper exports public VK (VKontakte) wall posts of profiles and communities: text, date, likes, comments, reposts, views, reactions, author, attachments and reposted posts. Keyword search inside walls, date filters, optional comments. No login.

- **URL**: https://apify.com/neuro-scraper/vk-posts-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (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 $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

VK Posts Scraper exports public posts from VK (VKontakte) walls - profiles of people and communities (groups, public pages). Every post comes with its text, publish date, likes, comments, reposts, views, reactions, author, the wall it is on, every attachment (photos in the largest size, videos, links, documents, polls, audio) and, for reposts, the original post.

VK Posts Scraper can also search walls for keywords, filter by date, skip pinned posts or reposts, and add the comments of every post. It is built for social media monitoring, brand and competitor research, Russian-speaking market analysis, academic studies and content archiving.

VK Posts Scraper needs no VK account, no cookies and no API key: enter handles or links, press Start, and download clean JSON, CSV or Excel.

> **Also from us: [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper)** - export public Facebook Reels with views, likes, comments, captions and video files. Pairs well with VK Posts Scraper when you compare a brand's VK and Facebook presence.

#### What does VK Posts Scraper do?

VK Posts Scraper writes one row per post, with the same columns in the same order on every row, so the export drops straight into a spreadsheet, a BI tool, a database or a data pipeline. Key features of VK Posts Scraper:

- Profiles and communities by handle, link or numeric id; single posts by link.
- Pagination 100 posts per page until your limit or the end of the wall - limits per target and per keyword.
- Keyword search inside walls, or across public communities found for the keyword.
- Date window (published after / before), owner-only or others-only posts, skip pinned posts or reposts.
- Likes, comments, reposts, views, reactions by type, author details and verified badge.
- Attachments with direct links, thumbnails and sizes; the original post of every repost.
- Optional comments with replies (oldest first).
- Parallel targets for fast runs (20 posts in about 25 seconds in our test).

#### How to use VK Posts Scraper

1. **Open VK Posts Scraper** on Apify and click **Try for free** (or **Start** if you already use it). Enter at least one VK handle or link in **Targets** (for example `durov` or `https://vk.com/apiclub`) - or only keywords. Every other option is optional and has a safe default.
2. **Set the filters and limits** you need - each one is explained under "Features and how they work" below. Start small (for example 20 posts) to see the columns, then raise the limit.
3. **Press Start and watch the log.** VK Posts Scraper logs each wall page, e.g. "apiclub: page 2, 100 items, 30 kept (total 130, wall has 908)", and what the filters left out. The last line of the log and the run's status message sum up every target: how many posts were saved and why each one stopped (limit reached, last page, filter, or a target that could not be read).
4. **Download the results** from the **Output** tab as JSON, CSV, Excel, XML or HTML, or read the dataset with the Apify API (examples below).
5. **Automate it:** create a schedule (hourly, daily, weekly) in Apify Console and connect an integration - Google Sheets, Zapier, Make, n8n, Slack, email or a webhook that fires when a run of VK Posts Scraper finishes.

#### Features and how they work

Every input option of VK Posts Scraper is explained below: what it does, how VK Posts Scraper applies it, the allowed values and the default, an example, a tip and how it combines with the other options.

##### `targets` - VK profiles, communities or posts

**What it does:** The VK walls (profiles and communities) and single posts to scrape - one per line.

**How it works:** VK Posts Scraper accepts a handle (`durov`, `@durov`), a profile or community link (`https://vk.com/durov`, `vk.com/club22822305`, `vk.com/public22822305`, `vk.com/id1`) or a post link (`https://vk.com/wall1_45616`). A handle is turned into the wall's numeric id, then the wall is read newest first, 100 posts per page, until the per-target limit or the end of the wall. Post links are fetched directly (up to 100 per request).

**Allowed values and default:** a list of text values (one per line in the form); default: empty (not used).

**Example:** `"targets": ["durov", "https://vk.com/apiclub", "https://vk.com/wall1_45616"]`

**Tip:** Closed or private profiles cannot be read without logging in - VK Posts Scraper logs an error for them and goes on with the next target.

**Combinations:** With keywords, only the posts of these walls that contain the keyword are returned. The per-target limit applies to each target.

##### `startUrls` - VK URLs (optional)

**What it does:** The same as Targets, as a URL list (handy when you paste links or upload a file).

**How it works:** VK Posts Scraper merges these links with Targets, removes duplicates and treats every link exactly like a target: profile and community links are read wall by wall, post links are fetched one by one.

**Allowed values and default:** a list of links - `{"url": "..."}` objects in JSON, one link per line in the form, or an uploaded text file; default: empty (not used).

**Example:** `"startUrls": [{"url": "https://vk.com/vk"}]`

**Tip:** Use either field - both work the same way.

**Combinations:** Works with keywords, dates, filters and limits like Targets.

##### `keywords` - Keywords (optional)

**What it does:** Words or phrases to search for in VK posts.

**How it works:** With targets, VK Posts Scraper searches each wall for each keyword (VK's own wall search, 100 posts per page) and returns only matching posts. Without targets, VK Posts Scraper first finds public communities for the keyword with VK's own community search (see Communities per keyword), then searches the walls of those communities for the keyword.

**Allowed values and default:** a list of text values (one per line in the form); default: empty (not used).

**Example:** `"keywords": ["музыка", "football"]`

**Tip:** VK search matches word forms - Russian keywords work best for Russian communities.

**Combinations:** The per-target limit applies per keyword: 2 targets x 2 keywords x 20 = up to 80 posts.

##### `maxPostsPerTarget` - Max posts per target / keyword

**What it does:** The most posts to save for each target (and for each keyword).

**How it works:** VK Posts Scraper pages through each wall 100 posts at a time and stops when this many posts were saved, the wall ends or a date limit is reached. With keywords and no targets, the limit is shared by all communities found for the keyword.

**Allowed values and default:** a whole number from 1 to 100,000; default: `50`.

**Example:** `"maxPostsPerTarget": 50`

**Tip:** Start with 20 to see the columns, then raise it - big communities have tens of thousands of posts.

**Combinations:** Max posts in total stops the whole run earlier when set.

##### `maxItems` - Max posts in total (0 = no total limit)

**What it does:** The most posts to save in the whole run.

**How it works:** VK Posts Scraper stops as soon as this many posts are saved over all targets and keywords. 0 means no total limit (only the per-target limit applies).

**Allowed values and default:** a whole number from 0; default: `0`.

**Example:** `"maxItems": 200`

**Tip:** The easiest way to cap the cost of a run with many targets.

**Combinations:** Works on top of the per-target limit; the free plan is capped at 30 posts per run.

##### `maxPagesPerTarget` - Max wall pages per target (0 = no page limit)

**What it does:** The most wall pages to read per target.

**How it works:** VK Posts Scraper reads up to 100 posts per page; with this set it stops each target after that many pages even if the per-target limit is not reached. 0 means no page limit.

**Allowed values and default:** a whole number from 0; default: `0`.

**Example:** `"maxPagesPerTarget": 3`

**Tip:** Useful with filters (no reposts, dates, owner only) that skip many posts, to bound how far back VK Posts Scraper reads.

**Combinations:** Whichever comes first wins: page limit, per-target limit or the end of the wall.

##### `publishedAfter` - Published on or after

**What it does:** Only posts published on or after this date.

**How it works:** Walls come newest first, so VK Posts Scraper stops reading a wall at the first (non-pinned) post older than this date - older pages are never loaded. Dates are compared in UTC.

**Allowed values and default:** a date `YYYY-MM-DD`; default: empty (not used).

**Example:** `"publishedAfter": "2026-01-01"`

**Tip:** Use it on a schedule to collect only recent posts.

**Combinations:** Combine with Published on or before for a date window; with keywords the date is checked on each match.

##### `publishedBefore` - Published on or before

**What it does:** Only posts published on or before this date (the whole day is included).

**How it works:** VK Posts Scraper skips posts newer than the end of this day and keeps paging until it reaches older posts.

**Allowed values and default:** a date `YYYY-MM-DD`; default: empty (not used).

**Example:** `"publishedBefore": "2026-06-30"`

**Tip:** For a historic window set both dates.

**Combinations:** Works with every other filter; skipped posts do not count against the limits.

##### `wallFilter` - Whose posts

**What it does:** Whose posts on the wall to return.

**How it works:** VK Posts Scraper passes VK's own wall filter: `all` = every post on the wall, `owner` = only posts by the wall's owner, `others` = only posts by other users (on walls that accept them).

**Allowed values and default:** one of `all`, `owner`, `others`; default: `"all"`.

**Example:** `"wallFilter": "owner"`

**Tip:** Communities usually post as the community itself, so `owner` and `all` are often the same.

**Combinations:** Used for wall reading; keyword searches inside a wall search all posts.

##### `includePinned` - Include pinned posts

**What it does:** Keep the pinned post at the top of a wall.

**How it works:** When off, VK Posts Scraper skips posts VK marks as pinned. The pinned post can be old, so it never stops the date filter.

**Allowed values and default:** `true` or `false`; default: `true`.

**Example:** `"includePinned": false`

**Tip:** Turn it off when you analyse only the newest posts.

**Combinations:** Works with every other filter.

##### `includeReposts` - Include reposts

**What it does:** Keep posts that share another post.

**How it works:** When off, VK Posts Scraper skips posts that are reposts. When on, the shared post (author, text, date, link, attachments) is in the `repost` column.

**Allowed values and default:** `true` or `false`; default: `true`.

**Example:** `"includeReposts": false`

**Tip:** Turn it off to keep only original content.

**Combinations:** Works with every other filter.

##### `includeAttachments` - Include attachments

**What it does:** Return the photos, videos, links, documents, polls and audio of each post.

**How it works:** VK Posts Scraper lists every attachment with its type, link, thumbnail, title and size; photos use the largest size VK offers, videos link to their VK Video page. When off, the attachment columns stay empty (smaller rows).

**Allowed values and default:** `true` or `false`; default: `true`.

**Example:** `"includeAttachments": true`

**Tip:** Keep it on for media research - `image` gives the first photo of each post.

**Combinations:** The same attachment list is also used for reposted posts.

##### `includeComments` - Include comments

**What it does:** Add the comments of every post.

**How it works:** VK Posts Scraper reads each post's comments oldest first, 100 per page, with up to 10 replies per comment, and puts them in the `comments` column (comment id, text, date, likes, author, replies). Posts with 0 comments get an empty list.

**Allowed values and default:** `true` or `false`; default: `false`.

**Example:** `"includeComments": true`

**Tip:** Comments are one request per 100 comments - large threads make the run slower.

**Combinations:** Use Max comments per post to cap it. Comments do not count as result rows - you pay per post.

##### `maxCommentsPerPost` - Max comments per post

**What it does:** The most comments to add per post.

**How it works:** VK Posts Scraper stops reading a post's comments at this number (replies come nested inside their comment and do not count).

**Allowed values and default:** a whole number from 1 to 10,000; default: `20`.

**Example:** `"maxCommentsPerPost": 50`

**Tip:** Keep it low (20-50) when you need a sample of the discussion.

**Combinations:** Used only when Include comments is on.

##### `maxChannelsPerKeyword` - Communities per keyword (keywords without targets)

**What it does:** How many communities to search per keyword when no targets are given.

**How it works:** VK Posts Scraper uses VK's own community search for the keyword, skips closed communities and searches the walls of the first N public ones for the keyword.

**Allowed values and default:** a whole number from 1 to 100; default: `5`.

**Example:** `"maxChannelsPerKeyword": 5`

**Tip:** Raise it for rare keywords; the per-target limit is shared by all communities of the keyword.

**Combinations:** Ignored when targets are given (then the targets are searched).

##### `maxConcurrency` - Parallel targets

**What it does:** How many targets VK Posts Scraper reads at the same time.

**How it works:** VK Posts Scraper runs this many targets in parallel; each one still pages its wall in order. Higher is faster with many targets.

**Allowed values and default:** a whole number from 1 to 10; default: `3`.

**Example:** `"maxConcurrency": 3`

**Tip:** The default 3 is fast and polite; 5-10 for long target lists.

**Combinations:** Does not change which posts you get, only the speed.

##### `proxyConfiguration` - Proxy configuration

**What it does:** Chooses the proxy servers the run uses.

**How it works:** VK Posts Scraper sends its requests through Apify Proxy. Residential IPs are the default because they are refused far less often than datacenter IPs; when one IP is blocked, VK Posts Scraper retries with a fresh session automatically.

**Allowed values and default:** default: `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`.

**Example:** `"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`

**Tip:** Keep the default unless you have your own proxy. Switching to datacenter proxies saves a little platform usage but makes blocks more likely on large runs.

**Combinations:** Works with every other option; it changes only how requests are sent, never which rows you get.

#### Ready-to-copy input examples for VK Posts Scraper

**Posts of a community and a profile** - the 20 newest posts of each wall.

```json
{
  "targets": [
    "apiclub",
    "durov"
  ],
  "maxPostsPerTarget": 20
}
```

**Keyword search inside walls with a date window** - posts of the VK team wall that mention "музыка" in 2026.

```json
{
  "targets": [
    "https://vk.com/vk"
  ],
  "keywords": [
    "музыка"
  ],
  "publishedAfter": "2026-01-01",
  "maxPostsPerTarget": 40
}
```

**Original posts with comments** - the 10 newest original posts of a community with up to 30 comments each.

```json
{
  "targets": [
    "apiclub"
  ],
  "includeReposts": false,
  "includePinned": false,
  "includeComments": true,
  "maxCommentsPerPost": 30,
  "maxPostsPerTarget": 10
}
```

**Keyword across communities** - football posts from 5 public football communities found by VK search.

```json
{
  "keywords": [
    "football"
  ],
  "maxChannelsPerKeyword": 5,
  "maxPostsPerTarget": 50
}
```

#### Output fields of VK Posts Scraper

Every row of VK Posts Scraper has the columns below. "Filled in test" is measured on our latest test run (20 rows). A value is empty (null) when the post does not publish it - VK Posts Scraper never guesses or fills old values, so exports keep a stable shape from run to run. Several columns carry the same value under the name other tools use, so imports built for another tool keep working.

| Field | Type | Meaning | Example | Filled in test / when empty |
|---|---|---|---|---|
| `postId` | text | Unique post id: `<owner id>_<post id>` (negative owner id = community). | `-22822305_1740905` | 20/20 |
| `id` | text | Same value as `postId`. | `-22822305_1740905` | 20/20 |
| `postUrl` | URL | Link to the post on VK. | `https://vk.com/wall-22822305_1740905` | 20/20 |
| `sourceUrl` | URL | Same value as `postUrl`. | `https://vk.com/wall-22822305_1740905` | 20/20 |
| `text` | text | Post text, inline mentions shown as their label. | `Запустили VK Apps&Games — подкаст для создате...` | 15/20 - empty when the post is only a photo, video or repost without text of its own (VK sends an empty text) |
| `textRaw` | text | Post text exactly as VK stores it (with `[id|name]` mention markup). | `Запустили VK Apps&Games — подкаст для создате...` | 15/20 - empty when the post is only a photo, video or repost without text of its own (VK sends an empty text) |
| `postedAt` | date (ISO) | When the post was published (ISO 8601, UTC). | `2026-11-21T08:01:12Z` | 20/20 |
| `publishedAt` | date (ISO) | Same value as `postedAt`. | `2026-11-21T08:01:12Z` | 20/20 |
| `postDate` | date (ISO) | Same value as `postedAt`. | `2026-11-21T08:01:12Z` | 20/20 |
| `publishedAtRaw` | text | The publish date as a readable text, e.g. "8 May 2018 at 10:52" (UTC). | `21 Nov 2026 at 08:01` | 20/20 |
| `editedAt` | date (ISO) | When the post was last edited (ISO 8601) - empty if never edited. | `2026-10-29T12:53:39Z` | 6/20 - empty when the author never edited the post (VK sends no edit time then) |
| `likesCount` | number | Number of likes. | `104` | 20/20 |
| `commentsCount` | number | Number of comments. | `54` | 20/20 |
| `repostsCount` | number | Number of reposts (shares). | `8` | 20/20 |
| `viewsCount` | number | Number of views. | `2365` | 20/20 |
| `reactions` | array | Reactions by type, as a list of `{id, name, count}`. | `[{"id": 0, "name": "Like", "count": 103}, {"i...` | 20/20 |
| `engagement` | object | Likes, comments, reposts, views and reactions as one object. | `{"likes": 104, "comments": 54, "reposts": 8, ...` | 20/20 |
| `ownerId` | number | Id of the wall the post is on. | `-22822305` | 20/20 |
| `fromId` | number | Id of the post's author (user id, or negative community id). | `-22822305` | 20/20 |
| `profileId` | text | Wall id as text, e.g. "-22822305". | `-22822305` | 20/20 |
| `profileName` | text | Name of the wall's owner (profile or community). | `ВКонтакте` | 20/20 |
| `profileUrl` | URL | Link to the wall's owner. | `https://vk.com/vk` | 20/20 |
| `author` | object | The author as an object: id, type (user / group), name, screenName, link, avatar, isVerified, followers. | `{"id": -22822305, "type": "group", "name": "В...` | 20/20 |
| `authorName` | text | Name of the author. | `ВКонтакте` | 20/20 |
| `name` | text | Same value as `authorName`. | `ВКонтакте` | 20/20 |
| `username` | text | Author's VK short name (screen name). | `vk` | 20/20 |
| `is_verified` | boolean | `true` when the author has the VK verified badge. | `true` | 20/20 |
| `isPinned` | boolean | `true` for the wall's pinned post. | `false` | 20/20 |
| `postType` | text | VK post type: post, copy (repost), reply, postpone, suggest. | `post` | 20/20 |
| `isAd` | boolean | `true` when VK marks the post as an advertisement. | `false` | 20/20 |
| `repost` | text | The shared post of a repost: postId, url, ownerId, ownerName, text, postedAt, attachments. | - | 0/20 - empty when the post is an original post, not a repost (VK sends the shared post only for reposts) |
| `attachments` | array | Attachments as a list of `{type, url, thumbnailUrl, title, width, height}` (image, video, clip, link, doc, audio, poll, article). | `[{"type": "clip", "url": "https://vkvideo.ru/...` | 20/20 |
| `media` | array | Same value as `attachments`. | `[{"type": "clip", "url": "https://vkvideo.ru/...` | 20/20 |
| `mediaTypes` | array | The attachment types of the post, e.g. \["image", "video"]. | `["clip"]` | 20/20 |
| `image` | URL | Link to the first photo of the post (largest size). | `https://iv.okcdn.ru/getVideoPreview?id=189417...` | 20/20 |
| `hashtags` | boolean | Hashtags in the text. | - | 7/20 - empty when the post text has no hashtags |
| `target` | text | The target (or found community) the post came from. | `vk` | 20/20 |
| `targetType` | text | handle, url, post or keyword. | `handle` | 20/20 |
| `keyword` | text | The keyword that matched the post (empty for wall reading). | - | 0/20 - empty when the post came from wall reading (no keyword given) - filled only for keyword searches |
| `comments` | array | Comments of the post (with Include comments): commentId, text, postedAt, likesCount, authorId, authorName, authorUrl, repliesCount, replies, attachments. | `[{"commentId": 1740913, "text": "Уважаемые, а...` | 18/20 - empty when Include comments is off, or the post has no comments / comments are closed by the author |
| `status` | text | Always `ok` for a saved post (targets that fail are reported in the log and the run status). | `ok` | 20/20 |
| `error` | text | Empty for every saved post; kept for tools that expect the column. | - | 0/20 - empty on every saved row - it is filled only by tools that save failed targets as rows; {T} reports failures in the log |
| `postItem` | object | The complete post object as VK returns it, for your own processing. | `{"inner_type": "wall_wallpost", "ads_easy_pro...` | 20/20 |
| `scrapedAt` | date (ISO) | When VK Posts Scraper saved the row (ISO 8601, UTC). | `2026-11-21T16:22:04+00:00` | 20/20 |

#### Which columns can be empty in VK Posts Scraper

Measured on our latest test run (20 rows): these columns were empty on more than 10% of the rows. Each one was checked against what the site itself shows for those rows - VK Posts Scraper leaves a column empty only when the site does not publish the value for that row (or when the option that fills it is off). Nothing is guessed.

| Column | Empty in test | Why (measured) |
|---|---|---|
| `text` | 5 of 20 | When the post is only a photo, video or repost without text of its own (VK sends an empty text) |
| `textRaw` | 5 of 20 | When the post is only a photo, video or repost without text of its own (VK sends an empty text) |
| `editedAt` | 14 of 20 | When the author never edited the post (VK sends no edit time then) |
| `repost` | 20 of 20 | When the post is an original post, not a repost (VK sends the shared post only for reposts) |
| `hashtags` | 13 of 20 | When the post text has no hashtags |
| `keyword` | 20 of 20 | When the post came from wall reading (no keyword given) - filled only for keyword searches |
| `error` | 20 of 20 | On every saved row - it is filled only by tools that save failed targets as rows; {T} reports failures in the log |

#### Example row of VK Posts Scraper

One real row from a test run of VK Posts Scraper (long texts shortened):

```json
{
  "postId": "-22822305_1740905",
  "id": "-22822305_1740905",
  "postUrl": "https://vk.com/wall-22822305_1740905",
  "sourceUrl": "https://vk.com/wall-22822305_1740905",
  "text": "",
  "textRaw": "",
  "postedAt": "2026-11-21T08:01:12Z",
  "publishedAt": "2026-11-21T08:01:12Z",
  "postDate": "2026-11-21T08:01:12Z",
  "publishedAtRaw": "21 Nov 2026 at 08:01",
  "editedAt": null,
  "likesCount": 104,
  "commentsCount": 54,
  "repostsCount": 8,
  "viewsCount": 2365,
  "reactions": [
    {
      "id": 0,
      "name": "Like",
      "count": 103
    },
    {
      "id": 4,
      "name": "&$#%!",
      "count": 1
    }
  ],
  "engagement": {
    "likes": 104,
    "comments": 54,
    "reposts": 8,
    "views": 2365,
    "reactions": [
      {
        "id": 0,
        "name": "Like",
        "count": 103
      },
      {
        "id": 4,
        "name": "&$#%!",
        "count": 1
      }
    ]
  },
  "ownerId": -22822305,
  "fromId": -22822305,
  "profileId": "-22822305",
  "profileName": "ВКонтакте",
  "profileUrl": "https://vk.com/vk",
  "author": {
    "id": -22822305,
    "type": "group",
    "name": "ВКонтакте",
    "screenName": "vk",
    "link": "https://vk.com/vk",
    "avatar": "https://sun1-20.vkuserphoto.ru/s/v1/ig2/zDEG4UdMqCoj41uKsL1KQ3cepVDkLGH4V57MvA0NacpzvjOVtBy8uqRFnr-o-lMrZfiGQEBv8QCQCcwtERcsCQAd.jpg?quality=95&crop=0,0,540,540&as=32x32,48x48,72x72,108x108,160x160,240x240,360x360,480x480,540x540&ava=1&u=w4lyJ1rEItcMNKOj_JzH2bLrPwA4cEvI4ghdnNK4Vx0&cs=200x200",
    "isVerified": true,
    "followers": 14148942
  },
  "authorName": "ВКонтакте",
  "name": "ВКонтакте",
  "username": "vk",
  "is_verified": true,
  "isPinned": false,
  "postType": "post",
  "isAd": false,
  "repost": null,
  "attachments": [
    {
      "type": "clip",
      "url": "https://vkvideo.ru/clip-22822305_456243556",
      "thumbnailUrl": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=39&tkn=Ejnm_jwRDP8gVx-wKsx6EYbezuY&fn=vid_u&scl=4",
      "title": "Clip by @vk",
      "width": 1080,
      "height": 1920
    }
  ],
  "media": [
    {
      "type": "clip",
      "url": "https://vkvideo.ru/clip-22822305_456243556",
      "thumbnailUrl": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=39&tkn=Ejnm_jwRDP8gVx-wKsx6EYbezuY&fn=vid_u&scl=4",
      "title": "Clip by @vk",
      "width": 1080,
      "height": 1920
    }
  ],
  "mediaTypes": [
    "clip"
  ],
  "image": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=39&tkn=Ejnm_jwRDP8gVx-wKsx6EYbezuY&fn=vid_u&scl=4",
  "hashtags": [],
  "target": "vk",
  "targetType": "handle",
  "keyword": null,
  "comments": [
    {
      "commentId": 1740913,
      "text": "Уважаемые, а почему при создании поста первое фото обрезается автоматически в рамку? Вы издеваетесь в край уже!",
      "postedAt": "2026-11-21T08:18:03Z",
      "likesCount": null,
      "authorId": 175887907,
      "authorName": "Dimitry Dorokhin",
      "authorUrl": "https://vk.com/dimmus85",
      "repliesCount": 4,
      "replies": [
        {
          "commentId": 1740916,
          "text": "Димитрий Дорохин, фото можно добавлять любого размера и ориентации. Если соотношение сторон изображения — от 2:3 до 16:9, снимок сохранится без изменений. Всё, что выходит за эти рамки, система адаптирует под стандартный формат. \n\nЧтобы снимок в ленте выглядел так, как вам хочется, отредактируйте его перед публикацией: нажмите на значок кадрирования в левом нижнем углу фото → измените масштаб и положение рамки → выберите «Готово» или воспользуйтесь кнопкой слева для дополнительных настроек.\n\nЕсли хотите выложить фото с нестандартным соотношением сторон, сначала загрузите его в альбом профиля или сообщества, а потом добавьте в пост оттуда. В ленте и публикации изображение будет откадрировано, но при нажатии откроется полностью.\n\nЛучше всего публиковать изображения в формате карусели — так можно добавить к посту дополнительные материалы, например музыку или товары.",
          "postedAt": "2026-11-21T08:35:15Z",
          "authorId": -22822305,
          "authorName": "ВКонтакте",
          "likesCount": null
        },
        {
          "commentId": 1740917,
          "text": "ВКонтакте, а почему нельзя просто вернуть старый постинг без всех этих ограничений? Кому и чем он так мешал?",
          "postedAt": "2026-11-21T08:36:41Z",
          "authorId": 572471791,
          "authorName": "Alexey Kotov",
          "likesCount": null
        },
        {
          "commentId": 1740931,
          "text": "🤷",
          "postedAt": "2026-11-21T09:46:35Z",
          "authorId": 660783,
          "authorName": "Ned Sagi",
          "likesCount": null
        },
        {
          "commentId": 1740938,
          "text": "ВКонтакте, уважаемые а зачем эти рамки, если без них было лучше, а почему раньше тогда без них было?",
          "postedAt": "2026-11-21T10:01:12Z",
          "authorId": 175887907,
          "authorName": "Dimitry Dorokhin",
          "likesCount": null
        }
      ],
      "attachments": []
    },
    {
      "commentId": 1740918,
      "text": "У техногиганта ВК нет бюджета на аниматора? Что это за очередной нейрослоп с \"pixar style\" в промпте?",
      "postedAt": "2026-11-21T08:44:17Z",
      "likesCount": null,
      "authorId": 6904607,
      "authorName": "Dmitry Kuznetsov",
      "authorUrl": "https://vk.com/burankun",
      "repliesCount": 1,
      "replies": [
        {
          "commentId": 1740919,
          "text": "Дмитрий, У них и на нормальных технарей денег нет судя по всему",
          "postedAt": "2026-11-21T08:54:17Z",
          "authorId": 19684161,
          "authorName": "Evgeny Moshkin",
          "likesCount": null
        }
      ],
      "attachments": []
    },
    {
      "commentId": 1740920,
      "text": "",
      "postedAt": "2026-11-21T08:56:17Z",
      "likesCount": null,
      "authorId": 725257084,
      "authorName": "Vladimir Subbotin",
      "authorUrl": "https://vk.com/id725257084",
      "repliesCount": 0,
      "replies": [],
      "attachments": [
        {
          "type": "image",
          "url": "https://sun9-51.vkuserphoto.ru/s/v1/ig2/alE7xN0a6Go47NqTprNjasI1EmFKlQ1DWEikWVske36018HM-0Vt2rJkcwBOrbsW8Un2gFPsJQiNtmo2gJjkv9gb.jpg?quality=95&as=32x43,48x64,72x96,108x144,160x213,240x320,360x480,480x640,540x720,640x853,720x960&from=bu&u=qfhXX3s00DwU_2Z1p4IT0Q39TZ_JkRhNjrAAzWBLZsI&cs=720x0",
          "thumbnailUrl": "https://sun9-51.vkuserphoto.ru/s/v1/ig2/alE7xN0a6Go47NqTprNjasI1EmFKlQ1DWEikWVske36018HM-0Vt2rJkcwBOrbsW8Un2gFPsJQiNtmo2gJjkv9gb.jpg?quality=95&as=32x43,48x64,72x96,108x144,160x213,240x320,360x480,480x640,540x720,640x853,720x960&from=bu&u=qfhXX3s00DwU_2Z1p4IT0Q39TZ_JkRhNjrAAzWBLZsI&cs=640x0",
          "title": null,
          "width": 720,
          "height": 960
        },
        {
          "type": "image",
          "url": "https://sun1-27.vkuserphoto.ru/s/v1/ig2/GW3McoPdSmE1Hh8m7F6D2aeRF66ptRd3ETkzH8XcS7bi2sbG5UYkpugi3MycUfn3t8B30ne9yK5Rex1j9X0nlVo3.jpg?quality=95&as=32x43,48x64,72x96,108x144,160x213,240x320,360x480,480x640,540x720,640x853,720x960&from=bu&u=nLVVoR-An8X24tjHMJX5gJPi1E8o3akQoRkrM9Aefos&cs=720x0",
          "thumbnailUrl": "https://sun1-27.vkuserphoto.ru/s/v1/ig2/GW3McoPdSmE1Hh8m7F6D2aeRF66ptRd3ETkzH8XcS7bi2sbG5UYkpugi3MycUfn3t8B30ne9yK5Rex1j9X0nlVo3.jpg?quality=95&as=32x43,48x64,72x96,108x144,160x213,240x320,360x480,480x640,540x720,640x853,720x960&from=bu&u=nLVVoR-An8X24tjHMJX5gJPi1E8o3akQoRkrM9Aefos&cs=640x0",
          "title": null,
          "width": 720,
          "height": 960
        }
      ]
    }
  ],
  "status": "ok",
  "error": null,
  "postItem": {
    "inner_type": "wall_wallpost",
    "ads_easy_promote": {
      "type": 2,
      "text": "Что-то пошло не так.",
      "label_text": "",
      "button_text": "",
      "is_ad_not_easy": false
    },
    "donut": {
      "is_donut": false
    },
    "comments": {
      "can_post": 1,
      "can_view": 1,
      "count": 54,
      "groups_can_post": true
    },
    "marked_as_ads": 0,
    "compact_attachments_before_cut": 0,
    "hash": "XZQgMA_5avHXSkub5A",
    "type": "post",
    "push_subscription": {
      "is_subscribed": false
    },
    "attachments": [
      {
        "type": "video",
        "video": {
          "response_type": "full",
          "can_like": 1,
          "can_repost": 1,
          "can_subscribe": 1,
          "can_add": 0,
          "comments": 54,
          "date": 1795248072,
          "description": "Помогите Леночке собраться в отпуск и выиграйте призы в [https://vk.ru/app54699209#/?utm_campaign=shops_holiday&utm_source=bigvk|новой игре] 💫",
          "duration": 13,
          "image": [
            {
              "url": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=39&tkn=Ejnm_jwRDP8gVx-wKsx6EYbezuY&fn=vid_s&scl=4",
              "width": 130,
              "height": 96,
              "with_padding": 1
            },
            {
              "url": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=39&tkn=Ejnm_jwRDP8gVx-wKsx6EYbezuY&fn=vid_m&scl=4",
              "width": 160,
              "height": 120,
              "with_padding": 1
            },
            {
              "url": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=39&tkn=Ejnm_jwRDP8gVx-wKsx6EYbezuY&fn=vid_l&scl=4",
              "width": 320,
              "height": 240,
              "with_padding": 1
            },
            {
              "url": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=39&tkn=Ejnm_jwRDP8gVx-wKsx6EYbezuY&fn=vid_x&scl=4",
              "width": 800,
              "height": 450,
              "with_padding": 1
            },
            {
              "url": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=39&tkn=Ejnm_jwRDP8gVx-wKsx6EYbezuY&fn=vid_w&scl=4",
              "width": 405,
              "height": 720
            },
            {
              "url": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=39&tkn=Ejnm_jwRDP8gVx-wKsx6EYbezuY&fn=vid_t&scl=4",
              "width": 320,
              "height": 569
            },
            {
              "url": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=39&tkn=Ejnm_jwRDP8gVx-wKsx6EYbezuY&fn=vid_u&scl=4",
              "width": 720,
              "height": 1280
            }
          ],
          "first_frame": [
            {
              "url": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=32&tkn=xnLjbgj-jrWBue-pDWHO2nCmCGk&scl=4",
              "width": 405,
              "height": 720
            },
            {
              "url": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=34&tkn=5kJKzxSMCRxcM-Tw3kvuS6bBuQM&scl=4",
              "width": 135,
              "height": 240
            },
            {
              "url": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=39&tkn=Ejnm_jwRDP8gVx-wKsx6EYbezuY&scl=4",
              "width": 720,
              "height": 1280
            },
            {
              "url": "https://iv.okcdn.ru/getVideoPreview?id=18941769091599&idx=0&type=43&tkn=S-tW8FkHpxvxakanjRNJo5hQTJY&scl=4",
              "width": 1080,
              "height": 1920
            }
          ],
          "width": 1080,
          "height": 1920,
          "id": 456243556,
          "owner_id": -22822305,
          "title": "Clip by @vk",
          "track_code": "video_07ada57b_TlMWXT6bzU17l7oGDvAK-bs1EwCc_GqH47oH2qKhY_TGFNTdPBuNzOBWoAYPs8p59_heTR3hstz6VewzFntnv4qYW8xozFrBt5rtywO9uYtIB6Gy4h5NHLi7GgL5ume_iph",
          "repeat": 1,
          "type": "short_video",
          "views": 73098,
          "local_views": 73098,
          "can_dislike": 1,
          "wall_post_id": 1740905
        },
        "style": "full",
        "meta": {
          "info_enabled": false,
          "layout": "wide"
        }
      }
    ],
    "attachments_meta": {
      "primary_mode": "single"
    },
    "date": 1795248072,
    "from_id": -22822305,
    "header": {
      "photo": {
        "source_id": -22822305
      },
      "title": {
        "source_id": -22822305
      },
      "descriptions": []
    },
    "id": 1740905,
    "likes": {
      "can_like": 1,
      "count": 104,
      "user_likes": 0,
      "can_publish": 1,
      "repost_disabled": false
    },
    "reaction_set_id": "reactions",
    "reactions": {
      "count": 104,
      "items": [
        {
          "id": 0,
          "count": 103
        },
        {
          "id": 4,
          "count": 1
        }
      ]
    },
    "badges": {
      "type": 11,
      "id": 1740905,
      "owner_id": -22822305
    },
    "owner_id": -22822305,
    "post_source": {
      "type": "vk"
    },
    "post_type": "post",
    "reposts": {
      "count": 8,
      "user_reposted": 0
    },
    "text": "",
    "views": {
      "count": 2365
    },
    "track_code": "0xabcdefomdfZrMZkF8PJ151iRAIRkpJaUKBUUVDEE33oMqkdDeqc3z6Q24qQfhiqkrjL4hm6lPyUSNppjaINYBh-XXyXPhMhzzyJKZxqG74I-oz8y7CExJGRDeVV4gu_Wn9K4B0lrvOfWFk5Q"
  },
  "scrapedAt": "2026-11-21T16:22:04+00:00"
}
```

#### VK Posts Scraper compared with the top 5 tools of its kind

We compared VK Posts Scraper with the five most-used tools of its kind on the Apify Store and added every input option and output field they offer that can be collected without logging in. The table shows the main features.

| Feature | Offered by (of the top 5) | VK Posts Scraper |
|---|---|---|
| Profiles + communities by handle / link | 3 of 5 | yes |
| Single post links | 2 of 5 | yes |
| Pagination with per-target limit | 5 of 5 | yes |
| Date filters | 2 of 5 | yes |
| Keyword search | 2 of 5 | yes (inside walls and in found communities) |
| Skip pinned / reposts | 1 of 5 | yes |
| Attachments with links | 3 of 5 | yes |
| Reactions by type | 1 of 5 | yes |
| Comments with replies | 0 of 5 | yes (opt-in) |

#### Use cases for VK Posts Scraper

- Brand monitoring: track what a brand and its fans post on VK.
- Competitor research: compare post frequency and engagement of communities.
- Market research in Russian-speaking countries: collect posts about a topic from many communities.
- Academic research: archive public discussions with dates, reactions and comments.
- Content teams: find the best performing post formats (photo, video, link) by likes and views.

#### Tips for the best results with VK Posts Scraper

- Use handles or links of public walls - closed profiles cannot be read without logging in.
- For a daily schedule use Published on or after = yesterday and a small per-target limit.
- Keywords with targets are precise; keywords without targets discover new communities.
- Keep Include comments off unless you need the discussion - it adds one request per 100 comments.

#### Limits of VK Posts Scraper (measured)

- Closed / private profiles and communities are not readable logged out (VK error, logged and skipped).
- VK-wide post search (all of VK) is not offered to logged-out visitors; VK Posts Scraper searches walls and found communities instead.
- Wall search returns what VK's own search finds (word forms, no exact phrase guarantee).
- Measured: 20 posts from 2 walls in about 23 seconds; 130 posts over 2 pages in 17 seconds.

#### How much does VK Posts Scraper cost?

VK Posts Scraper uses pay-per-event pricing: you pay per result row that VK Posts Scraper saves (event `result`), plus the Apify platform usage of the run. There is no monthly rental and no start fee from us. One result = one row of the dataset (one post (its comments are included in the same row)).

| Apify plan | Price per 1,000 results | 1,000 posts | 10,000 posts |
|---|---|---|---|
| Free | $1.49 | $1.49 | $14.90 |
| Starter | $1.39 | $1.39 | $13.90 |
| Scale | $1.29 | $1.29 | $12.90 |
| Business | $1.19 | $1.19 | $11.90 |

**Worked example:** 500 posts (5 communities x 100) on the Starter plan = 500 / 1,000 x $1.39 = **$0.70** in results.

Platform usage measured on our test run: 20 rows used about $0.0050 of compute and proxy, so the result price is the main part of the cost.

**Free plan:** Apify free-plan users can run VK Posts Scraper with up to 30 rows per run (30 x $1.49 / 1,000 = about $0.045), enough to check the data before a larger run. **Capping the cost:** set the "Max" limits in the input and, in the run options, a **maximum cost per run** - VK Posts Scraper stops cleanly when the budget is reached and keeps every row it already saved.

#### Use VK Posts Scraper with the API

Start VK Posts Scraper from your own code with the same input as in the examples above. Replace `<YOUR_APIFY_TOKEN>` with the token from Apify Console > Settings > Integrations.

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run_input = {
    "targets": [
        "apiclub",
        "durov"
    ],
    "maxPostsPerTarget": 20
}
run = client.actor("neuro-scraper/vk-posts-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('neuro-scraper/vk-posts-scraper').call({"targets": ["apiclub", "durov"], "maxPostsPerTarget": 20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**HTTP** (one call that runs the Actor and returns the rows):

```bash
curl -X POST 'https://api.apify.com/v2/acts/neuro-scraper~vk-posts-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"targets": ["apiclub", "durov"], "maxPostsPerTarget": 20}'
```

VK Posts Scraper also works with the Apify MCP server, so AI agents (Claude, ChatGPT, Cursor) can call it as a tool, and with every Apify integration: Google Sheets, Zapier, Make, n8n, Airbyte, Slack, email and webhooks.

#### Related Actors

Other scrapers from us that pair well with VK Posts Scraper:

| Actor | What it extracts |
|---|---|
| [Facebook Posts Scraper](https://apify.com/neuro-scraper/facebook-posts-scarper) | Public Facebook page posts with reactions, comments and shares |
| [Instagram Posts Scraper](https://apify.com/neuro-scraper/instagram-posts-scraper) | Instagram posts with captions, likes and comments |
| [Facebook Groups Scraper](https://apify.com/neuro-scraper/facebook-groups-scraper) | Public Facebook group posts and group details |
| [YouTube Comments Scraper](https://apify.com/neuro-scraper/youtube-comments-scraper) | Comments and replies of YouTube videos |
| [TikTok Profile Scraper](https://apify.com/neuro-scraper/tiktok-profile-scraper) | TikTok profile details and follower counts |
| [Twitch Channels & Streams Scraper](https://apify.com/neuro-scraper/twitch-channels-streams-scraper) | Twitch channels and live streams |

#### FAQ about VK Posts Scraper

**Why did VK Posts Scraper return fewer posts than the limit?**

The wall has fewer posts, a filter (dates, pinned, reposts, owner) skipped some, or the wall is closed - the log says why each target stopped.

**Why is a column empty in VK Posts Scraper?**

VK does not publish it for that post - e.g. `editedAt` for posts never edited, `repost` for original posts. See "Which columns can be empty".

**How do I get only new posts with VK Posts Scraper?**

Schedule VK Posts Scraper with Published on or after set to the last run date, or keep the `postId` column and skip ids you already have.

**Can I scrape many walls in one run of VK Posts Scraper?**

Yes - add as many targets as you like; VK Posts Scraper reads 3 at a time by default (Parallel targets).

**Does VK Posts Scraper return comments?**

Yes, with Include comments on - nested in each post row, oldest first, with replies.

**Do I need an account, cookies or an API key for VK Posts Scraper?**

No. VK Posts Scraper works without any login, cookies or API key of yours - you only need an Apify account to run it.

**Is it legal to use VK Posts Scraper?**

VK Posts Scraper collects only public data that anyone can see without logging in. You are responsible for how you use the results: respect the platform's terms, copyright and privacy laws such as GDPR and CCPA, and do not collect personal data without a legitimate reason. If in doubt, ask a lawyer.

**Can I get help or ask for a feature of VK Posts Scraper?**

Yes - open an issue on the Issues tab of VK Posts Scraper. We read every issue and usually answer within a day.

# Actor input Schema

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

Handles or links, one per line: durov, @durov, https://vk.com/durov, https://vk.com/club22822305, https://vk.com/public22822305, https://vk.com/id1, or a single post https://vk.com/wall1_45616.

## `startUrls` (type: `array`):

Same as above, as a URL list (profile, community or post links).

## `keywords` (type: `array`):

Words to search for. With targets: only the posts of those walls that contain the word. Without targets: VK's own community search finds public communities for the word, and their posts with the word are returned.

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

Posts are read 100 per page, page after page, until this number or the end of the wall. The limit is per target (and per keyword).

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

Stop the whole run after this many posts.

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

Stop each target after this many pages of 100 posts.

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

Only posts from this date on (YYYY-MM-DD, UTC). The wall is read newest first, so paging stops at the first older post.

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

Only posts up to this date (YYYY-MM-DD, UTC, inclusive).

## `wallFilter` (type: `string`):

VK's own wall filter.

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

Keep the pinned post at the top of a wall.

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

Keep posts that share another post (the shared post is in the repost column).

## `includeAttachments` (type: `boolean`):

Photos, videos, links, documents, polls and audio of each post (largest image size, video page link, thumbnail).

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

Add each post's comments (with up to 10 replies each) in the comments column.

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

Comments are read 100 per page, oldest first, until this number.

## `maxChannelsPerKeyword` (type: `integer`):

How many communities found for a keyword are searched for posts with the keyword.

## `maxConcurrency` (type: `integer`):

How many targets are read at the same time.

## `query` (type: `string`):

Same as keywords (one keyword).

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

Alias.

## `maxPostsPerUrl` (type: `integer`):

Alias.

## `count` (type: `integer`):

Alias.

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

Alias.

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

Residential proxy is the default.

## Actor input object example

```json
{
  "targets": [
    "durov"
  ],
  "maxPostsPerTarget": 50,
  "maxItems": 0,
  "maxPagesPerTarget": 0,
  "wallFilter": "all",
  "includePinned": true,
  "includeReposts": true,
  "includeAttachments": true,
  "includeComments": false,
  "maxCommentsPerPost": 20,
  "maxChannelsPerKeyword": 5,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per result, in the run's default dataset.

# 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"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/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"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

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

```

## MCP server setup

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