Yandex SmartCaptcha Task Types and How to Solve Them

Cover image for the article "Yandex SmartCaptcha Task Types and How to Solve Them"
Contents

Yandex SmartCaptcha presents checkbox, slider, and image based challenges. The challenge type determines the format of the Captcha Solver response: a token, recognized text, click coordinates, or a number of arrow presses.

This guide covers five challenge types. For each one, it explains how to identify the challenge, which parameters to send to the Captcha Solver API, where to find the result, and how to apply it on the target site. Python and JavaScript examples are linked in the relevant sections.

Yandex CAPTCHA challenge types#

Identify the challenge by its interface and compare it with the illustrations below. Then select the corresponding Captcha Solver API task type.

Yandex CAPTCHA challenge types: slider, checkbox, silhouettes, kaleidoscope, and text recognition

Interfaces for the five Yandex SmartCaptcha challenge types.

Challenge Captcha Solver method Solution
Checkbox YandexSmartCaptchaTaskProxyless or YandexSmartCaptchaTask token
Slider YandexSmartCaptchaTaskProxyless or YandexSmartCaptchaTask token
Text recognition ImageToTextTask recognized text
Silhouettes SmartCaptchaTask click coordinates
Kaleidoscope PazlCaptchaTask number of arrow presses

The table shows Captcha Solver HTTP API task types. In the Python SDK, the API type SmartCaptchaTask corresponds to YandexSmartCaptchaImageTask, and PazlCaptchaTask corresponds to YandexSmartCaptchaKaleidoscopeTask. Use the SDK class names when working with the library and the task type names in the table when calling the API directly.

For a checkbox or slider, provide the page URL and the site key configured for the widget. For text recognition, provide the challenge image. For silhouettes, provide the main image and the instruction image. For the kaleidoscope, provide the image and the step array for the current puzzle from the Yandex SmartCaptcha widget response.

Send images at their original resolution and quality: do not crop, resize, or compress them. Altering an image before sending it to Captcha Solver may reduce recognition speed and accuracy. Original dimensions are especially important for silhouettes because the returned coordinates are relative to the submitted image.

Checkbox#

A block labeled “I’m not a robot” indicates a checkbox challenge. To complete it manually, the user clicks the block and finishes any additional challenge shown by the widget. To solve it through Captcha Solver, submit the page URL and site key. The API returns a token to apply on the page.

Yandex SmartCaptcha “I’m not a robot” checkbox

The “I’m not a robot” checkbox in the Yandex SmartCaptcha widget.

How to solve a Yandex SmartCaptcha checkbox#

To solve the challenge without supplying your own proxy, create a YandexSmartCaptchaTaskProxyless task. If the challenge must be solved from the same IP address as the site session, use YandexSmartCaptchaTask. Supply the proxy settings for that session; Captcha Solver uses the proxy when loading and solving the challenge.

Task parameters#

Parameter Required Value Example
websiteURL yes full URL of the page containing the CAPTCHA https://example.com/login
websiteKey yes Yandex SmartCaptcha site key; it is usually found in the widget container's data-sitekey attribute Y5Lh0tiEXAMPLESITEKEY0123456789AbCdEfGhI
userAgent no User-Agent used by Captcha Solver while solving; if supplied, use the current site session's User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
cookies no cookies from the current user session session=test_session_123
proxyType yes for YandexSmartCaptchaTask proxy protocol: http, https, socks4, or socks5 http
proxyAddress yes for YandexSmartCaptchaTask proxy IP address or hostname 192.0.2.10
proxyPort yes for YandexSmartCaptchaTask proxy port 8080
proxyLogin no proxy username, if authentication is required user23
proxyPassword no proxy password, if authentication is required p4$w0rd

Supply proxy fields only for YandexSmartCaptchaTask. The table values are illustrative; replace them with values from the current challenge and session. Do not publish real site keys, cookies, or proxy credentials.

How to use the solution#

After the task is solved, the Captcha Solver API response with status ready contains the token in solution.token:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "token": "dD0xNzk1NTMy...NzljNg=="
    },
    "createTime": 1795532443,
    "endTime": 1795532482
}

The token is shortened in this example. Pass the complete solution.token string from the API response to the site, without the ellipsis.

Apply the token on the page using the method supported by its integration: pass it to the widget's callback handler or set the smart-token field. Then continue the action that triggered the CAPTCHA, such as submitting a login form. A successful Captcha Solver response means the task was solved; the target site decides whether to accept the token when it processes that action. Check the site's response.

Slider#

To pass a slider labeled “Drag to the right” manually, the user drags it to the right until the widget completes the check. Captcha Solver uses the same token task types as for a checkbox: YandexSmartCaptchaTaskProxyless or YandexSmartCaptchaTask. If moving the control rearranges image fragments and the goal is to find the correct position, it is a kaleidoscope challenge, covered separately below.

Yandex SmartCaptcha slider

This challenge presents a slider that the user must drag to the right.

How to solve a Yandex SmartCaptcha slider#

