DocumentationAPI v1
Captcha Token•Token & Cookie Bypass~2.2s avg98.9% accuracy$0.80 / 1k

Google reCAPTCHA v2 & Enterprise Token Solver

POST/api/v1/createTask

Generate valid g-recaptcha-response tokens for Google reCAPTCHA v2 Standard Checkbox, Invisible Badge, Google Search data-s challenges, and reCAPTCHA Enterprise risk-scored flows.

Want to classify 3×3 or 4×4 reCAPTCHA image grids directly inside Playwright/Puppeteer in ~150ms?View reCAPTCHA v2 Classification (Recognition) →

Supported Task Types & Modes

Task TypeModeRecommended ForRate / 1k
RecaptchaV2TaskProxylessProxylessStandard Checkbox ("I'm not a robot") and Invisible v2 widgets using ByeCap residential pool$0.80
RecaptchaV2TaskWith ProxyHigh-security forms checking IP consistency between token solver and form submission$0.85
RecaptchaV2EnterpriseTaskProxylessEnterprise ProxylessGoogle Cloud reCAPTCHA Enterprise (enterprise.js) with optional s-value payload$1.10
RecaptchaV2EnterpriseTaskEnterprise + ProxyStrict Enterprise login/checkout flows requiring sticky proxy + enterprisePayload.s$1.20
How to Locate Required Parameters
  1. Open DevTools -> Network and filter by "anchor" or "reload". Check if the script URL contains /recaptcha/api2/ (Standard) or /recaptcha/enterprise/ (Enterprise).
  2. Extract the k= query parameter from the /anchor URL (or data-sitekey on .g-recaptcha) as websiteKey.
  3. Check size=invisible in the /anchor request or data-size="invisible" in DOM—if present, set isInvisible: true.
  4. For Enterprise or Google Search pages, inspect grecaptcha.enterprise.render(...) or the /anchor s= parameter and pass it via enterprisePayload: { "s": "..." } or recaptchaDataSValue.

Request Parameters

ParameterTypeRequiredDescription
task.typestringRequired
Task identifier: RecaptchaV2TaskProxyless, RecaptchaV2Task, RecaptchaV2EnterpriseTaskProxyless, or RecaptchaV2EnterpriseTask.
Example: "RecaptchaV2TaskProxyless"
task.websiteURLstringRequired
Full page URL hosting the reCAPTCHA v2 widget (must match origin protocol and domain).
Example: "https://example.com/login"
task.websiteKeystringRequired
40-character public Google reCAPTCHA sitekey.
Example: "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
task.isInvisiblebooleanOptional
Set true when solving Invisible reCAPTCHA v2 (no visible checkbox, triggered on button click).
Example: true
task.recaptchaDataSValuestringOptional
One-time data-s attribute used on Google Search, YouTube, and hardened portals. Must be fresh per solve.
Example: "v2_one_time_data_s_token..."
task.enterprisePayloadobjectOptional
Additional parameters passed to grecaptcha.enterprise.render / execute on Enterprise targets.
Example: {"s": "enterprise_s_token"}
task.apiDomainstringOptional
Override script host when target loads from www.recaptcha.net instead of www.google.com.
Example: "www.recaptcha.net"
task.pageActionstringOptional
Optional action string if passed during grecaptcha.execute(sitekey, { action }).
Example: "login"
task.proxystringOptional
Required only for non-proxyless RecaptchaV2Task and RecaptchaV2EnterpriseTask.
Example: "http://user:pass@198.51.100.12:8080"

Request Examples

Create & Poll Task
curl -X POST https://api.byecap.org/api/v1/createTask \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "task": {
      "type": "RecaptchaV2TaskProxyless",
      "websiteURL": "https://example.com/signup",
      "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
      "isInvisible": false
    }
  }'

Response Format

200 OK — Ready Solution
{
  "errorId": 0,
  "taskId": "44c9e02b-1d12-4091-8a15-2b9104f61a77",
  "status": "ready",
  "solution": {
    "gRecaptchaResponse": "03AFcWeA7x9K8mN2vQ4pL...verified_v2_token",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36..."
  }
}
Response FieldTypeDescription
solution.gRecaptchaResponsestringVerified token valid for ~120 seconds. Submit as g-recaptcha-response or pass to the page callback.
solution.userAgentstringBrowser User-Agent used during solving—match this header when replaying strict Enterprise requests.

Injecting Token & Invoking ___grecaptcha_cfg Callback

Browser / Client Integration
await page.evaluate((token) => {
  const el = document.getElementById("g-recaptcha-response");
  if (el) el.innerHTML = token;

  // Trigger internal Google callback if form relies on JS callback instead of form submit
  const clients = window.___grecaptcha_cfg?.clients;
  if (clients) {
    for (const c of Object.values(clients)) {
      const findCb = (obj, depth = 0) => {
        if (!obj || depth > 4) return;
        for (const v of Object.values(obj)) {
          if (typeof v === "function") v(token);
          else if (typeof v === "object") findCb(v, depth + 1);
        }
      };
      findCb(c);
    }
  }
}, solved.solution.gRecaptchaResponse);

Error Codes & Troubleshooting

Error CodeCommon CauseResolution
ERROR_INVALID_SITEKEYwebsiteKey does not belong to websiteURL or Standard type was used on an Enterprise key.Check Network tab: if requests hit /recaptcha/enterprise/anchor, switch to RecaptchaV2EnterpriseTaskProxyless.
ERROR_EXPIRED_DATA_SrecaptchaDataSValue / enterprisePayload.s was already consumed when loading the widget in your browser.Intercept and block the initial /recaptcha/api2/anchor request in Playwright so the data-s token stays unconsumed for ByeCap.
Best Practices & Billing Protection
  • Redeem gRecaptchaResponse within 90–120 seconds of creation before Google expires the token.
  • When solving data-s protected pages, block Google’s iframe from loading locally so your one-time s-value is not burned twice.
  • All failed or timed-out reCAPTCHA v2 tasks are refunded 100% automatically.
Need custom concurrency or a dedicated model? View Pricing & Enterprise Plans →