Solve reCaptcha V2
Use this type of task to automatically solve Google Recaptcha V2. The result of the job is a g-response value. Use it to submit the form on the target website.
The task is executed using our own proxy servers and/or workers' IP addresses. At the moment, reCaptcha does not have protection from situations where a puzzle is solved at one IP address and the form with the g-response is submitted from another. Google's API does not provide the IP address of the person who solved their reCaptcha. If this changes, you can always use our standard type of task for that - RecaptchaV2Task.
Recaptcha bypass V2 example
Task object
Property | Type | Required | Purpose |
---|---|---|---|
type | String | Yes | RecaptchaV2TaskProxyless Previous name of task type: NoCaptchaTaskProxyless. It will be supported forever, no need to update your code. |
websiteURL | String | Yes | Address 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. |
websiteKey | String | Yes | Recaptcha website key. Learn how to find it in this article. |
recaptchaDataSValue | String | No | Value of 'data-s' parameter. Applies only to reCaptchas on Google web sites. |
isInvisible | Boolean | No | Specify whether or not reCaptcha is invisible. This will render an appropriate widget for our workers. |
Request example
Python
Javascript
Go
PHP
Java
C#
bash
#pip3 install anticaptchaofficial
from anticaptchaofficial.recaptchav2proxyless import *
solver = recaptchaV2Proxyless()
solver.set_verbose(1)
solver.set_key("YOUR_API_KEY_HERE")
solver.set_website_url("https://website.com")
solver.set_website_key("SITE_KEY")
#set optional custom parameter which Google made for their search page Recaptcha v2
#solver.set_data_s('"data-s" token from Google Search results "protection"')
# 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)
g_response = solver.solve_and_return_solution()
if g_response != 0:
print("g-response: "+g_response)
else:
print("task finished with error "+solver.error_code)
Task solution object
Property | Type | Purpose |
---|---|---|
gRecaptchaResponse | String | Token string required for interacting with the submit form on the target website. |
cookies | Array | Optional array of cookies used for solving reCaptchas. Applies only for google.com domains and subdomains. |
Response example
{
"errorId":0,
"status":"ready",
"solution":
{
"gRecaptchaResponse":"3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3"
},
"cost":"0.001500",
"ip":"46.98.54.221",
"createTime":1472205564,
"endTime":1472205570,
"solveCount":"0"
}