DocumentationAPI v1
Back to All Task Types
Captcha Token•Token & Cookie Bypass~3.2s avg98.5% accuracy$1.50 / 1k

Cloudflare Waiting Room (Beta)

POST/api/v1/createTask
POST/api/v1/getTaskResult

Handles Cloudflare Waiting Room queue pages with embedded Turnstile verification. Returns solution.cookies (including cf_clearance) bound to your proxy IP and User-Agent.

Facing a standard 5-second IUAM page instead of a Waiting Room? See Cloudflare Challenge.Cloudflare 5s Challenge →

Supported Task Types & Modes

Task TypeModeRecommended ForRate / 1k
CloudflareWaitingRoomTaskProxy Required (v1: cloudflare.waitingroom)Cloudflare Waiting Room queue pages returning cf_clearance and queue cookies$1.50
How to Locate Required Parameters
  1. Request the target URL through your sticky residential/ISP proxy and capture the full waiting room HTML response.
  2. Extract the Turnstile website_key from the waiting room page.
  3. Base64-encode the complete HTML body (up to 1,000,000 characters).
  4. Pass websiteURL, websiteKey, html, userAgent, and the exact same proxy to POST /api/v1/createTask.

Request Parameters

ParameterTypeRequiredDescription
task.typestringRequired
Use CloudflareWaitingRoomTask or canonical v1 name "cloudflare.waitingroom".
Example: "CloudflareWaitingRoomTask"
websiteURLstringRequired
Full URL of the page displaying the Cloudflare Waiting Room.
Example: "https://example.com/drop"
websiteKeystringRequired
Turnstile site key present on the waiting room page.
Example: "0x4AAAAAAADnPIDROrmt1Wwj"
htmlstringRequired
Base64-encoded full HTML of the waiting room response (max 1,000,000 chars).
Example: "PGh0bWw+PHRpdGxlPldhaXRpbmcgUm9vbTwvdGl0bGU+PC9odG1sPg=="
userAgentstringRequired
Required: exact browser User-Agent you will reuse with the returned cookies.
Example: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36..."
proxyobjectRequired
Required: cookies are bound to the solving IP; reuse the exact same proxy on subsequent requests.
Example: {"type":"http","host":"203.0.113.7","port":8080,"login":"u","password":"p"}

Request Examples

Create & Poll Task
curl -X POST https://api.byecap.org/api/v1/createTask \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
      "type": "CloudflareWaitingRoomTask",
      "websiteURL": "https://example.com/drop",
      "websiteKey": "0x4AAAAAAADnPIDROrmt1Wwj",
      "html": "PGh0bWw+PHRpdGxlPldhaXRpbmcgUm9vbTwvdGl0bGU+PC9odG1sPg==",
      "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36",
      "proxy": {
        "type": "http",
        "host": "203.0.113.7",
        "port": 8080,
        "login": "proxyuser",
        "password": "proxypass"
      }
    }
  }'

Response Format

200 OK — Ready Solution
{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "cookies": {
      "cf_clearance": "9k2LmN8pQ4rS1tU7vW3xY6zA0bC5dE...",
      "__cfwaitingroom": "eyJ2ZXJzaW9uIjoxLC..."
    }
  }
}
Response FieldTypeDescription
solution.cookiesobjectMap of cookie names to values (includes cf_clearance and waiting room session cookies).

Error Codes & Troubleshooting

Error CodeCommon CauseResolution
PROXY_REQUIREDMissing proxy object or private/loopback host supplied.Provide a reachable sticky HTTP/HTTPS/SOCKS proxy and reuse it for follow-up requests.
Best Practices & Billing Protection
  • Use the exact same egress IP (sticky proxy) and User-Agent when applying solution.cookies.
  • Capture the raw HTML immediately upon receiving the waiting room page before tokens expire.
Need custom concurrency or a dedicated model? View Pricing & Enterprise Plans →