{
  "openapi": "3.0.1",
  "info": {
    "title": "VK Posts Scraper | VKontakte Groups & Comments | Official API",
    "description": "Парсер ВК (ВКонтакте): scrape public VK posts from groups, communities, profiles and post links, search posts by keyword, add comments with replies. Likes, reposts and views. Official VK API, no login. Filters before you pay, only-new monitoring. Never a silent empty run.",
    "version": "0.1",
    "x-build-id": "WPt5swTGEp4CjJJfk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidrows~vk-posts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidrows-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/solidrows~vk-posts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidrows-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/solidrows~vk-posts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidrows-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": {
          "sources": {
            "title": "Communities, profiles or post links",
            "type": "array",
            "description": "One per line. Accepts links (vk.com/rbc, vk.com/club1, vk.com/public123, vk.com/id1, m.vk.com, vk.ru), short names (rbc), club123 / public123 / id123, a negative number for a community (-25232578) or a positive number for a user, and direct post links (vk.com/wall-25232578_19140887 or ?w=wall...).",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search keywords (optional)",
            "type": "array",
            "description": "Find public posts across all of VK by keyword, phrase or #hashtag, newest first. VK returns at most about 1 000 results per query. Combine with the date range to cut the noise.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerSource": {
            "title": "Max posts per source",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many saved posts for each community, profile or search query. Posts rejected by the filters below do not count.",
            "default": 100
          },
          "dateFrom": {
            "title": "Posted after (date)",
            "type": "string",
            "description": "Only posts published on or after this moment. Use 2026-11-01, a full ISO date-time, or a relative value such as 7 days, 2 weeks, 1 month."
          },
          "dateTo": {
            "title": "Posted before (date)",
            "type": "string",
            "description": "Only posts published on or before this date (2026-11-15 includes the whole day). Relative values work too."
          },
          "postsFilter": {
            "title": "Whose posts",
            "enum": [
              "all",
              "owner",
              "others"
            ],
            "type": "string",
            "description": "For community walls: keep posts published by the community itself, or only the ones other users posted on its wall.",
            "default": "all"
          },
          "includePinned": {
            "title": "Include the pinned post",
            "type": "boolean",
            "description": "VK always returns the pinned post first, even when it is old. Turn off to skip it.",
            "default": true
          },
          "skipAds": {
            "title": "Skip ads",
            "type": "boolean",
            "description": "Skip posts that VK marks as advertising.",
            "default": false
          },
          "minLikes": {
            "title": "Min likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many likes. 0 = no limit.",
            "default": 0
          },
          "minViews": {
            "title": "Min views",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only posts with at least this many views. 0 = no limit.",
            "default": 0
          },
          "includeWords": {
            "title": "Text contains any of",
            "type": "array",
            "description": "Keep only posts whose text contains at least one of these words or phrases (case-insensitive). Empty = no filter.",
            "items": {
              "type": "string"
            }
          },
          "excludeWords": {
            "title": "Text contains none of",
            "type": "array",
            "description": "Drop posts whose text contains any of these words or phrases (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "onlyNewPosts": {
            "title": "Only new posts (monitoring)",
            "type": "boolean",
            "description": "Remember the posts already delivered and return only new ones on the next run. Schedule the Actor and every run returns just the fresh posts. The memory is kept per community or search query in the key-value store vk-posts-scraper-state.",
            "default": false
          },
          "includeComments": {
            "title": "Scrape comments",
            "type": "boolean",
            "description": "Also save comments of every saved post. Names are the public names VK returns for the author.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper limit of comments (including replies) saved for each post.",
            "default": 50
          },
          "includeReplies": {
            "title": "Include replies in threads",
            "type": "boolean",
            "description": "Also save replies inside comment threads. Each reply has parentId set to the top-level comment.",
            "default": true
          },
          "commentsSort": {
            "title": "Comments order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Order of the top-level comments.",
            "default": "asc"
          },
          "includeCommunityInfo": {
            "title": "Add community info row",
            "type": "boolean",
            "description": "Save one extra row per community or profile with members/followers, description, verification, site, activity, city and country. Billed as a separate event.",
            "default": false
          },
          "maxPostsToScan": {
            "title": "Max posts to scan per source",
            "minimum": 100,
            "maximum": 200000,
            "type": "integer",
            "description": "Safety limit for how deep the Actor reads a wall while looking for posts that pass the filters. Raise it for very long walls with strict filters.",
            "default": 5000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}