Create a YandexSmartCaptchaTaskProxyless task, or use YandexSmartCaptchaTask if the challenge must be loaded and solved through the current session's proxy. Supply websiteURL and websiteKey from the widget in both cases. For YandexSmartCaptchaTask, also supply proxyType, proxyAddress, and proxyPort, plus proxyLogin and proxyPassword if the proxy requires authentication. Supply the optional userAgent and cookies when needed to reproduce the session context. The checkbox parameter table explains these fields.

For a slider, the Captcha Solver API returns a token in solution.token. Apply it on the page in the same way as for a checkbox: pass it to the widget's callback handler or the smart-token field, continue the user's action, and check the site's response. See Checkbox for the full procedure.

If the slider controls a puzzle made of scrambled image fragments, use PazlCaptchaTask as described in Kaleidoscope.

YandexSmartCaptchaTaskProxyless and YandexSmartCaptchaTask examples#

Text recognition#

For a text recognition challenge, the user reads the characters in the image and enters them in the answer field below it. Captcha Solver returns the recognized text as a string; your integration enters that string for the current challenge.

Yandex SmartCaptcha widget with a text recognition challenge

The text challenge in the Yandex SmartCaptcha widget: an image, an answer field, and a submit button.

Illustrative English-language text challenge image

An illustrative English-language text challenge image. Submit the original image from your current challenge in the body field of an ImageToTextTask.

How to solve a Yandex SmartCaptcha text recognition challenge#

Create an ImageToTextTask and send the original image as Base64 in body. If you know the answer requirements in advance, set the relevant optional parameters from the table below. This task does not require the page URL or site key.

Task parameters#

Parameter Required Value Example
body yes Base64 encoded image /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB...
phrase no true if the answer contains multiple words true
case no true if letter case matters false
numeric no character type constraint 0
math no true if the image contains a mathematical expression false
minLength no minimum answer length 10
maxLength no maximum answer length 20
comment no text instructions for the solver Recognize the text
imgInstructions no Base64 encoded instruction image iVBORw0KGgoAAAANSUhEUgAAAeAAAABQCAYAAADBaaZUAAA6B0lEQVR4nO1dd1wUR9+fvYODoyhFRRBsoEQsgGLviGIXe9dY...

The numeric value controls which characters are allowed:

  • 0: no restriction;
  • 1: digits only;
  • 2: letters only;
  • 3: any characters, with at least one digit;
  • 4: any characters, with at least one letter.

The table shows the format of each field. Supply optional parameters only when you know the relevant requirement in advance. Base64 examples show the beginning of actual encoded images; submit the complete Base64 string without an ellipsis when creating a task.

How to use the solution#

The following response is from a separate text challenge. A Captcha Solver API response with status ready contains the recognized string in solution.text:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "text": "possible thermal"
    },
    "createTime": 1795680202,
    "endTime": 1795680218
}

Enter the returned text in the answer field for the same challenge image that you submitted. Then continue the action on the page and check the site's response. If the image changed after you created the Captcha Solver task, create a new task for the new image.

ImageToTextTask examples#

Silhouettes#

This challenge contains a main image with objects and a separate instruction image showing the order in which to click them. To solve it manually, the user finds the indicated objects in the main image and clicks them in the order shown by the instructions.

Yandex SmartCaptcha widget with a silhouette selection challenge

The silhouette challenge in the Yandex SmartCaptcha widget.

The main image of the silhouette challenge

The main challenge image contains the objects to select. Submit it in the image field.

Instruction image showing the order of the silhouettes

The instruction image specifies the click order. Submit it in imgInstructions.

How to solve a Yandex SmartCaptcha silhouette challenge#

Create a SmartCaptchaTask. Send the main image in image and the image showing the object order in imgInstructions, both encoded as Base64. Captcha Solver returns coordinates on the main image in the required click order. This method does not require the page URL or a proxy.

Task parameters#

Parameter Required Value Example
image yes Base64 encoded main image /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcp...
imgInstructions yes Base64 encoded image showing the icon order iVBORw0KGgoAAAANSUhEUgAAAeAAAABQCAYAAADBaaZUAAA6B0lEQVR4nO1dd1wUR9+fvYODoyhFRRBsoEQsgGLviGIXe9dY...
comment no additional text instructions for the solver Select the objects in the order shown by the instructions

The Base64 values in the table show the beginning of actual encoded images. Submit the complete Base64 strings for both images, without ellipses, when creating a task.

How to use the solution#

The Captcha Solver API response with status ready contains an ordered array of click points in solution.coordinates:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "coordinates": [
            {
                "x": 117,
                "y": 142
            },
            {
                "x": 210,
                "y": 126
            },
            {
                "x": 63,
                "y": 54
            },
            {
                "x": 252,
                "y": 31
            },
            {
                "x": 169,
                "y": 39
            }
        ]
    },
    "createTime": 1795780288,
    "endTime": 1795780294
}

Coordinates are measured from the top left corner of the submitted image. Click the points in order. If the browser displays the image at a different size, scale the coordinates by the horizontal and vertical size ratios first; otherwise the clicks will be misplaced.

