{
  "openapi": "3.0.1",
  "info": {
    "title": "VK Posts Scraper & Comments | VK Parser, Парсер ВК",
    "description": "VK posts scraper and parser (Парсер ВК): export public VKontakte wall posts from communities, public pages and profiles to CSV, Excel or JSON, with comment threads. Text, likes, reposts, views, attachments, repost source. Date filters stop paging early. No login, $0.60 per 1,000 posts.",
    "version": "0.1",
    "x-build-id": "EHJn4HFh1Ds80xMM8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/firsthand~vk-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-firsthand-vk-posts-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/firsthand~vk-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-firsthand-vk-posts-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/firsthand~vk-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-firsthand-vk-posts-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 walls or post links",
            "type": "array",
            "description": "Public VK communities, public pages and profiles, one per line: a link (https://vk.com/vk), a short name (tproger), an id (-22822305 for a community, 1 for a profile) or a post link (https://vk.com/wall-22822305_1740193). vk.ru links work too.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerTarget": {
            "title": "Max posts per wall",
            "minimum": 1,
            "type": "integer",
            "description": "Newest posts to take from each wall. Empty, together with Max items, means 20 per wall."
          },
          "maxItems": {
            "title": "Max items for the whole run",
            "minimum": 1,
            "type": "integer",
            "description": "Limit on all paid rows of the run, posts and comments together. Comments of the first walls come before the next walls, so with comments on, limit per wall and per post to cover every wall. Empty means no run limit."
          },
          "publishedAfter": {
            "title": "Posts published after",
            "type": "string",
            "description": "Only posts newer than this: a date (2026-10-01, 01.10.2026) or a period (7 days, 2 weeks, 1 month). Paging stops at the first page that is all older, so you do not pay for the rest of the wall."
          },
          "publishedBefore": {
            "title": "Posts published before",
            "type": "string",
            "description": "Only posts older than this, same formats. On a large wall the Actor jumps to that date instead of paging through newer posts."
          },
          "containsText": {
            "title": "Text contains",
            "type": "array",
            "description": "Keep only posts whose text (or reposted text) contains any of these words. Case does not matter. Filtered posts are not charged.",
            "items": {
              "type": "string"
            }
          },
          "excludeText": {
            "title": "Text does not contain",
            "type": "array",
            "description": "Skip posts whose text contains any of these words.",
            "items": {
              "type": "string"
            }
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Reposts come with the original post in the repost field (author, text, date, link). Turn off to skip them. On by default."
          },
          "includePinnedPosts": {
            "title": "Include the pinned post",
            "type": "boolean",
            "description": "Public pages show their pinned post first, even when it is old; it is marked isPinned. Turn off to skip it. On by default."
          },
          "maxPostsToScan": {
            "title": "Max posts to scan per wall (text and repost filters)",
            "minimum": 1,
            "type": "integer",
            "description": "Text and repost filters do not stop paging by themselves, so with them on the Actor looks through this many newest posts of each wall and stops. Empty means 2000 when a text or repost filter is on and no limit otherwise. Date filters stop paging on their own."
          },
          "ownerPostsOnly": {
            "title": "Only the owner's posts",
            "type": "boolean",
            "description": "Only posts by the wall owner, without posts by other people on a profile or group wall. A link with ?own=1 does the same."
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Also scrape the comments of each post, with replies in threads (author, text, date, likes, reply-to). Each comment is a separate paid row."
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "type": "integer",
            "description": "Empty means 20 per post when comments are on."
          },
          "includeCommentReplies": {
            "title": "Include replies to comments",
            "type": "boolean",
            "description": "Replies inside comment threads. On by default; turn off for top-level comments only."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: VK walls open without a proxy. Set one only if VK refuses 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}