Skip to content

reCAPTCHA v3

reCAPTCHA v3 has no checkbox and no images; the page scores visitors in the background. YesCaptcha returns a token (gRecaptchaResponse) that you submit to the target site. RecaptchaV3TaskProxyless costs 20 points (¥0.02) per task and is asynchronous: createTask, then getTaskResult every 5 seconds. Failed and timed-out tasks are refunded automatically.

POSThttps://api.yescaptcha.com/createTaskGlobal endpoint
POSThttps://cn.yescaptcha.com/createTaskChina endpoint

The request body is JSON authenticated with your clientKey. Query results on the same endpoint you created the task on.

  • The page source contains grecaptcha.execute(...), or it loads recaptcha/api.js?render=SITE_KEY: reCAPTCHA v3.
  • It calls grecaptcha.enterprise.execute(...) or loads recaptcha/enterprise.js: reCAPTCHA v3 Enterprise. Use RecaptchaV3EnterpriseTask or RecaptchaV3EnterpriseTaskM1.

How to tell: Identify the captcha type.

Task typePriceModeNotes
RecaptchaV3TaskProxyless20 points (¥0.02)Asynchronous
RecaptchaV3TaskProxylessM125 points (¥0.025)Asynchronous
RecaptchaV3TaskProxylessM1S730 points (¥0.03)AsynchronousRequests a score of 0.7; no extra parameter needed
RecaptchaV3TaskProxylessM1S935 points (¥0.035)AsynchronousRequests a score of 0.9; no extra parameter needed
RecaptchaV3EnterpriseTask20 points (¥0.02)Asynchronous
RecaptchaV3EnterpriseTaskM125 points (¥0.025)Asynchronous
  • RecaptchaV3TaskProxyless and RecaptchaV3TaskProxylessM1 take the same parameters on different routes; use either as a fallback for the other.
  • If the target site requires a high score, use RecaptchaV3TaskProxylessM1S7 (0.7) or RecaptchaV3TaskProxylessM1S9 (0.9); no extra parameter is needed.
FieldTypeRequiredDescription
typestringYesTask type; see "Task types and pricing" on this page
websiteURLstringYesFull URL of the page that shows the captcha. Use the site you see the captcha on, not the captcha vendor's domain
websiteKeystringYesThe site key (sitekey), found in the page source or network requests; usually does not change
pageActionstringNoThe reCAPTCHA v3 action; it must match the value the page passes to grecaptcha.execute, or the token may be rejected

pageAction must match the action the page passes to grecaptcha.execute(SITE_KEY, {action: '...'}), or the site may reject the token. How to find it: Find reCAPTCHA parameters.

POST https://api.yescaptcha.com/createTask
{
"clientKey": "YOUR_CLIENT_KEY",
"task": {
"type": "RecaptchaV3TaskProxyless",
"websiteURL": "https://example.com/login",
"websiteKey": "SITE_KEY_OF_THE_PAGE",
"pageAction": "login"
}
}
终端窗口
curl -s https://api.yescaptcha.com/createTask \
-H 'Content-Type: application/json' \
-d '{
"clientKey": "YOUR_CLIENT_KEY",
"task": {
"type": "RecaptchaV3TaskProxyless",
"websiteURL": "https://example.com/login",
"websiteKey": "SITE_KEY_OF_THE_PAGE",
"pageAction": "login"
}
}'
# Returns {"errorId":0,"taskId":"..."}; then poll every 5 seconds:
curl -s https://api.yescaptcha.com/getTaskResult \
-H 'Content-Type: application/json' \
-d '{"clientKey": "YOUR_CLIENT_KEY", "taskId": "TASK_ID"}'

Replace websiteURL, websiteKey and pageAction with the target site’s values.

{
"errorId": 0,
"status": "ready",
"solution": {
"gRecaptchaResponse": "03AGdBq25SxXT-pmSeBXjzScW-EiocHwwpwqtk1QXlJnGnU..."
}
}
FieldTypeDescription
gRecaptchaResponsestringThe token to submit to the target site. Single use, valid for about 120 seconds; use it within 60 seconds

While in progress you get {"errorId": 0, "status": "processing"}; check again 5 seconds later. Handle errors by errorCode as described in Error codes. To submit the token, see Submit a reCAPTCHA token.

With v3 the target site decides based on the score, and it can change its threshold at any time, so not every token passes. Make sure pageAction is correct, try M1S7 or M1S9 if the site needs a high score, or compare other types.

The same as v3: websiteURL, websiteKey, pageAction, with the type RecaptchaV3EnterpriseTask or RecaptchaV3EnterpriseTaskM1.

Single use, valid for about 120 seconds. Submit within 60 seconds.