API Reference
Complete API documentation for CapBypass
Full reference for all CapBypass API endpoints.
Base URL: https://api.capbypass.pro
Endpoints
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /createTask | Yes | Create a new solving task |
| POST | /getTaskResult | Yes | Get task result |
| POST | /getBalance | Yes | Check account balance |
| GET | /pricing | No | Get task type pricing |
| GET | /health | No | Health check |
POST /createTask
Create a new task for solving.
Request Body
{
"clientKey": "YOUR_API_KEY",
"developerKey": "OPTIONAL_DEV_KEY",
"task": {
"type": "ReCaptchaV3TaskProxyLess",
"websiteURL": "https://example.com",
"websiteKey": "6LdyC2cUAAAAACGuDKpXeDorzUDWXmdqeg-xy696",
"pageAction": "login"
}
}Common Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
clientKey | String | Yes | Your API key |
developerKey | String | No | Developer affiliate key for commission attribution |
task.type | String | Yes | Task type — see Supported Challenges |
task.websiteURL | String | Yes | Target page URL |
task.proxy | String | Conditional | Required for non-ProxyLess types. See Proxy Format |
task.userAgent | String | No | User agent for the solver to match your client fingerprint |
reCAPTCHA Parameters
Applies to ReCaptchaV2Task*, ReCaptchaV3Task*, ReCaptchaV3EnterpriseTask*.
| Parameter | Type | Required | Description |
|---|---|---|---|
websiteKey | String | Yes | reCAPTCHA site key from the target page |
pageAction | String | No | Action name from grecaptcha.execute() (v3) |
isInvisible | Boolean | No | Set true for reCAPTCHA v2 invisible mode (no checkbox) |
isSession | Boolean | No | Also return the recaptcha-ca-t session cookie value in the solution (reCAPTCHA v3 and v2). recaptcha-ca-e is returned whenever the solve received one |
enterprisePayload | Object | No | Extra options passed to grecaptcha.enterprise.execute() (Enterprise) |
apiDomain | String | No | Override the reCAPTCHA API domain (e.g. recaptcha.net) |
See the reCAPTCHA v3 guide for details.
AWS WAF Parameters
Applies to AntiAwsWafTask / AntiAwsWafTaskProxyLess.
| Parameter | Type | Description |
|---|---|---|
awsChallengeJS | String | challenge.js URL (PoW flow) |
awsApiJs | String | jsapi.js URL (CAPTCHA flow) |
awsKey | String | AES key from gokuProps |
awsIv | String | AES iv from gokuProps |
awsContext | String | Challenge context from gokuProps |
awsProblemUrl | String | Problem endpoint URL for visual CAPTCHA |
awsApiKey | String | API key value from the WAF config |
awsExistingToken | String | Previous aws-waf-token for refresh/upgrade |
See the AWS WAF guide for details.
GeeTest Parameters
Applies to GeetestTask / GeetestTaskProxyLess (v3 and v4).
| Parameter | Type | Description |
|---|---|---|
gt | String | v3 captcha_id (with challenge) or v4 captcha_id alias |
challenge | String | v3 challenge (32-hex). Its presence selects the v3 flow |
captchaId | String | v4 captcha_id (leave empty for v3) |
captchaHost | String | v3 enterprise proxy host (e.g. captcha-api.pingan.com) |
geetestApiServerSubdomain | String | Custom v4 API subdomain (default gcaptcha4.geetest.com) |
See the GeeTest guide for details.
Cloudflare Turnstile Parameters
Applies to TurnstileTask / TurnstileTaskProxyLess.
| Parameter | Type | Required | Description |
|---|---|---|---|
websiteKey | String | Yes | The widget sitekey (8 to 64 characters of A-Z a-z 0-9 _ -, usually 0x4...) |
action | String | No | Replaces the page's data-action for this solve (1 to 32 characters of the same set). siteverify returns it |
cData | String | No | Replaces the page's data-cdata (1 to 255 characters). siteverify returns it as cdata |
websiteURL is capped at 2048 characters, and the widget mode (managed, non-interactive or invisible) is discovered from the page: there is no mode field.
See the Turnstile guide for details.
CaptchaFox Parameters
Applies to CaptchaFoxTask / CaptchaFoxTaskProxyLess.
| Parameter | Type | Required | Description |
|---|---|---|---|
websiteKey | String | Yes | The CaptchaFox sitekey (sk_...) |
See the CaptchaFox guide for details.
Response
{
"errorId": 0,
"taskId": "uuid"
}Proxy Format
For task types that require a proxy (non-ProxyLess variants), provide the proxy as a string in the task.proxy field. The same rules apply to every task type that takes a proxy.
Both the URL form and the colon-delimited form are accepted. Supported protocols: http, https, socks4, socks5 (defaults to http when omitted). Some task types accept http(s) proxies only, as their page says.
| Form | Pattern |
|---|---|
| URL | protocol://user:pass@host:port |
| Colon | host:port:user:pass or host:port |
| Protocol + colon | protocol:host:port:user:pass or protocol:host:port |
Examples:
http://1.2.3.4:8080
http://user:[email protected]:8080
socks5://user:[email protected]:1080
1.2.3.4:8080:myuser:mypass
socks5:1.2.3.4:1080:myuser:mypassRules
The proxy is checked when you create the task, before anything is billed and before any connection is made. A value that breaks one of these rules is refused with ERROR_PROXY_FORMAT:
- One token. No whitespace or control character anywhere in the value. Text after the proxy is refused, so a whole line copied from a proxy list (
host:port:user:pass US 2026-10-01) is rejected: send only the proxy column. Spaces around the whole value are trimmed. - The port is a number from 1 to 65535. The host is not empty.
- A user without a password is allowed (
http://TOKEN@host:port,host:port:TOKEN:), for providers that carry the credential in the username. A password without a user is refused. - The password may contain
:in the colon form. In the URL form, percent-encode any@,/,:,#or?of the user or password (p%40ss); a badly percent-encoded value is refused. - The host must be public. A proxy host that is, or resolves to, an internal or reserved address is refused with
ERROR_BLOCKED_TARGET.
The error description is a fixed text such as Invalid proxy format: the proxy contains whitespace or a control character. It never repeats your proxy or its credentials.
ProxyLess Task Types
If you use a ProxyLess task type (e.g., ReCaptchaV2TaskProxyLess), you do not need to provide a proxy. Our infrastructure handles it automatically. A proxy sent with a ProxyLess type is ignored and is not validated.
POST /getTaskResult
Poll for task completion. Call it every 1 to 3 seconds, not faster, starting about 1 second after /createTask, or pass waitMs and let the request wait for the task instead (Waiting for the Result).
Request Body
{
"clientKey": "string (required)",
"taskId": "string (required)",
"waitMs": "number (optional)"
}| Parameter | Type | Required | Description |
|---|---|---|---|
clientKey | String | Yes | Your API key |
taskId | String | Yes | The taskId returned by /createTask |
waitMs | Number | No | Long poll: hold the request until the task is ready or failed, or this many milliseconds pass. Capped at 20000; omitted or 0 answers immediately |
Waiting for the Result (Long Polling)
Send waitMs and we hold the request open on our side until the task reaches ready or failed, or waitMs milliseconds pass (at most 20 seconds), and then answer exactly as a plain poll does. The token comes back within a few milliseconds of the solve finishing, instead of on your next poll one to three seconds later.
curl -X POST https://api.capbypass.pro/getTaskResult \
-H 'Content-Type: application/json' \
-d '{"clientKey": "your-api-key", "taskId": "TASK_ID", "waitMs": 20000}'- Omitted or
0: the request answers immediately, as before. status: "processing"still means "not solved yet". Keep your loop, addwaitMsto the body and drop the sleep: an existing loop works unchanged.- Values above 20000 are clamped, not rejected.
- A request can be held for up to 20 seconds, so set your HTTP client's read timeout above that (30 seconds is comfortable).
- Concurrent waits are capped per API key. Over the cap the call answers immediately with
status: "processing"; it never errors, so the loop still works. - If the task has already finished, the call answers at once.
async function getResult(taskId) {
while (true) {
// Our side waits up to 20 s, so this loop returns as soon as the task ends
const response = await fetch('https://api.capbypass.pro/getTaskResult', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
clientKey: 'your-api-key',
taskId,
waitMs: 20000
})
});
const result = await response.json();
if (result.status === 'ready') {
return result.solution;
}
if (result.status === 'failed') {
throw new Error(result.errorDescription);
}
// status "processing": the wait elapsed, ask again at once
}
}
const solution = await getResult(taskId);
console.log('Token:', solution.gRecaptchaResponse);import requests
def get_result(task_id):
while True:
# Our side waits up to 20 s, so this loop returns as soon as the task ends.
# timeout=30 keeps the client from giving up before the long poll answers.
response = requests.post('https://api.capbypass.pro/getTaskResult', json={
'clientKey': 'your-api-key',
'taskId': task_id,
'waitMs': 20000
}, timeout=30)
result = response.json()
if result['status'] == 'ready':
return result['solution']
if result['status'] == 'failed':
raise Exception(result['errorDescription'])
# status "processing": the wait elapsed, ask again at once
solution = get_result(task_id)
print(f"Token: {solution['gRecaptchaResponse']}")Response (Processing)
{
"errorId": 0,
"status": "processing"
}Response (Ready - reCAPTCHA)
{
"errorId": 0,
"status": "ready",
"solution": {
"gRecaptchaResponse": "03AGdBq24PBCb...",
"userAgent": "Mozilla/5.0 ...",
"secChUa": "\"Chromium\";v=\"136\", ..."
}
}Response (Ready - AWS WAF)
{
"errorId": 0,
"status": "ready",
"solution": {
"cookie": "aws-waf-token=xxxxxxxx...",
"token": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:...",
"captchaVoucher": "eyJ...",
"userAgent": "Mozilla/5.0 ..."
}
}captchaVoucher is only returned for the visual-CAPTCHA flow — submit it to the Amazon CVF endpoint /aaut/verify/cvf/{jwt}.
Response (Ready - GeeTest v4)
{
"errorId": 0,
"status": "ready",
"solution": {
"captcha_id": "fcd636b4514bf7ac4143922550b3008b",
"lot_number": "354ab6dd4e594fd...",
"pass_token": "f5c8...",
"gen_time": "1716950400",
"captcha_output": "Hk2x...",
"userAgent": "Mozilla/5.0 ..."
}
}Submit lot_number, pass_token, gen_time, and captcha_output as the verification form params.
Response (Ready - GeeTest v3)
{
"errorId": 0,
"status": "ready",
"solution": {
"challenge": "3c1b...ab",
"validate": "5e2f...",
"seccode": "5e2f...|jordan",
"userAgent": "Mozilla/5.0 ..."
}
}Submit challenge, validate, and seccode as the verification form params.
Response (Ready - Cloudflare Turnstile)
{
"errorId": 0,
"status": "ready",
"solution": {
"token": "0.xxxxxxxxxxxxxxxxxxxxxxxx...",
"timing": { "solveMs": 6120 }
}
}Submit token as the cf-turnstile-response field. No userAgent is returned: the token is not bound to one.
Response (Ready - CaptchaFox)
{
"errorId": 0,
"status": "ready",
"solution": {
"token": "1ff8e270a3b1c4..."
}
}The token format differs by site (a MAM_ prefix on United Internet properties, hex elsewhere). Submit it unmodified.
Response (Failed)
{
"errorId": 1,
"status": "failed",
"errorCode": "ERROR_CAPTCHA_UNSOLVABLE",
"errorDescription": "Unable to solve the challenge"
}POST /getBalance
Check your account balance.
Request Body
{
"clientKey": "string (required)"
}Response
{
"errorId": 0,
"balance": 123.45
}GET /pricing
Get current pricing for all task types. No authentication required.
user_cost is the price per single solve (multiply by 1000 for the per-1K figure).
Response
The example below is pulled live from the production /pricing endpoint:
{
"pricing": [
{
"task_type": "AntiAwsWafMobileTask",
"user_cost": 0.0013,
"status": "active",
"solver": "waf"
},
{
"task_type": "AntiAwsWafTask",
"user_cost": 0.0013,
"status": "active",
"solver": "waf"
},
{
"task_type": "AntiAwsWafTaskProxyLess",
"user_cost": 0.0013,
"status": "active",
"solver": "waf"
},
{
"task_type": "CaptchaFoxTask",
"user_cost": 0.00099,
"status": "active",
"solver": "captchafox"
},
{
"task_type": "CaptchaFoxTaskProxyLess",
"user_cost": 0.00099,
"status": "active",
"solver": "captchafox"
},
{
"task_type": "GeetestTask",
"user_cost": 0.00099,
"status": "active",
"solver": "geetest"
},
{
"task_type": "GeetestTaskProxyLess",
"user_cost": 0.00099,
"status": "active",
"solver": "geetest"
},
{
"task_type": "ReCaptchaV3EnterpriseTask",
"user_cost": 0.002,
"status": "active",
"solver": "recaptcha"
},
{
"task_type": "ReCaptchaV3EnterpriseTaskProxyLess",
"user_cost": 0.002,
"status": "active",
"solver": "recaptcha"
},
{
"task_type": "ReCaptchaV3Task",
"user_cost": 0.0006,
"status": "active",
"solver": "recaptcha"
},
{
"task_type": "ReCaptchaV3TaskProxyLess",
"user_cost": 0.0006,
"status": "active",
"solver": "recaptcha"
},
{
"task_type": "TurnstileTask",
"user_cost": 0.001,
"status": "active",
"solver": "turnstile"
},
{
"task_type": "TurnstileTaskProxyLess",
"user_cost": 0.001,
"status": "active",
"solver": "turnstile"
}
]
}
GET /health
Health check endpoint. Returns 200 OK when the API is operational.
Response
{
"status": "ok"
}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 |
Errors and Retries has the retry policy per code, the refund rules and the errorId values.