Apify example task · whoareyouanas/vk-posts-scraper

Archive owner posts from Kinopoisk on VK

Filter the public Kinopoisk wall to community-owner posts. Inspect the available text, dates and attachments in a small archive sample.

Actor
VK Posts Scraper - VKontakte Wall Posts & Comments
Result limit
6 (maxItems)
Estimated cost
Up to $0.024
Run options
Actor defaults

Example updated 2026-11-20 · actor build 1.0.4 · runs in your own Apify account

01 / About the actor

VK Posts Scraper - VKontakte Wall Posts & Comments

Collect VK wall posts from supported profiles or communities. Use public HTML for basic text and media, or a VK access token for API-backed engagement, author, and comment data.

Two extraction modes

Choose public HTML access or supply your own VK token for richer API data.

Target and date controls

Limit targets, post counts, and publication windows for a focused sample.

Media and repost context

Keep source URLs, attachment information, available engagement, and repost relationships.

02 / Input

The exact input this example runs.

vkTargets is required. The bounded example uses HTML mode; add your own accessToken when your workflow needs API-backed counters or comments. A token must have appropriate permissions for the wall.

input.json · vk-owner-posts-archive
{
  "maxItems": 6,
  "postsPerTarget": 5,
  "includeRawPost": false,
  "vkTargets": [
    "https://vk.com/kinopoisk"
  ],
  "postFilter": "owner",
  "includeComments": false
}
Input fields used by this example, their values and what they control
FieldValue in this exampleWhat it controls
maxItemsChange this6Hard cap on the number of posts stored across all targets. Raise it for a full crawl, and raise the Actor's run timeout with it - the run stops early rather than overrunning its timeout.
postsPerTargetChange this5Optional per-target cap. Leave empty to let each target use the shared budget.
includeRawPostfalseAttach the unmodified VK API object as rawPost on every item. Useful for fields this Actor does not map yet.
vkTargetsChange thishttps://vk.com/kinopoiskVK walls to scrape. Accepts a public handle (durov), a profile or community URL (https://vk.com/kinopoisk), a signed owner ID (-40316705), or a direct post link (https://vk.com/wall1_45678).
postFilterChange this"owner"Which posts to read from the wall. API mode only.
includeCommentsChange thisfalseFetch comment threads (including replies) for every post. Requires an access token and makes the run noticeably slower.
Other inputs you can add (6)
Deployed actor input fields, types, defaults, and descriptions
FieldType / requiredDefaultPurpose
publishedAfterstringNot specifiedOnly keep posts published at or after this date. YYYY-MM-DD or a full ISO-8601 timestamp. Pagination stops once older posts are reached.
publishedBeforestringNot specifiedOnly keep posts published at or before this date. A bare YYYY-MM-DD includes the whole day.
maxCommentsinteger100Upper bound on comments fetched per post when "Include comments" is on.

Minimum: 1

keepUndatedPostsbooleanfalseWithout an access token VK sometimes hides a post's date. By default such posts are dropped when a date filter is set, because they cannot be checked against it. Turn this on to keep them (their postedAt will be null and they may fall outside your date range).
htmlTimezonestring"Europe/Moscow"Only used without an access token. VK prints post times in the viewer timezone, so the browser is pinned to this zone and the printed times are interpreted in it. Change it only if you want timestamps resolved as another region would see them.
proxyConfigurationobject{"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"]}VK blocks most datacenter IP ranges. Residential proxies are used by default.

03 / Make it yours

Change these fields for your own research.

  1. 01 · maxItems

    Maximum posts (total)

    Hard cap on the number of posts stored across all targets. Raise it for a full crawl, and raise the Actor's run timeout with it - the run stops early rather than overrunning its timeout.

    Example: 6

  2. 02 · postsPerTarget

    Maximum posts per target

    Optional per-target cap. Leave empty to let each target use the shared budget.

    Example: 5

  3. 03 · vkTargets

    VK targets

    VK walls to scrape. Accepts a public handle (durov), a profile or community URL (https://vk.com/kinopoisk), a signed owner ID (-40316705), or a direct post link (https://vk.com/wall1_45678).

    Example: https://vk.com/kinopoisk

  4. 04 · postFilter

    Post filter

    Which posts to read from the wall. API mode only.

    Example: "owner"

  5. 05 · includeComments

    Include comments

    Fetch comment threads (including replies) for every post. Requires an access token and makes the run noticeably slower.

    Example: false

Run it in three steps

  1. Open the example on Apify and select Try for free to copy it into your Apify account.
  2. Replace the sample values above with your own target and keep the limit small.
  3. Start the run, then export the dataset as JSON, CSV or Excel.

04 / Output

What the results table shows.

Columns in the “Overview” view

postedAt

Published

text

Text

stats

stats

mediaTypes

Media

mediaCount

Files

thumbnailCount

Thumbnails

isRepost

Repost

sourceUrl

Post URL

A view selects columns for the table. The full JSON export keeps every field, including nested arrays and objects.

05 / Cost

What this example costs to run.

At most about $0.024: up to 6 results at $0.004 each (result) plus $0.00005 per GB of memory for the start event. Fewer results cost less. The live Pricing tab on Apify is authoritative.

Prices checked 2026-11-22. Set a run spending limit in Apify when you widen the input.

06 / API

Run the same input from your code.

This call starts a billable run of VK Posts Scraper - VKontakte Wall Posts & Comments with this example's input and returns the dataset items when it finishes. Synchronous calls wait up to five minutes; for longer runs, POST to /runs instead and read the run's default dataset when it succeeds. Keep the token in an environment variable.

cURL · run and return the results
curl --request POST \
  'https://api.apify.com/v2/acts/whoareyouanas~vk-posts-scraper/run-sync-get-dataset-items?format=json' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"maxItems":6,"postsPerTarget":5,"includeRawPost":false,"vkTargets":["https://vk.com/kinopoisk"],"postFilter":"owner","includeComments":false}'

Coverage & interpretation

Check the result before relying on it.

Questions

About this example.

What does the "Archive owner posts from Kinopoisk on VK" example collect?

Filter the public Kinopoisk wall to community-owner posts. Inspect the available text, dates and attachments in a small archive sample. It runs VK Posts Scraper - VKontakte Wall Posts & Comments, published by whoareyouanas on Apify.

Which input does this example use?

Maximum posts (total) (maxItems) set to 6; Maximum posts per target (postsPerTarget) set to 5; VK targets (vkTargets) set to https://vk.com/kinopoisk; Post filter (postFilter) set to "owner"; Include comments (includeComments) set to false. The full JSON input is shown on this page.

How much does it cost to run this example?

At most about $0.024: up to 6 results at $0.004 each (result) plus $0.00005 per GB of memory for the start event. Fewer results cost less. The live Pricing tab on Apify is authoritative.

How do I change it for my own research?

Open the example on Apify and select Try for free to copy it into your account, then edit Maximum posts (total), Maximum posts per target, VK targets, Post filter, Include comments. Keep the result limit small for the first run and check the output before scaling up.

Can I run it from the API or on a schedule?

Yes. Send the same JSON input to the VK Posts Scraper - VKontakte Wall Posts & Comments run endpoint with your Apify API token, or save the copied task in your Apify account and add a schedule. Results land in the run's default dataset as JSON, CSV or Excel.

More examples

Related tasks you can copy.

Guides

Read more about this workflow.