Captcha Token•Token & Cookie Bypass~2.8s avg98.7% accuracy$1.40 / 1k
Cloudflare Challenge (5s IUAM) Cookie Solver
POST
https://api.byecap.org/api/v1/createTaskResolve 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 Type | Mode | Recommended For | Rate / 1k |
|---|---|---|---|
| AntiCloudflareTask | Sticky Proxy Required | Full-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:
| Attribute | Requirement | Recommended Implementation |
|---|---|---|
| Egress IP Address | Must stay identical between solving and replay | Use a sticky residential or ISP proxy session (min 10–30 min TTL) |
| User-Agent Header | Byte-for-byte match with solution.userAgent | Overwrite your HTTP client / Playwright User-Agent with solution.userAgent |
| TLS / HTTP2 Fingerprint | Modern Chrome JA3/JA4 + ALPN h2 | Use curl_cffi (impersonate="chrome124"), tls-client, or Chromium |
| Sec-CH-UA Headers | Must align with Chrome major version in UA | Remove mismatched default Python-Requests / Axios headers |
How to Locate Required Parameters
- Detect a Cloudflare Interstitial when your HTTP GET receives status 403 or 503 containing <title>Just a moment...</title> and /cdn-cgi/challenge-platform/.
- Prepare a sticky HTTP or SOCKS5 proxy (rotating per-request proxies will fail IP validation when replaying cf_clearance).
- Submit websiteURL and proxy via AntiCloudflareTask (optionally include html from the 403 response for faster challenge bootstrap).
- Attach the returned cookies.cf_clearance and solution.userAgent to your TLS-impersonated HTTP client (e.g. curl_cffi).
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| task.type | string | Required | Must be "AntiCloudflareTask". Example: "AntiCloudflareTask" |
| task.websiteURL | string | Required | Exact URL returning the Cloudflare 403/503 "Just a moment..." challenge. Example: "https://protected-site.com/account" |
| task.proxy | string | Required | 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.userAgent | string | Optional | 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.html | string | Optional | 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 Field | Type | Description |
|---|---|---|
| solution.cookies.cf_clearance | string | Clearance cookie valid for 15–120 minutes on the same sticky proxy IP and User-Agent. |
| solution.userAgent | string | Exact 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 Code | Common Cause | Resolution |
|---|---|---|
| ERROR_PROXY_CONNECTION_FAILED | Proxy refused connection, timed out, or rotated IP mid-handshake. | Verify proxy credentials and ensure sticky session duration is at least 10 minutes. |
| REPLAY_STILL_403 | Standard 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 →