DocumentationAPI v1
Captcha Token•Token & Cookie Bypass~2.8s avg98.7% accuracy$1.40 / 1k

Cloudflare Challenge (5s IUAM) Cookie Solver

POST/api/v1/createTask

Resolve full-page Cloudflare "Just a moment..." HTTP 403 / 503 interstitial challenges (Managed & JS IUAM) and obtain a session-ready cf_clearance cookie bound to your sticky proxy.

Solving an embedded Turnstile form widget (0x4... sitekey) instead of a full-page 403/503 interstitial?View Cloudflare Turnstile Token Guide →

Supported Task Types & Modes

Task TypeModeRecommended ForRate / 1k
AntiCloudflareTaskSticky Proxy RequiredFull-page Cloudflare Managed / 5-second JS interstitial returning cf_clearance cookie$1.40

Strict Binding Requirements for cf_clearance

Cloudflare cryptographically ties every cf_clearance cookie to three client attributes. Mismatching any attribute triggers an immediate 403 re-challenge:

AttributeRequirementRecommended Implementation
Egress IP AddressMust stay identical between solving and replayUse a sticky residential or ISP proxy session (min 10–30 min TTL)
User-Agent HeaderByte-for-byte match with solution.userAgentOverwrite your HTTP client / Playwright User-Agent with solution.userAgent
TLS / HTTP2 FingerprintModern Chrome JA3/JA4 + ALPN h2Use curl_cffi (impersonate="chrome124"), tls-client, or Chromium
Sec-CH-UA HeadersMust align with Chrome major version in UARemove mismatched default Python-Requests / Axios headers
How to Locate Required Parameters
  1. Detect a Cloudflare Interstitial when your HTTP GET receives status 403 or 503 containing <title>Just a moment...</title> and /cdn-cgi/challenge-platform/.
  2. Prepare a sticky HTTP or SOCKS5 proxy (rotating per-request proxies will fail IP validation when replaying cf_clearance).
  3. Submit websiteURL and proxy via AntiCloudflareTask (optionally include html from the 403 response for faster challenge bootstrap).
  4. Attach the returned cookies.cf_clearance and solution.userAgent to your TLS-impersonated HTTP client (e.g. curl_cffi).

Request Parameters

ParameterTypeRequiredDescription
task.typestringRequired
Must be "AntiCloudflareTask".
Example: "AntiCloudflareTask"
task.websiteURLstringRequired
Exact URL returning the Cloudflare 403/503 "Just a moment..." challenge.
Example: "https://protected-site.com/account"
task.proxystringRequired
Sticky residential/ISP proxy. Must resolve to the exact same exit IP when you replay cf_clearance.
Example: "http://user:pass_session-91a@gate.proxy.io:8000"
task.userAgentstringOptional
Optional modern Chrome desktop User-Agent (if omitted, ByeCap assigns one and returns it in solution.userAgent).
Example: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/128.0.0.0 Safari/537.36"
task.htmlstringOptional
Optional raw 403 HTML body to accelerate challenge parameter parsing.
Example: "<!DOCTYPE html><html lang=\"en-US\"><head><title>Just a moment..."

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": "AntiCloudflareTask",
      "websiteURL": "https://protected-site.com/account",
      "proxy": "http://user:pass_sticky1@198.51.100.25:8080"
    }
  }'

Response Format

200 OK — Ready Solution
{
  "errorId": 0,
  "taskId": "cf5a9102-3d18-4f01-9a12-7728c10e55b2",
  "status": "ready",
  "solution": {
    "cookies": {
      "cf_clearance": "N8x9Km2_pQ4L7vR1zT5wY...0-1729182019-1.2.1.1-aBcDeFg"
    },
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
  }
}
Response FieldTypeDescription
solution.cookies.cf_clearancestringClearance cookie valid for 15–120 minutes on the same sticky proxy IP and User-Agent.
solution.userAgentstringExact User-Agent string bound to the cf_clearance cookie.

Applying cf_clearance + User-Agent in Playwright

Browser / Client Integration
const context = await browser.newContext({
  userAgent: solved.solution.userAgent,
  proxy: { server: "http://198.51.100.25:8080", username: "user", password: "pass_sticky1" },
});

await context.addCookies([
  {
    name: "cf_clearance",
    value: solved.solution.cookies.cf_clearance,
    domain: ".protected-site.com",
    path: "/",
    secure: true,
    httpOnly: true,
  },
]);

Error Codes & Troubleshooting

Error CodeCommon CauseResolution
ERROR_PROXY_CONNECTION_FAILEDProxy refused connection, timed out, or rotated IP mid-handshake.Verify proxy credentials and ensure sticky session duration is at least 10 minutes.
REPLAY_STILL_403Standard Python urllib3 / Node fetch TLS JA3 fingerprint does not match Chrome.Use curl_cffi, Bogdanfinn tls-client, Impit, or Playwright Chromium when sending cf_clearance.
Best Practices & Billing Protection
  • Cache cf_clearance per proxy session—one solved cookie typically unlocks hundreds of subsequent requests for 30+ minutes.
  • Never use per-request rotating proxy ports with AntiCloudflareTask.
  • Failed proxy handshakes or unsolvable challenges are automatically refunded 100%.
Need custom concurrency or a dedicated model? View Pricing & Enterprise Plans →