{
  "openapi": "3.0.1",
  "info": {
    "title": "VK Posts Scraper: Walls, Comments & Community Stats, No Login",
    "description": "Returns public VK (VKontakte) wall posts from communities, public pages, profiles or post links: text, date, likes, comments, reposts, views, photos and videos, reposted originals, community member count, plus optional comments. Date and keyword filters. No login, no cookies.",
    "version": "1.0",
    "x-build-id": "IITuD51FWdZo7j6ho"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/benthepythondev~vk-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-benthepythondev-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/benthepythondev~vk-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-benthepythondev-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/benthepythondev~vk-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-benthepythondev-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 posts",
            "type": "array",
            "description": "Public VK walls or single posts to read. Accepts handles (vk, durov), community or profile links (https://vk.com/apiclub, https://vk.com/club22822305, https://vk.com/id1), owner ids (-22822305 for a community, 1 for a profile), wall links and post links (https://vk.com/wall-22822305_1739735). vk.com and vk.ru both work. No login needed.",
            "default": [
              "vk",
              "apiclub"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerTarget": {
            "title": "Max posts per wall",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Most posts saved for each wall, newest first. When no filter is set the Actor asks VK for only this many, so small numbers are fast and cheap.",
            "default": 20
          },
          "maxItems": {
            "title": "Max posts in the run",
            "minimum": 0,
            "type": "integer",
            "description": "Most posts saved across all walls in the run. The form starts at 20 so a first try stays cheap; set 0 or clear it for no run-wide limit (the per-wall limit still applies)."
          },
          "publishedAfter": {
            "title": "Published on or after",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}.*)?$",
            "type": "string",
            "description": "YYYY-MM-DD (UTC). Keeps posts from the start of this day; reading a wall stops at the first older post, so old history is not read or paid for. Pinned posts are judged by their own date."
          },
          "publishedBefore": {
            "title": "Published on or before",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}.*)?$",
            "type": "string",
            "description": "YYYY-MM-DD (UTC). Keeps posts up to the end of this day; newer posts are skipped and not charged."
          },
          "containsText": {
            "title": "Contains text",
            "type": "string",
            "description": "Only posts of the wall that contain this word or phrase (case-insensitive, also in reposted text). Uses VK's wall search, so it reaches far back in a wall; it is slower (about 10 s per 100 posts). This searches inside the given walls, not all of VK."
          },
          "includePinnedPosts": {
            "title": "Include pinned posts",
            "type": "boolean",
            "description": "Keep the post a wall pins on top. Turn off to skip it.",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Keep posts that share another post. The original's id, link, text, author and media are in the repost field.",
            "default": true
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Adds the newest comments of each post inside its row (comments array: text, date, likes, reply count, commenter id and link; no commenter names). Each comment is charged as its own event.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most comments read for each post when Include comments is on, newest first (1 to 1000).",
            "default": 20
          },
          "includeWallOwner": {
            "title": "Include wall owner stats",
            "type": "boolean",
            "description": "Adds the wall's community or profile to every row: name, type, member or follower count, verified badge, activity, site and description. Free, read in the same call.",
            "default": true
          },
          "includeRawPost": {
            "title": "Include raw VK post",
            "type": "boolean",
            "description": "Adds VK's full original post object (rawPost) to each row, for reposts, attachments or fields this Actor does not map.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}