{
  "openapi": "3.0.1",
  "info": {
    "title": "VK Posts Scraper",
    "description": "VK Posts Scraper exports public VK (VKontakte) wall posts of profiles and communities: text, date, likes, comments, reposts, views, reactions, author, attachments and reposted posts. Keyword search inside walls, date filters, optional comments. No login.",
    "version": "1.0",
    "x-build-id": "4p3cqmjP0rHCPsohz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~vk-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~vk-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~vk-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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 profiles, communities or posts",
            "type": "array",
            "description": "Handles or links, one per line: durov, @durov, https://vk.com/durov, https://vk.com/club22822305, https://vk.com/public22822305, https://vk.com/id1, or a single post https://vk.com/wall1_45616.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "VK URLs (optional)",
            "type": "array",
            "description": "Same as above, as a URL list (profile, community or post links).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "keywords": {
            "title": "Keywords (optional)",
            "type": "array",
            "description": "Words to search for. With targets: only the posts of those walls that contain the word. Without targets: VK's own community search finds public communities for the word, and their posts with the word are returned.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerTarget": {
            "title": "Max posts per target / keyword",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Posts are read 100 per page, page after page, until this number or the end of the wall. The limit is per target (and per keyword).",
            "default": 50
          },
          "maxItems": {
            "title": "Max posts in total (0 = no total limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many posts.",
            "default": 0
          },
          "maxPagesPerTarget": {
            "title": "Max wall pages per target (0 = no page limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each target after this many pages of 100 posts.",
            "default": 0
          },
          "publishedAfter": {
            "title": "Published on or after",
            "type": "string",
            "description": "Only posts from this date on (YYYY-MM-DD, UTC). The wall is read newest first, so paging stops at the first older post."
          },
          "publishedBefore": {
            "title": "Published on or before",
            "type": "string",
            "description": "Only posts up to this date (YYYY-MM-DD, UTC, inclusive)."
          },
          "wallFilter": {
            "title": "Whose posts",
            "enum": [
              "all",
              "owner",
              "others"
            ],
            "type": "string",
            "description": "VK's own wall filter.",
            "default": "all"
          },
          "includePinned": {
            "title": "Include pinned posts",
            "type": "boolean",
            "description": "Keep the pinned post at the top of a wall.",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposts",
            "type": "boolean",
            "description": "Keep posts that share another post (the shared post is in the repost column).",
            "default": true
          },
          "includeAttachments": {
            "title": "Include attachments",
            "type": "boolean",
            "description": "Photos, videos, links, documents, polls and audio of each post (largest image size, video page link, thumbnail).",
            "default": true
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Add each post's comments (with up to 10 replies each) in the comments column.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Comments are read 100 per page, oldest first, until this number.",
            "default": 20
          },
          "maxChannelsPerKeyword": {
            "title": "Communities per keyword (keywords without targets)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many communities found for a keyword are searched for posts with the keyword.",
            "default": 5
          },
          "maxConcurrency": {
            "title": "Parallel targets",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many targets are read at the same time.",
            "default": 3
          },
          "query": {
            "title": "Keyword (alias)",
            "type": "string",
            "description": "Same as keywords (one keyword)."
          },
          "maxItemsPerTarget": {
            "title": "Alias of maxPostsPerTarget",
            "type": "integer",
            "description": "Alias."
          },
          "maxPostsPerUrl": {
            "title": "Alias of maxPostsPerTarget",
            "type": "integer",
            "description": "Alias."
          },
          "count": {
            "title": "Alias of maxPostsPerTarget",
            "type": "integer",
            "description": "Alias."
          },
          "maxTotalPosts": {
            "title": "Alias of maxItems",
            "type": "integer",
            "description": "Alias."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}