reCAPTCHA v3
Generate high-score reCAPTCHA v3 tokens invisibly
Overview
reCAPTCHA v3 runs invisibly in the background and returns a score (0.0 - 1.0) indicating how likely the user is human. Our API generates tokens with high scores for seamless automation.
Supported Task Types
| Task Type | Proxy Required | Description |
|---|---|---|
ReCaptchaV3TaskProxyLess | No | Standard v3, uses our proxy |
ReCaptchaV3Task | Yes | Standard v3, requires your proxy |
ReCaptchaV3EnterpriseTaskProxyLess | No | Enterprise v3, uses our proxy |
ReCaptchaV3EnterpriseTask | Yes | Enterprise v3, requires your proxy |
Create Task
Endpoint: POST /createTask
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
clientKey | String | Yes | Your API key |
task.type | String | Yes | Task type (see table above) |
task.websiteURL | String | Yes | Page URL containing the captcha |
task.websiteKey | String | Yes | reCAPTCHA site key |
task.pageAction | String | No | Action name from grecaptcha.execute() |
task.isSession | Boolean | No | Also return the recaptcha-ca-t session cookie value in the solution |
task.enterprisePayload | Object | No | Extra options passed to grecaptcha.enterprise.execute() (Enterprise task types) |
task.apiDomain | String | No | Override the reCAPTCHA API domain (e.g. recaptcha.net) |
task.proxy | String | No | Required for non-ProxyLess types. See Proxy Format |
Basic Request
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ReCaptchaV3TaskProxyLess",
"websiteURL": "https://example.com",
"websiteKey": "6LdyC2cUAAAAACGuDKpXeDorzUDWXmdqeg-xy696"
}
}Request with Action
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ReCaptchaV3TaskProxyLess",
"websiteURL": "https://example.com/login",
"websiteKey": "6LdyC2cUAAAAACGuDKpXeDorzUDWXmdqeg-xy696",
"pageAction": "login"
}
}Response
{
"errorId": 0,
"taskId": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}Get Task Result
Endpoint: POST /getTaskResult
Request
{
"clientKey": "YOUR_API_KEY",
"taskId": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
}Response (Ready)
{
"errorId": 0,
"status": "ready",
"solution": {
"gRecaptchaResponse": "03AGdBq26fE8...",
"userAgent": "Mozilla/5.0 ...",
"secChUa": "\"Chromium\";v=\"136\", ...",
"recaptcha-ca-t": "..."
}
}recaptcha-ca-t appears only when the task sent isSession: true.
| Field | Always | Description |
|---|---|---|
gRecaptchaResponse | Yes | The token |
userAgent | Yes | The User-Agent the token was solved with |
secChUa | Yes | The exact sec-ch-ua header the solve sent to Google |
recaptcha-ca-t | Only with isSession: true | The recaptcha-ca-t cookie value a browser would hold after this execute, when the solve has one |
recaptcha-ca-e | When the solve received one | The recaptcha-ca-e cookie value. Returned automatically, with or without isSession |
Reuse userAgent and secChUa
Send the token with the returned userAgent and secChUa headers. A token submitted with another browser identity can be scored lower or refused. A cookie that was not set by the solve is absent from the solution, never an error.
Code Examples
# Create task
curl -X POST https://api.capbypass.pro/createTask \
-H "Content-Type: application/json" \
-d '{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "ReCaptchaV3TaskProxyLess",
"websiteURL": "https://example.com",
"websiteKey": "6LdyC2cUAAAAACGuDKpXeDorzUDWXmdqeg-xy696",
"pageAction": "submit"
}
}'
# Get result
curl -X POST https://api.capbypass.pro/getTaskResult \
-H "Content-Type: application/json" \
-d '{
"clientKey": "YOUR_API_KEY",
"taskId": "TASK_ID"
}'import requests
import time
API_KEY = "YOUR_API_KEY"
BASE_URL = "https://api.capbypass.pro"
def solve_recaptcha_v3(website_url, website_key, action=None):
# Create task
task = {
"type": "ReCaptchaV3TaskProxyLess",
"websiteURL": website_url,
"websiteKey": website_key
}
if action:
task["pageAction"] = action
response = requests.post(f"{BASE_URL}/createTask", json={
"clientKey": API_KEY,
"task": task
})
task_id = response.json()["taskId"]
# Poll for result
time.sleep(1) # first check about 1 second after createTask, then every 2 seconds
while True:
result = requests.post(f"{BASE_URL}/getTaskResult", json={
"clientKey": API_KEY,
"taskId": task_id
}).json()
if result["status"] == "ready":
return result["solution"]["gRecaptchaResponse"]
if result.get("errorId"):
raise Exception(f"Error: {result.get('errorDescription')}")
time.sleep(2)
# Usage
token = solve_recaptcha_v3(
"https://example.com",
"6LdyC2cUAAAAACGuDKpXeDorzUDWXmdqeg-xy696",
action="homepage"
)
print(f"Token: {token[:50]}...")const API_KEY = 'YOUR_API_KEY';
const BASE_URL = 'https://api.capbypass.pro';
async function solveRecaptchaV3(websiteURL, websiteKey, pageAction) {
// Create task
const task = {
type: 'ReCaptchaV3TaskProxyLess',
websiteURL,
websiteKey
};
if (pageAction) task.pageAction = pageAction;
const createRes = await fetch(`${BASE_URL}/createTask`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ clientKey: API_KEY, task })
});
const { taskId } = await createRes.json();
// Poll for result
await new Promise(r => setTimeout(r, 1000)); // first check about 1 second after createTask, then every 2 seconds
while (true) {
const resultRes = await fetch(`${BASE_URL}/getTaskResult`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ clientKey: API_KEY, taskId })
});
const result = await resultRes.json();
if (result.status === 'ready') {
return result.solution.gRecaptchaResponse;
}
await new Promise(r => setTimeout(r, 2000));
}
}
// Usage
const token = await solveRecaptchaV3(
'https://example.com',
'6LdyC2cUAAAAACGuDKpXeDorzUDWXmdqeg-xy696',
'submit'
);How to Find Parameters
Finding the Website Key
- HTML Source: Look for
render=parameter:
<script src="https://www.google.com/recaptcha/api.js?render=6LdyC2cUAAAAACGuDKpXeDorzUDWXmdqeg-xy696"></script>-
Network Tab: Filter for
recaptchaand check therenderparameter -
JavaScript: Search for
grecaptcha.execute:
grecaptcha.execute('6LdyC2cUAAAAACGuDKpXeDorzUDWXmdqeg-xy696', {action: 'submit'})Finding the Action
The action is passed to grecaptcha.execute(). Common actions:
homepageloginsubmitregistercheckout
Search the page source for grecaptcha.execute to find the action:
grecaptcha.execute('SITE_KEY', {action: 'login'}).then(function(token) {
// token handling
});Understanding v3 Scores
reCAPTCHA v3 returns a score between 0.0 and 1.0:
| Score | Interpretation |
|---|---|
| 0.9 - 1.0 | Very likely human |
| 0.7 - 0.9 | Probably human |
| 0.3 - 0.7 | Uncertain |
| 0.0 - 0.3 | Likely bot |
Our tokens typically achieve scores of 0.7 - 0.9.
v3 vs v2 Comparison
| Feature | reCAPTCHA v2 | reCAPTCHA v3 |
|---|---|---|
| User interaction | Image challenges | None (invisible) |
| Output | Pass/Fail token | Score (0.0-1.0) |
| Solve time | 5-30 seconds | 2-5 seconds |
| Implementation | Checkbox/invisible | Fully invisible |
Image Challenges
Some reCAPTCHA keys (an invisible or checkbox key, the V2 family) can show an image challenge, and Google decides per request: it depends on the trust of the request as well as the key. The V3 route does not solve image challenges. When Google answers one, the task fails with ERROR_CAPTCHA_UNSOLVABLE and the description Google answered this request with an image challenge. This site key can show challenges (an invisible or checkbox reCAPTCHA key), and the V3 route does not solve image challenges. A retry may get a token without a challenge. If it keeps happening, the key needs a reCAPTCHA V2 task. (V2 Enterprise task for an Enterprise task type). The task is refunded. Retry it: a retry may get a token without a challenge. If it keeps happening, send the key with the matching V2 task type.
Typical Solve Time
- Average: 2-5 seconds
- Maximum timeout: 60 seconds
Call /getTaskResult every 1 to 3 seconds, not faster, starting about 1 second after /createTask, or pass waitMs (up to 20000) so the request waits until the task is done: Waiting for the Result.
Result lifetime, polling and queue refusals are the same for every product: Limits and Queueing. Retry rules per error code: Errors and Retries.
Error Codes
| Error Code | Description |
|---|---|
ERROR_KEY_DOES_NOT_EXIST | Invalid API key |
ERROR_ZERO_BALANCE | Insufficient balance |
ERROR_CAPTCHA_UNSOLVABLE | Challenge could not be solved |
ERROR_TASK_NOT_FOUND | Task ID not found |
ERROR_INVALID_TASK_DATA | Missing or invalid parameters |
ERROR_PROXY_NOT_DEFINED | Proxy required for a non-ProxyLess task type — use the ProxyLess variant or supply task.proxy |
ERROR_PROXY_FORMAT | Malformed proxy: it must be one token with no whitespace, such as host:port:user:pass or a proxy URL. See Proxy Format in the API Reference |
ERROR_BLOCKED_TARGET | The target URL or your proxy host is, or resolves to, a non-public (internal or reserved) address |
ERROR_PROXY_CONNECTION_FAILED | The proxy could not connect: refused, unreachable, bad credentials, or a 407 or 408 from the proxy. Check the proxy is alive and reachable. On a ProxyLess task it was our pool: nothing to fix on your side, retry |
ERROR_PROXY_BANNED | The target refused the proxy address. For Turnstile: the site or Cloudflare answered HTTP 403 (including Cloudflare error 1020), 429, 451 or 5xx without presenting a challenge, and the description names the status. Use a residential or mobile proxy. On a ProxyLess task it was our pool proxy: nothing to fix on your side, retry |
ERROR_INVALID_DEVELOPER_KEY | The provided developerKey is invalid or disabled |
ERROR_WRONG_TASK_TYPE | Wrong task type for this site (e.g., standard vs enterprise) |
ERROR_RECAPTCHA_INVALID_SITEKEY | reCAPTCHA: Google refused the site key before any solve (it answered "Invalid site key" or "Invalid input"). Check websiteKey and that the task type matches the key. Do not retry the same task |
ERROR_RECAPTCHA_INVALID_DOMAIN | reCAPTCHA: Google refused the site key for the domain of websiteURL ("Invalid domain for site key"). Use the URL of the page that loads the key. Do not retry the same task |
ERROR_TIMEOUT | Task exceeded timeout |
ERROR_TASK_QUEUE_FULL | Server is at capacity, or too many Turnstile tasks are in flight for this API key. Retry in a few seconds. Nothing is charged |
ERROR_TASK_TYPE_COMING_SOON | Task type is not yet available |
ERROR_TASK_TYPE_INACTIVE | Task type is currently disabled |
ERROR_INTERNAL | Internal server error |
Next Steps
AWS WAF Guide
Solve AWS WAF challenges
API Reference
Complete endpoint documentation
Python SDK
pip install capbypass-sdk
Best Practices
Tokens expire in 2 minutes
reCAPTCHA v3 tokens have a short lifespan. Use them immediately after receiving the solution.
-
Always include the action if the target site uses one - mismatched actions may cause token rejection
-
Match the domain - tokens are bound to the domain they were generated for
-
Enterprise sites - use
ReCaptchaV3EnterpriseTaskProxyLessfor enterprise-protected sites