{
  "openapi": "3.0.1",
  "info": {
    "title": "VK Scraper — Posts, Comments & Monitoring",
    "description": "VK scraper (парсер ВК): public VKontakte wall posts from communities and profiles with likes, views, reposts, media, comment threads and page profiles (followers, verified, contacts). Keyword and date filters, monitoring that returns only new posts. No login.",
    "version": "1.0",
    "x-build-id": "BKPXp8txbmNNnd2Pp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapelabmax~vk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapelabmax-vk-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/scrapelabmax~vk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapelabmax-vk-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/scrapelabmax~vk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapelabmax-vk-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "targets": {
            "title": "VK communities, profiles or posts",
            "type": "array",
            "description": "Public VK targets. Accepts community/profile URLs (https://vk.com/kinopoisk), handles (kinopoisk, @durov), numeric ids (club108468, id1, -108468) and direct post URLs (https://vk.com/wall-108468_3576097). Up to 1000 per run. Entries that are not a VK wall or post are skipped and reported. Leave empty if you only use keyword search below.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search all of VK by keyword (needs a VK access token)",
            "type": "array",
            "description": "Find public posts across the whole of VK that match each query, newest first (VK returns roughly the newest 1,000 matches per query). Requires 'VK access token' below. Date filters, keyword filters, limits and monitoring mode apply to the results. Up to 50 queries per run.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max posts (total)",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after delivering this many posts in total. Leave empty for no limit (your spending limit still applies)."
          },
          "maxItemsPerTarget": {
            "title": "Max posts per target",
            "minimum": 1,
            "type": "integer",
            "description": "Stop collecting a single community/profile after this many posts."
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Only posts published on/after this date. ISO date (2026-10-01), ISO datetime, or relative (\"7 days\"). Pagination stops as soon as older posts are reached."
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Only posts published before this date."
          },
          "keywordsAny": {
            "title": "Contains any of these keywords",
            "type": "array",
            "description": "Keep posts containing at least one keyword. Case-insensitive, Unicode-aware (Cyrillic supported; ё = е). Filters only within the targets above — this is not VK-wide search.",
            "items": {
              "type": "string"
            }
          },
          "keywordsAll": {
            "title": "Contains all of these keywords",
            "type": "array",
            "description": "Keep posts containing every keyword.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop posts containing any of these keywords.",
            "items": {
              "type": "string"
            }
          },
          "searchRepostText": {
            "title": "Also match keywords in reposted content",
            "type": "boolean",
            "description": "When enabled, keyword filters also look at the text of the original post that was reposted.",
            "default": false
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Include posts that share another post.",
            "default": true
          },
          "includePinnedPosts": {
            "title": "Include pinned posts",
            "type": "boolean",
            "description": "Include the wall's pinned post (often old).",
            "default": false
          },
          "includeOwnerProfile": {
            "title": "Add the page profile to each post",
            "type": "boolean",
            "description": "Adds an \"ownerProfile\" object to every post with details of the community or user whose wall it is on: follower/member count, verified badge, description, category, website, city and published contacts. Handy for engagement rates and lead lists. No extra charge.",
            "default": false
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Attach public comments to each post, oldest first. Each delivered comment is billed as a separate 'comment' event.",
            "default": false
          },
          "includeCommentReplies": {
            "title": "Include replies to comments",
            "type": "boolean",
            "description": "Also collect the replies inside each comment thread. Replies follow their parent comment, carry 'parentCommentId', count toward 'Max comments per post' and are billed like any other comment.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper bound on comments collected per post.",
            "default": 20
          },
          "monitoringMode": {
            "title": "Monitoring mode — only new posts",
            "type": "boolean",
            "description": "Remember delivered posts under the Monitor ID and on later runs return (and bill) only posts that were not delivered before. Ideal with Apify Schedules.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name of the monitoring configuration (letters, digits, dashes; case-insensitive). Required in monitoring mode. Each Monitor ID keeps its own state in your account."
          },
          "resetMonitoringState": {
            "title": "Reset monitoring state",
            "type": "boolean",
            "description": "Forget everything delivered under this Monitor ID and backfill again. Use deliberately.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrent targets",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many targets are processed in parallel. API calls are additionally rate-limited to stay within VK limits.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout for a single VK request. Timed-out requests are retried with backoff.",
            "default": 30
          },
          "vkAccessToken": {
            "title": "VK access token (optional)",
            "type": "string",
            "description": "Optional official VK API service/user token. Required only for 'Search all of VK' (VK does not allow keyword search for logged-out visitors). When set, it is also tried before anonymous access for walls. When empty, the scraper uses the same anonymous access a logged-out browser gets. Stored encrypted; never logged."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Direct connections work for most runs; enable a proxy only if VK rate-limits your runs."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}