{
  "openapi": "3.0.1",
  "info": {
    "title": "VK Posts Scraper: VK Wall, Comments (VKontakte, ВКонтакте)",
    "description": "VK (VKontakte) posts scraper and API, no login: every post of a community or profile wall with exact time, likes, reactions, reposts and views, text, photos, videos, links, polls, the reposted post, author and wall owner; comments with replies on request; post links too. Misses free.",
    "version": "0.1",
    "x-build-id": "HmVGXh1Q6fPPAuHx8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~vk-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-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/hyperbach~vk-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-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/hyperbach~vk-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-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",
            "maxItems": 5000,
            "type": "array",
            "description": "One value a line: a handle (durov, @durov), a community or profile link (https://vk.com/team, m.vk.com and vk.ru too), club123 / public123 / id123, an owner id (-22822305 for a community, 1 for a person), a wall link (https://vk.com/wall-22822305) or a post link (https://vk.com/wall-22822305_1736006, also ?w=wall…). A value that names no wall gets a free row that says why.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max posts (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most post rows of the whole run; 0 = no cap beyond your charge limit (every post of every wall).",
            "default": 0
          },
          "maxItemsPerTarget": {
            "title": "Max posts per wall",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most post rows of each wall; 0 = the whole wall (to its first post).",
            "default": 0
          },
          "containsText": {
            "title": "Only posts whose text contains",
            "type": "string",
            "description": "One word or phrase. Only posts whose own text holds it are kept (case does not matter). The wall is read newest first up to 'Posts to read for a text filter'."
          },
          "excludeText": {
            "title": "Skip posts whose text contains",
            "type": "array",
            "description": "Words or phrases: a post whose text holds any of them is left out.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "matchRepostText": {
            "title": "Check the reposted post's text too",
            "type": "boolean",
            "description": "On: the text filters also read the text of the post a repost shares. Off: only the post's own text.",
            "default": false
          },
          "maxPostsToScan": {
            "title": "Posts to read for a text filter (per wall)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "With a text filter, the most posts read on each wall to find matches (100 a call); 0 = the whole wall. The posts the filter leaves out are free.",
            "default": 2000
          },
          "publishedAfter": {
            "title": "Posted on or after (UTC)",
            "type": "string",
            "description": "YYYY-MM-DD. The wall is read newest first and stops at its first own post older than this day; pinned and co-published posts never stop it."
          },
          "publishedBefore": {
            "title": "Posted on or before (UTC)",
            "type": "string",
            "description": "YYYY-MM-DD. Posts newer than the end of this day are left out."
          },
          "postedWithinDays": {
            "title": "Posted within the last N days",
            "minimum": 0,
            "maximum": 36500,
            "type": "integer",
            "description": "For a scheduled run: only the posts of the last N days (the later of this and the date above); 0 = off.",
            "default": 0
          },
          "includePinnedPosts": {
            "title": "Include pinned posts",
            "type": "boolean",
            "description": "The post a wall pins at its top. It still follows the text and date filters.",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Posts that share another post; each carries the shared post in repost_chain.",
            "default": true
          },
          "includeOtherOwners": {
            "title": "Include other communities' co-published posts",
            "type": "boolean",
            "description": "VK shows some posts of other communities on a wall (co-published posts). Off: only the wall's own posts. On: those too, each with is_co_published true.",
            "default": false
          },
          "postFilter": {
            "title": "Which posts of a wall",
            "enum": [
              "all",
              "owner",
              "others"
            ],
            "type": "string",
            "description": "all: every post VK lists on the wall; owner: the owner's posts; others: posts other people wrote on a profile's wall.",
            "default": "all"
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Each post's comments inside its row, oldest first. A post whose comments are closed says so (comments_status).",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "The most top-level comments read for each post (and the most replies of each comment); 0 = every comment.",
            "default": 100
          },
          "includeCommentReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Each comment's replies under it. Turns comments on.",
            "default": false
          },
          "includeRaw": {
            "title": "Include VK's raw record",
            "type": "boolean",
            "description": "Adds the post as VK's API gives it (the raw column).",
            "default": false
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}