{
  "openapi": "3.0.1",
  "info": {
    "title": "VK Scraper - Posts, Comments, Communities",
    "description": "Scrape public VK (VKontakte) data: wall posts with likes, views and attachments, comments with replies, profile and community details, and community search. No login, no proxy setup.",
    "version": "0.3",
    "x-build-id": "faOlVZ4ymub8Zccj4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/teodor_banea~vk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-teodor_banea-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/teodor_banea~vk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-teodor_banea-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/teodor_banea~vk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-teodor_banea-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "posts",
              "comments",
              "details",
              "communitySearch"
            ],
            "type": "string",
            "description": "Choose what the run collects. Posts: wall posts of profiles and communities (or the posts you link). Comments: comments and replies of posts. Details: one row per profile or community. Community search: communities matching your words.",
            "default": "posts"
          },
          "targets": {
            "title": "Profiles, communities or posts",
            "type": "array",
            "description": "Enter VK profiles or communities, one per line: a handle (durov), a page URL (https://vk.com/vk, vk.ru works too), club123 / public123 / id123, or a numeric id (communities as -123). In Wall posts mode you can also paste post links (https://vk.com/wall-22822305_1). In Comments mode, profiles and communities give the comments of their latest posts. Up to 1,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Keep only posts published on or after this date (UTC), or within a recent period such as \"7 days\". Walls are read newest first, so this also makes the run faster. Useful for scheduled runs."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Keep only posts published before this date (UTC). For an old date the Actor jumps straight to that part of the wall."
          },
          "keyword": {
            "title": "Keyword (search inside each wall)",
            "type": "string",
            "description": "Return only the posts of each profile or community above that contain this word or phrase (VK's own wall search). This is a search inside the walls you list, not a search of all of VK. Keyword searches are slower (a few seconds per 100 posts)."
          },
          "includePinned": {
            "title": "Include pinned posts",
            "type": "boolean",
            "description": "Include the post pinned at the top of a wall (it can be older than the rest).",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Include posts that share another post (the original's id, link, text and date are in the repostOf… fields).",
            "default": true
          },
          "maxPostsPerTarget": {
            "title": "Maximum posts per profile or community",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Limit the posts taken from each wall (newest first). In Comments mode: how many of the latest posts of each wall have their comments read. Set to 0 for all.",
            "default": 100
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Enter the post links whose comments you want (https://vk.com/wall-22822305_1739770 or https://vk.com/vk?w=wall-22822305_1739770). Up to 2,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Also return the replies under each comment (whole threads, with parentCommentId).",
            "default": true
          },
          "includeCommenterNames": {
            "title": "Include commenter names",
            "type": "boolean",
            "description": "Fill authorName for comments written by people (and keep their names in @mentions). Off by default for privacy: authorId and authorUrl are always given. Community authors always keep their name.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Maximum comments per post",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Limit the comments (top-level plus replies) taken from each post. Set to 0 for all.",
            "default": 500
          },
          "searchQueries": {
            "title": "Community search queries",
            "type": "array",
            "description": "Enter words to find communities (groups, public pages and events), one search per line, in any language (e.g. music, футбол). Results come in VK's own order.",
            "items": {
              "type": "string"
            }
          },
          "includeCommunityDetails": {
            "title": "Include community details",
            "type": "boolean",
            "description": "Add description, website, status, published contact e-mails / phones / roles and addresses (coordinates, phone, opening hours) to each community found. Costs one extra request per 20 communities, plus one per community that shows addresses.",
            "default": true
          },
          "maxResultsPerQuery": {
            "title": "Maximum communities per query",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Limit the communities taken from each search query. Set to 0 for as many as VK lists.",
            "default": 100
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Limit the total rows of the run. 0 = unlimited (capped at 10,000 to prevent a surprise bill).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}