Menu

Bypass Turnstile captcha

Turnstile captcha is another attempt to replace reCaptcha. We support all its subtypes automatically: manual, non-interactive, and invisible. No need to specify the subtype. Also, providing your own custom User-Agent is not necessary and won't work at all.

Test this type of task first for bypass rate before testing tasks with proxies.

Turnstile captcha example
Captcha example

Task object

PropertyTypeRequiredPurpose
typeStringYesTurnstileTaskProxyless
websiteURLStringYesAddress of a target web page. Can be located anywhere on the web site, even in a member area. Our workers don't navigate there but simulate the visit instead.
websiteKeyStringYesTurnstile sitekey
actionStringNoOptional "action" parameter.
turnstileCDataStringNoOptional "cData" token

Request example

Python
Javascript
Go
PHP
Java
C#
bash
#pip3 install anticaptchaofficial

from anticaptchaofficial.turnstileproxyless import *

solver = turnstileProxyless()
solver.set_verbose(1)
solver.set_key("YOUR_API_KEY_HERE")
solver.set_website_url("https://website.com")
solver.set_website_key("SITE_KEY")

# Optionally specify page action
solver.set_action("login")

# Optionally specify cData token
solver.set_action("some_custom_token")

# Specify softId to earn 10% commission with your app.
# Get your softId here: https://anti-captcha.com/clients/tools/devcenter
solver.set_soft_id(0)

token = solver.solve_and_return_solution()
if token != 0:
    print("token: "+token)
else:
    print("task finished with error "+solver.error_code)

Task solution object

PropertyTypePurpose
tokenStringToken string required for interacting with the submit form on the target website.
userAgentStringUser-Agent of the worker's browser. Use it when you submit the response token.

Response example

{
    "errorId":0,
    "status":"ready",
    "solution":
    {
        "token":"0.vtJqmZnvobaUzK2i2PyKaSqHELYtBZfRoPwMvLMdA81WL_9G0vCO3y2VQVIeVplG0mxYF7uX.......",
        "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
    },
    "cost":"0.001500",
    "ip":"46.98.54.221",
    "createTime":1472205564,
    "endTime":1472205570,
    "solveCount":"0"
}