VkCaptchaRecognition
Solve the VK slider CAPTCHA from its image and steps array and get the slider answer. Shows the request schema, an example and provider prices.
VkCaptchaRecognition solves the VK "not robot" slider from the images VK serves, without opening the CAPTCHA page. You send the slider image and the steps array. The response tells you how far to move the slider and gives an answer in the format the VK API expects.
To solve from the redirect_uri instead, use VKCaptchaToken.
Find the inputs
Both inputs come from the response to the call the CAPTCHA widget makes when it loads, captchaNotRobot.getContent on api.vk.com:
imageBase64: the slider image from that response, as base64. Adata:prefix is removed for you.steps: thestepsarray from the same response, passed through unchanged.
Use the image and steps from the same widget load. A new load produces a new pair.
Read the answer
Use solution.bestStep if you move a slider in a browser, or solution.answer if you call the VK API directly. The response schema below describes every solution field.
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 | ||
imageBase64* | string | Yes | Base64-encoded slider image from the captchaNotRobot.getContent response that VK returns when the captcha widget loads. A data URI prefix is stripped automatically. Example: |
steps* | number[] | Yes | The steps array from the same captchaNotRobot.getContent response, passed through unchanged. Example: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "VkCaptchaRecognition",
"imageBase64": "/9j/4AAQSkZJRg......",
"steps": [
5,
19,
14,
14,
6,
4,
8,
9,
23,
23,
14,
23,
3,
13,
16,
8,
2,
4,
6,
16,
1,
1,
3,
12,
23,
18,
12,
24,
17,
7,
6,
22,
2,
4,
0,
22,
3,
18,
11,
5,
4,
5,
6,
14,
22,
21,
6,
10,
0,
3,
14,
18,
19,
2,
24,
0,
3,
23,
9,
21,
5,
24,
21,
0,
4,
15,
14,
21,
8,
5,
17,
19,
12,
19,
15,
17,
21,
11,
8,
4,
15,
0,
18,
16,
19,
4,
19,
20,
21,
22,
16,
10,
20,
12,
19,
5,
23,
24,
8
]
}
}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 |
|---|---|---|---|
bestStep* | number | Yes | Number of steps to move the slider to solve the captcha. Example: |
solution* | number[] | Yes | The list of steps that solves the captcha. View solution propertiesExample: |
answer* | string | Yes | The solution encoded in the format the VK API expects. Send it back to VK to pass the check. Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |
preview | string | No | Base64 image showing the result of applying the solution steps, for debugging. Example: |