VKCaptchaToken
Solve a VK not-robot CAPTCHA through your own proxy from its redirect URI and get the token. Shows the request schema, an example and provider prices.
VKCaptchaToken solves VK's "not robot" CAPTCHA through your proxy from its redirect_uri and returns a token to send back to VK. VK answers some API requests with this CAPTCHA instead of data, and the response carries the redirect_uri that opens it. There is no proxyless variant.
To solve the slider yourself in your own client, use VkCaptchaRecognition instead.
Use your proxy
task.proxy is required on this task type, and the provider solves from that address. The proxy must keep one IP for the whole solve: see Keep the same IP for the whole solve. Make the VK request that follows from the same address.
Find the parameters
redirectUriis the URL VK returns when an API request needs a CAPTCHA. It points athttps://id.vk.com/not_robot_captchaand carries asession_tokenquery parameter. Thesession_tokenis one-time, so request a freshredirectUrifor every task.userAgentis the User-Agent of the browser or client that made the VK request. The CAPTCHA is loaded with it, so use the same value when you submit the token, and use a current browser User-Agent.
Use the token
Send solution.token to VK to continue the request that triggered the CAPTCHA. To find the request parameter that carries it, pass the CAPTCHA once in a browser with the DevTools Network tab open and look at the request that follows.
If VK rejects the token, check that the proxy kept one IP for the whole solve, then that redirectUri is the one from the request you are continuing.
Check Provider stats for live success rates and solve times before you pick a provider.
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
2Captcha | $1.45 |
Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in a workspace of the AnySolver dashboard. Example: |
task* | object | Yes | The task body. Required fields depend on the task type. See Tasks for per-task schemas. View task properties |
settings | object | No | Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes. View settings reference |
Task Object Properties
The task field accepts an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
redirectUri* | string | Yes | The redirect_uri returned by the VK API when it answers a request with a captcha (the not_robot_captcha URL). It carries a one-time session_token, so fetch a fresh one for every task. Example: |
userAgent* | string | Yes | User-Agent of the browser or client that talked to VK. The captcha is loaded with it, so it must match the one you use when submitting the token. Use a modern browser User-Agent. Example: |
proxy* | string | object | Yes | Proxy the provider solves through, as a string or an object. See Proxy configuration. View proxy configurationExample: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "VKCaptchaToken",
"redirectUri": "https://id.vk.com/not_robot_captcha?domain=vk.com&session_token=eyJ....HGsc5B4LyvjA&variant=popup&blank=1",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
"proxy": "http://user:pass@1.2.3.4:8080"
}
}Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes |
Example: | |
taskId | string | No | Unique identifier returned when the task was created. Example: |
errorCode | No | Machine-readable error code. Example: | |
errorDescription | string | No | Human-readable error message with resolution hints. Example: |
cost | number | No | Actual cost charged for this task in USD. Example: |
taskType | No | The type of CAPTCHA task to solve. Example: | |
provider | No | Provider that handled this task. While processing, the provider currently solving it. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
token* | string | Yes | The solved CAPTCHA token to submit with your form. Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |