RecaptchaV2TaskProxyless
Parameters, request and response for reCAPTCHA v2 without a proxy: the RecaptchaV2TaskProxyless task type.
이 섹션은 영어로 표시됩니다.
reCAPTCHA v2: the “I'm not a robot” checkbox or the invisible badge. The task is solved from our IP addresses — no proxy needed.
| Price | US$0.60 per 1000 tasks (US$0.0006 per task), only for solved tasks — pricing |
| Proxy | not needed |
| Queue in getQueueStats | 6 |
| Also accepted as | NoCaptchaTaskProxyless |
Parameters#
Fields of the task object in createTask:
파라미터설명
typestring필수RecaptchaV2TaskProxylesswebsiteURLstring필수- Full address of the page where the reCAPTCHA is shown: http(s), up to 2048 characters. The page, not the address of the reCAPTCHA iframe.
websiteKeystring필수- Site key: the
data-sitekeyattribute of the widget or thekparameter of theanchorrequest in DevTools → Network. Up to 256 characters, no spaces. isInvisiblebooleantruefor invisible reCAPTCHA v2 (the widget hasdata-size="invisible"and shows only a badge). Defaultfalse.recaptchaDataSValuestring- The
data-svalue if the page passes one (some Google services do). Up to 4096 characters. apiDomainstring- Domain the widget is loaded from:
www.google.com(default) orwww.recaptcha.net. userAgentstring- User-Agent of the browser that will submit the token, up to 512 characters. It is returned in
solution.userAgent. cookiesstring- Cookies of the target site for the solving browser:
name=value; name2=value2, up to 8192 characters. Stored encrypted.
Request#
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "RecaptchaV2TaskProxyless",
"websiteURL": "https://www.google.com/recaptcha/api2/demo",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
}
}Complete example#
Create the task, poll every 2 seconds, print the token:
import os
import time
import requests
API = "https://neurocaptcha.com"
KEY = os.environ["API_KEY"]
def call(method, payload):
data = requests.post(f"{API}/{method}", json={"clientKey": KEY, **payload}, timeout=30).json()
if data.get("errorId"):
raise RuntimeError(f'{data["errorCode"]}: {data.get("errorDescription", "")}')
return data
task = {
"type": "RecaptchaV2TaskProxyless",
"websiteURL": "https://www.google.com/recaptcha/api2/demo",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
}
# 1. create the task: its price is held, not charged
task_id = call("createTask", {"task": task})["taskId"]
# 2. poll every 2 s; a failed task raises with its error code and costs nothing
deadline = time.time() + 300
while time.time() < deadline:
time.sleep(2)
result = call("getTaskResult", {"taskId": task_id})
if result["status"] == "ready":
print(result["solution"]["gRecaptchaResponse"])
break
else:
raise TimeoutError("the task was not solved in time")Response#
getTaskResult once the task is solved:
{
"errorId": 0,
"status": "ready",
"solution": {
"gRecaptchaResponse": "03AFcWeA6Z3vq0VhGm1oS8r0bAxKk4…",
"userAgent": ""
},
"cost": "0.000600",
"ip": "198.51.100.7",
"createTime": 1793370000,
"endTime": 1793370007,
"solveCount": 1
}Tips#
- Find
websiteKeyin thedata-sitekeyattribute, or in thek=parameter of theanchorrequest (DevTools → Network). - No checkbox, only a badge in the corner? Set
isInvisible: true. - Put the token into
textarea#g-recaptcha-response(org-recaptcha-responseform field) and call the widget callback if the page hasdata-callback. - If the site binds tokens to the IP address, switch to a type with your proxy.