{
  "openapi": "3.0.1",
  "info": {
    "title": "VK Video Scraper - Search, Channels, Clips & Download Links",
    "description": "Scrape VK Video (vkvideo.ru, vk.com/video) without an account: keyword searches with filters, channels (videos and clips), playlists, video links. Views, likes, comments, reposts, duration, date, author, player and MP4/HLS links, subtitles. Pay per video.",
    "version": "0.1",
    "x-build-id": "5Qu0kkP52fjtX7Gq4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hexagone-data~vk-video-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hexagone-data-vk-video-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/hexagone-data~vk-video-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hexagone-data-vk-video-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/hexagone-data~vk-video-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hexagone-data-vk-video-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": {
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Each word or phrase is one VK Video search, as typed in the search box of vkvideo.ru (Cyrillic or Latin, e.g. football highlights, котики), with the search filters below. Every page of results is read, up to the limits below.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "VK channels: a name (vk or @vk), club123 / public123 or -123 for a community, id123 or 123 for a person's page, or a channel address. Every video VK shows to logged-out visitors is read (with Include clips: its Clips tab too).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "VK addresses",
            "type": "array",
            "description": "Addresses as in your browser: a video or clip (vkvideo.ru/video-22822305_456242071, vk.com/video?z=video…, /clip-…, video_ext.php?oid=&id=), a channel (vkvideo.ru/@vk, /@vk/all for videos only, /@vk/clips, /@vk/lives, vk.com/videos-22822305, vk.com/<name>), a playlist (vkvideo.ru/playlist/-113218548_9), a search (vkvideo.ru/?q=word, vk.com/video?q=word). The home page and rubrics are refused, said in the Run summary.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "videoUrls": {
            "title": "Video addresses or ids",
            "type": "array",
            "description": "Single videos: an address or an id <owner>_<id> such as -22822305_456242071. Read 50 at a time. A video VK does not have (deleted, private, mistyped) is said in the Run summary (not_found), nothing charged for it.",
            "items": {
              "type": "string"
            }
          },
          "includeClips": {
            "title": "Include clips",
            "type": "boolean",
            "description": "On (default): a channel also gives its Clips tab (VK serves clips apart from videos), and a search keeps the clips of VK's Clips block on its first page. Off: videos only.",
            "default": true
          },
          "searchSort": {
            "title": "Sort search results",
            "enum": [
              "relevance",
              "latest",
              "longest"
            ],
            "type": "string",
            "description": "The order VK gives the results in. A filter VK does not apply is refused, said in the Run summary (VK ignores silently what it does not know: the actor checks every filter on VK's answer).",
            "default": "relevance"
          },
          "searchContentType": {
            "title": "What to look for",
            "enum": [
              "all",
              "video",
              "clip",
              "live"
            ],
            "type": "string",
            "description": "Search filter of VK.",
            "default": "all"
          },
          "searchHdOnly": {
            "title": "HD only",
            "type": "boolean",
            "description": "Search filter of VK: HD videos only.",
            "default": false
          },
          "searchDuration": {
            "title": "Duration",
            "enum": [
              "any",
              "long",
              "short"
            ],
            "type": "string",
            "description": "Search filter of VK.",
            "default": "any"
          },
          "maxItemsPerInput": {
            "title": "Max videos per input",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each input (search, channel tab, playlist) after this many new videos (0 = no limit). For a channel, its videos and its clips each count up to this number.",
            "default": 100
          },
          "maxItems": {
            "title": "Max videos in the run",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many videos (0 = no limit).",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (default): VK answers it without its anti-robot page (measured). If VK refuses 3 times in a row, the actor switches to Apify residential proxy for the rest of the run (if your account has it). Your own choice is used for every request.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}