SmartCaptchaTask examples#

Kaleidoscope#

A kaleidoscope challenge presents an image made of scrambled fragments and an arrow control. To complete it manually, the user moves the slider or presses the arrow repeatedly until the fragments form the correct image, then confirms the solution in the widget. There is one correct position. Instead of finding it manually, Captcha Solver returns the number of arrow presses required for the current puzzle.

Yandex SmartCaptcha widget with a kaleidoscope challenge

The kaleidoscope in the Yandex SmartCaptcha widget: image fragments, a slider, and a submit button.

The kaleidoscope puzzle image itself

A separate example of a raw puzzle image. Submit the image from your current puzzle in the image field of a PazlCaptchaTask.

How to solve a Yandex SmartCaptcha kaleidoscope#

Create a PazlCaptchaTask. Once the kaleidoscope loads, obtain the array of integers named task from the JSON response to the widget's /check request. Obtain the puzzle image for the same challenge from the request to img.smartcaptcha.yandexcloud.net/image. Send the image as Base64 in image and the step array as a JSON string in task, for example "[15,24,4,13,10]". The image and task values must come from the same presentation of the challenge. If the puzzle refreshes, obtain both values again. This method does not require the page URL or a proxy.

Task parameters#

Parameter Required Value Example
image yes Base64 encoded puzzle image /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcp...
task yes nonempty array of integers from the current puzzle's /check JSON response, serialized as a string "[15,24,4,13,10]"

The Base64 example shows the beginning of an actual encoded image. Submit the complete Base64 string for the current puzzle without an ellipsis. Do not guess the step array: the Yandex SmartCaptcha widget provides it in the /check response.

How to use the solution#

The Captcha Solver API response with status ready contains a string in solution specifying how many times to press the arrow:

{
    "errorId": 0,
    "status": "ready",
    "solution": "7",
    "createTime": 1795532344,
    "endTime": 1795532351
}

Press the right arrow the indicated number of times, then confirm the solution. Do not refresh the challenge during this process: a new puzzle requires a different number of presses.

PazlCaptchaTask examples#

Quick reference#

The table summarizes the task input, the Captcha Solver API result, and the action to take on the target site.

What you see What you send What you receive What to do next
checkbox or slider websiteURL, websiteKey, and proxy settings if needed solution.token apply the token through smart-token or the callback supported by the site
text body: a Base64 encoded image solution.text enter the text in the current challenge's answer field
silhouettes Base64 encoded image and imgInstructions solution.coordinates click the points in order, accounting for the displayed image scale
kaleidoscope Base64 encoded image and a JSON string in task solution: a string containing a number press the arrow that many times for the current puzzle

The shape of solution depends on the challenge type. Apply the result to the same challenge and session used to create the task.

If the solution does not work#

If the target site rejects a result, check whether the task matched the current challenge and session:

  • The challenge refreshed, so the result belongs to a previous image.
  • The token was obtained for a different page URL, site key, or user session.
  • The site requires the challenge to be solved from the session's IP address, but the task used no proxy or a different proxy.
  • The proxy is unstable, has a poor connection, or does not meet the site's region or network requirements.
  • The coordinates refer to the original image, but the image is displayed at a smaller size on the page.
  • The token was written to a hidden field, but the widget callback was not invoked.
  • The form was submitted, but the site rejected the result during server side validation.

If the site requires matching IP addresses, open the target page through a proxy and create a YandexSmartCaptchaTask using that same proxy. A YandexSmartCaptchaTaskProxyless task does not use your proxy, so the solving IP address may differ from the session IP address and the site may reject the token. If the issue persists, check the proxy's availability and stability. You can also test another region, provider, or proxy type. Mobile and residential proxies may help with sites that impose additional restrictions, but they do not guarantee token acceptance. If your proxy rotates, keep the same IP address while loading the page, solving the challenge, and applying the token within one session.

Record the task ID and Captcha Solver API response without sensitive data. Compare them with the site's response after applying the result to identify the step at which the failure occurred.

Conclusion#

For a checkbox or ordinary slider, Captcha Solver returns solution.token; pass it to the widget integration on the page. For text recognition, solution.text contains the characters to enter in the current challenge's answer field. For silhouettes, solution.coordinates contains the click points for objects in the main image, in the order specified by the instruction image. For a kaleidoscope, solution is a string containing the number of presses on the puzzle's arrow control. Select the task type based on the challenge interface, submit values from the current challenge, and check the site's response after applying the result.

Python and JavaScript examples are available for all five challenge types. Choose an example for the appropriate method, replace its sample parameters with values from the current challenge, and verify how the site handles the response.

If Captcha Solver returns a solution but the site rejects it, contact support@captcha-solver.com. Include the task ID and a description of the site's response, without keys or session data.

Captcha Solver documentation#

Examples for each challenge type#

Choose the example for your challenge and replace its sample parameters with values from the current CAPTCHA:

Yandex documentation#

Account and support#

Was this article helpful?