{
  "openapi": "3.0.1",
  "info": {
    "title": "VK Posts Scraper",
    "description": "Collect public VK posts from pages, post links, or keyword searches across some public channels. Save post text, authors, dates, reactions, and media details, with public comments and replies when you turn them on.",
    "version": "4.0",
    "x-build-id": "gvEqbHQ2bmWwLHWnK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maximedupre~vk-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maximedupre-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/maximedupre~vk-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-maximedupre-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/maximedupre~vk-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-maximedupre-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": {
          "discoveryMethod": {
            "title": "Find posts by",
            "enum": [
              "targets",
              "keywords"
            ],
            "type": "string",
            "description": "Choose where to look for posts. If you leave this out of JSON input, the Actor uses VK pages and posts.",
            "default": "targets"
          },
          "targets": {
            "title": "VK pages and posts",
            "minItems": 1,
            "type": "array",
            "description": "Enter at least one VK link, handle, or owner ID. Links can point to profiles, communities, walls, or posts. Use links with or without https://, such as vk.com/durov. You can also enter IDs like id123, club123, public123, event123, or wall-123_456. Public posts need no VK login. The Actor skips private posts and posts that need a login.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "containsText": {
            "title": "Filter by word or phrase",
            "type": "string",
            "description": "For VK pages and posts only. Enter one word or phrase to keep posts that contain it in their own text. The match ignores letter case. Text from the original post inside a repost does not count. Leave it empty to skip this filter."
          },
          "maxItemsPerTarget": {
            "title": "Posts per submitted value",
            "minimum": 0,
            "type": "integer",
            "description": "Set the most matching posts for each VK page or post you enter. A post saved under an earlier entry in this run counts toward this limit. It adds no new row or charge. Leave this empty or set it to 0 for no limit per entry. The whole-run limit still applies."
          },
          "keywords": {
            "title": "Search keywords",
            "minItems": 1,
            "type": "array",
            "description": "Enter at least one word or phrase. Put each one on its own list entry. The search covers only some public VK channel posts. A result may lack the exact word or phrase you entered.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "publishedAfter": {
            "title": "Published after",
            "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
            "type": "string",
            "description": "Keep posts published from the start of this day in UTC or later. For JSON input, use YYYY-MM-DD. This checks the date of the post itself, even if it shares an older post. For wall posts, the Actor checks older pages until it reaches this date or runs out of posts."
          },
          "publishedBefore": {
            "title": "Published before",
            "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
            "type": "string",
            "description": "Keep posts through the end of this UTC day. For JSON input, use YYYY-MM-DD. This checks the date of the post itself, even if it shares an older post. The end of this day must be at or after the start set by Published after or Days of recent posts, whichever is later."
          },
          "recentDays": {
            "title": "Days of recent posts",
            "minimum": 1,
            "type": "integer",
            "description": "Keep posts from the last 24 hours for each day you enter, counted back from the time the run starts. For example, 1 means the last 24 hours. If you also set calendar dates, posts must pass all date filters."
          },
          "includePinnedPosts": {
            "title": "Include pinned posts",
            "type": "boolean",
            "description": "Keep this on to save pinned posts, which VK shows at the top of a page. Turn it off to skip them. Pinned posts still follow the date filters. When you choose VK pages and posts, they also follow the word or phrase filter.",
            "default": true
          },
          "includeReposts": {
            "title": "Include reposted posts",
            "type": "boolean",
            "description": "Keep this on to save reposts, which are posts a page shares from another post. Turn it off to skip them.",
            "default": true
          },
          "monitoringName": {
            "title": "Monitoring name",
            "type": "string",
            "description": "Reuse a name to skip posts already saved under that name. Enter a new name to start with a fresh history. Leave it blank to use the default history, which tracks runs with no monitoring name."
          },
          "includeComments": {
            "title": "Include comments and replies",
            "type": "boolean",
            "description": "Turn this on to save public comments and replies with each post. Each saved comment or reply is charged separately. When this is off, the Actor skips comments and replies. The post’s comment count appears when VK provides it, even when this is off.",
            "default": false
          },
          "commentsPerPost": {
            "title": "Comments and replies per post",
            "minimum": 0,
            "type": "integer",
            "description": "When Include comments and replies is on, save up to this many comments and replies in total per post, where available. Leave it blank for up to 10 or set it to 0 for all available comments and replies.",
            "default": 10
          },
          "maxItems": {
            "title": "Maximum posts to save",
            "minimum": 0,
            "type": "integer",
            "description": "Set the most posts to save in one run. Leave it empty or set it to 0 to save all available matches. In VK pages and posts, the limit per entry still applies."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}