How to automatically solve Arkose Labs captcha?

CAPTCHAFORUM

Administrator
1629982657305.png

The method is pretty simple:
  1. You need to locate two values on the page with Arkose Labs captcha
    • - Public key
    • - Service URL (surl)

Public key can be found inside data-pkey parameter of funcaptcha's div element or inside an input element with name fc-token - just extract the key indicated after pk from the value of this element.
Service Url can be also found in fc-token - that is a value of surl parameter.
Service Url is optional parameter and if you don't provide it we use a default value that is valid for most cases, but we recommend you to provide it.
  1. Submit a HTTP GET or POST request to our API URL: http://2captcha.com/in.php with method set to funcaptcha, provide values found on previous step for publickey and surl parameter and full page URL as value for pageurl.
    You can find the full list of parameters in the table below.

    Request URL example
    http://2captcha.com/in.php?key=1abc234de56fab7c89012d34e56fa7b8&method=funcaptcha&publickey=12AB34CD-56F7-AB8C-9D01-2EF3456789A0&surl=https://client-api.arkoselabs.com&pageurl=http://mysite.com/page/with/funcaptcha/
  2. If everything is fine server will return the ID of your captcha as plain text, like: OK|2122988149 or as JSON {"status":1,"request":"2122988149"} if json parameter was used.
    Otherwise server will return an error code.
  3. Make a 10-20 seconds timeout then submit a HTTP GET request to our API URL: http://2captcha.com/res.php to get the result.
    The full list of parameters is in the table below.
    If captcha is already solved server will respond in plain text or JSON and return the answer token that looks like:
    3084f4a302b176cd7.96368058|r=ap-southeast-1|guitextcolor=%23FDD531|metabgclr=%23FFFFFF|metaiconclr=%23202122|meta=3|lang=en|pk=12AB34CD-56F7-AB8C-9D01-2EF3456789A0|cdn_url=https://cdn.funcaptcha.com/fc|surl=https://funcaptcha.com
    If captcha is not solved yet server will return CAPCHA_NOT_READY result. Repeat your request in 5 seconds.
    If something went wrong server will return an error code.
  4. Locate the element with id fc-token and put the token into value of this element.
  5. Do the rest what you need to do on the website: submit a form or click on a button or something else.

1629982827356.png


Request URL example:
http://2captcha.com/res.php?key=1abc234de56fab7c89012d34e56fa7b8&action=get&id=2122988149