# RecaptchaV2Task

The object contains data for Google ReCaptcha2 solving task. To ensure the universality of the solution to this type of captcha, you need to use all the data used when automating the filling of the form on the target site, including proxies, browser user-agent and cookies. This will help to avoid any problems when Google changes the code of its captcha.

This type of captcha might be solved a bit longer than usual image captcha, but this issue is compensated by the fact that g-captcha-response value we send to you is valid for the next 60 seconds after we solves your ReCaptcha2.

# Object structure

Parameter Type Required Value
type String yes RecaptchaV2TaskProxyless
websiteURL String yes Address of a webpage with captcha.
websiteKey String yes Recaptcha website key. <div class="g-recaptcha" data-sitekey="THIS_ONE"></div>
isInvisible bool no true if the captcha is invisible, i.e. has a hidden field for confirmation, no checkbox. If a bot is suspected, an additional check is called.

# Request body example

{
  "clientKey": "f95f25ea9e71408d8f272d523f8c281d",
  "task": {
    "type": "RecaptchaV2TaskProxyless",
    "websiteURL": "https://www.google.com/sorry/index",
    "websiteKey": "6LfwuyUTAAAAAOAmoS0fdqijC2PbbdH4kjq62Y1b"
  }
}

# Response example

{
  "errorId": 0,
  "taskId": 407533072
}

# Getting result

Use the getTaskResult method to request answer for ReCaptchaV2. You will get response within 10 - 120 secs period depending on service workload.

gRecaptchaResponse Hash which should be inserted into ReCaptchaV2 submit form in <textarea id="g-recaptcha-response" ..></textarea> . It has a length of 500 to 2190 bytes.

# Response example

{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "gRecaptchaResponse": "3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3"
  }
}