API Reference

Complete API documentation for CapBypass

Full reference for all CapBypass API endpoints.

Base URL: https://api.capbypass.pro

Endpoints

MethodEndpointAuthDescription
POST/createTaskYesCreate a new solving task
POST/getTaskResultYesGet task result
POST/getBalanceYesCheck account balance
GET/pricingNoGet task type pricing
GET/healthNoHealth 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

ParameterTypeRequiredDescription
clientKeyStringYesYour API key
developerKeyStringNoDeveloper affiliate key for commission attribution
task.typeStringYesTask type — see Supported Challenges
task.websiteURLStringYesTarget page URL
task.proxyStringConditionalRequired for non-ProxyLess types. See Proxy Format
task.userAgentStringNoUser agent for the solver to match your client fingerprint

reCAPTCHA Parameters

Applies to ReCaptchaV2Task*, ReCaptchaV3Task*, ReCaptchaV3EnterpriseTask*.

ParameterTypeRequiredDescription
websiteKeyStringYesreCAPTCHA site key from the target page
pageActionStringNoAction name from grecaptcha.execute() (v3)
isInvisibleBooleanNoSet true for reCAPTCHA v2 invisible mode (no checkbox)
isSessionBooleanNoAlso 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
enterprisePayloadObjectNoExtra options passed to grecaptcha.enterprise.execute() (Enterprise)
apiDomainStringNoOverride the reCAPTCHA API domain (e.g. recaptcha.net)

See the reCAPTCHA v3 guide for details.

AWS WAF Parameters

Applies to AntiAwsWafTask / AntiAwsWafTaskProxyLess.

ParameterTypeDescription
awsChallengeJSStringchallenge.js URL (PoW flow)
awsApiJsStringjsapi.js URL (CAPTCHA flow)
awsKeyStringAES key from gokuProps
awsIvStringAES iv from gokuProps
awsContextStringChallenge context from gokuProps
awsProblemUrlStringProblem endpoint URL for visual CAPTCHA
awsApiKeyStringAPI key value from the WAF config
awsExistingTokenStringPrevious aws-waf-token for refresh/upgrade

See the AWS WAF guide for details.

GeeTest Parameters

Applies to GeetestTask / GeetestTaskProxyLess (v3 and v4).

ParameterTypeDescription
gtStringv3 captcha_id (with challenge) or v4 captcha_id alias
challengeStringv3 challenge (32-hex). Its presence selects the v3 flow
captchaIdStringv4 captcha_id (leave empty for v3)
captchaHostStringv3 enterprise proxy host (e.g. captcha-api.pingan.com)
geetestApiServerSubdomainStringCustom v4 API subdomain (default gcaptcha4.geetest.com)

See the GeeTest guide for details.

Cloudflare Turnstile Parameters

Applies to TurnstileTask / TurnstileTaskProxyLess.

ParameterTypeRequiredDescription
websiteKeyStringYesThe widget sitekey (8 to 64 characters of A-Z a-z 0-9 _ -, usually 0x4...)
actionStringNoReplaces the page's data-action for this solve (1 to 32 characters of the same set). siteverify returns it
cDataStringNoReplaces 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.

ParameterTypeRequiredDescription
websiteKeyStringYesThe 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.

FormPattern
URLprotocol://user:pass@host:port
Colonhost:port:user:pass or host:port
Protocol + colonprotocol: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:mypass

Rules

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)"
}
ParameterTypeRequiredDescription
clientKeyStringYesYour API key
taskIdStringYesThe taskId returned by /createTask
waitMsNumberNoLong 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, add waitMs to 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 CodeDescription
ERROR_KEY_DOES_NOT_EXISTInvalid API key
ERROR_ZERO_BALANCEInsufficient balance
ERROR_CAPTCHA_UNSOLVABLEChallenge could not be solved
ERROR_TASK_NOT_FOUNDTask ID not found
ERROR_INVALID_TASK_DATAMissing or invalid parameters
ERROR_PROXY_NOT_DEFINEDProxy required for a non-ProxyLess task type — use the ProxyLess variant or supply task.proxy
ERROR_PROXY_FORMATMalformed 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_TARGETThe target URL or your proxy host is, or resolves to, a non-public (internal or reserved) address
ERROR_PROXY_CONNECTION_FAILEDThe 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_BANNEDThe 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_KEYThe provided developerKey is invalid or disabled
ERROR_WRONG_TASK_TYPEWrong task type for this site (e.g., standard vs enterprise)
ERROR_RECAPTCHA_INVALID_SITEKEYreCAPTCHA: 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_DOMAINreCAPTCHA: 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_TIMEOUTTask exceeded timeout
ERROR_TASK_QUEUE_FULLServer 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_SOONTask type is not yet available
ERROR_TASK_TYPE_INACTIVETask type is currently disabled
ERROR_INTERNALInternal server error

Errors and Retries has the retry policy per code, the refund rules and the errorId values.