# VK Posts Scraper 🔥 $1/1K | Walls, Posts, Comments & Leads (`azzouzana/vk-scraper`) Actor

From $1/1K 💰 Paste a public VK profile, community, wall, or post link and get the text, date, reactions, views, photos, and videos in seconds. A word or a date range keeps the run focused, and comments bring the thread with them. JSON, CSV, Excel, or API.

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

## Pricing

from $1.00 / 1,000 results

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

Copying a VK wall by hand means scroll, copy, and lose the thread. Paste a public profile, community, or post link and the text, date, reactions, views, photos, and videos land in your dataset in seconds.

### Engineering Excellence & Reliability 🚀

- **Profiles, communities, and posts**: A handle, a wall link, or one post link. Mobile links work too.
- **The whole wall**: Large walls keep going up to your **maxItems**. Pagination is handled for you.
- **We bypass the website limitation and go beyond it.** Duplicate posts are skipped.
- **Focus the run**: Keep only posts that contain a word, or only posts inside a date range.
- **Comments when you want them**: Turn on **fetchFullDetails** and each post includes the public comments: who wrote them, the text, the time, and the likes.
- **Ready to use**: Clean JSON, CSV, Excel, or API.

### 🛠️ How to Play

1. Open the VK profile, community, wall, or post in your browser and copy the address.
2. Paste that link, set how many posts you want, and start.
3. Export JSON, CSV, Excel, or pull the dataset through the API.

| Input | Type | What it does |
| --- | --- | --- |
| `startUrl` | String | **(Required)** A public VK profile, community, wall, or post link. |
| `maxItems` | Number | Maximum posts to save. Free accounts save 5 per run. |
| `fetchFullDetails` | Boolean | Off saves the post. On also includes the public comments. |
| `containsText` | String | Only save posts whose text contains this word or phrase. Leave empty to keep every post. |
| `publishedAfter` | String | Keep posts from this date onward. Use YYYY-MM-DD. |
| `publishedBefore` | String | Keep posts on or before this date. Use YYYY-MM-DD. |

#### Example 1: A community wall

```json
{
    "startUrl": "https://vk.com/lentach",
    "maxItems": 100
}
```

#### Example 2: Posts from a date, with comments

```json
{
    "startUrl": "https://vk.com/lentach",
    "maxItems": 50,
    "fetchFullDetails": true,
    "publishedAfter": "2026-11-01"
}
```

#### Example 3: One post

```json
{
    "startUrl": "https://vk.com/wall-29534144_25143332",
    "maxItems": 10,
    "fetchFullDetails": true
}
```

### 🆓 Free tier limitations

Free accounts save **5 items** per run and **5 runs** per day, with at least **60 seconds** between runs. Upgrade at https://apify.com/pricing?fpr=cbgdsf.

### 📦 What’s in the Box?

Each row is one public post with clean, flat fields ready for CSV/Excel export. With comments turned on (`fetchFullDetails: true`), the post includes the public replies array.

```json
{
  "id": 25145938,
  "ownerId": -29534144,
  "authorId": -29534144,
  "url": "https://vk.com/wall-29534144_25145938",
  "date": 1794745540,
  "publishedAt": "2026-11-15T12:25:40.000Z",
  "text": "«Еб***е, сука, украинцы, н***й!» — за эту реплику белорусскую теннисистку Арину Соболенко внесли в базу «Миротворца».\n\nФразу прочитали по губам спортсменки во время игры с украинкой Элиной Свитолиной. Соболенко извинилась в соцсетях и объяснила, что так жёстко высказалась не об оппонентке, а о группе зрителей, которые агрессивно реагировали на её промахи.\n\n«Мой комментарий был адресован не Элине. Я была разочарована небольшой группой зрителей, которые агрессивно радовались моим ошибкам, и отреагировала на эмоциях в тот момент. Тем не менее, мне следовало справиться со своим разочарованием иначе, и я приношу извинения всем, кого обидела. Элина провела отличный матч, и я желаю ей всего наилучшего до конца турнира», — написала спортсменка",
  "postType": "post",
  "likesCount": 83,
  "repostsCount": 90,
  "commentsCount": 24,
  "viewsCount": 14698,
  "isPinned": false,
  "isAd": false,
  "isDonut": false,
  "hasPhotos": false,
  "photosCount": 0,
  "photoUrls": [],
  "hasVideos": true,
  "videosCount": 1,
  "videoUrls": [
    "https://vk.com/video-29534144_456330323"
  ],
  "linkUrl": null,
  "linkTitle": null,
  "isRepost": false,
  "repostSourceUrl": null,
  "repostSourceOwnerId": null,
  "repostSourcePostId": null,
  "repostSourceText": null,
  "repliesCount": 24,
  "replies": [
    {
      "id": "-29534144_25145957",
      "authorId": 90925137,
      "authorName": "Максим Колчев",
      "authorUrl": "https://vk.com/max_maxxx",
      "text": "Ля, вот это вот прочли по губам и потом оштрафовали это чё такое вообще? Прочли они, мало ли че они там прочли. Может она добра пожелала господу на латыни.",
      "date": 1794745791,
      "dateText": "52 минуты назад",
      "likes": 33,
      "url": "https://vk.com/wall-29534144_25145938?reply=25145957"
    },
    {
      "id": "-29534144_25145947",
      "authorId": 230871356,
      "authorName": "Kamillea Savchenko",
      "authorUrl": "https://vk.com/kamillea",
      "text": "А разве тут есть, в чем она не права ?",
      "date": 1794745660,
      "dateText": "54 минуты назад",
      "likes": 17,
      "url": "https://vk.com/wall-29534144_25145938?reply=25145947"
    }
  ]
}
```

### Contact 📬

**Need a custom solution? Have a feature request or just want to chat?**
We'd love to hear from you!

- 💬 **Discord**: `@azzouzana`
- 📧 **Email**: <labs@azzouzana.com>

### ⚠️ Disclaimer

This actor is not affiliated with VK. It collects publicly available posts. You are responsible for complying with VK's terms and applicable laws. Read more about the legality of web scraping on the [Apify blog](https://blog.apify.com/is-web-scraping-legal?fpr=cbgdsf).

### Keywords

VK, VKontakte, VK posts, VK scraper, VK wall, VK comments, VK community, VK profile, social listening, news monitoring, Lentach, reactions, views, public posts

# Actor input Schema

## `startUrl` (type: `string`):

Paste a public VK profile, community, wall, or post link from your browser.

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

Maximum posts to save. Free accounts are capped at 5 per run.

## `fetchFullDetails` (type: `boolean`):

Open each post and include the public comments under it.

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

Only save posts whose own text contains this word or phrase. Leave empty to keep every post.

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

Keep posts from this date onward. Use YYYY-MM-DD. Leave empty for no start date.

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

Keep posts on or before this date. Use YYYY-MM-DD. Leave empty for no end date.

## Actor input object example

```json
{
  "startUrl": "https://vk.com/lentach",
  "maxItems": 100,
  "fetchFullDetails": false,
  "containsText": "",
  "publishedAfter": "",
  "publishedBefore": ""
}
```

# 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 = {
    "startUrl": "https://vk.com/lentach",
    "maxItems": 100,
    "fetchFullDetails": false,
    "containsText": "",
    "publishedAfter": "",
    "publishedBefore": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("azzouzana/vk-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 = {
    "startUrl": "https://vk.com/lentach",
    "maxItems": 100,
    "fetchFullDetails": False,
    "containsText": "",
    "publishedAfter": "",
    "publishedBefore": "",
}

# Run the Actor and wait for it to finish
run = client.actor("azzouzana/vk-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 '{
  "startUrl": "https://vk.com/lentach",
  "maxItems": 100,
  "fetchFullDetails": false,
  "containsText": "",
  "publishedAfter": "",
  "publishedBefore": ""
}' |
apify call azzouzana/vk-scraper --silent --output-dataset

```

## MCP server setup

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