Captcha Token•Token & Cookie Bypass~1.9s avg98.8% accuracy$1.20 / 1k
AWS WAF Captcha & JS Challenge Token Solver
POST
https://api.byecap.org/api/v1/createTaskResolve Amazon AWS WAF JavaScript interstitial challenges (challenge.js) and full Captcha challenges (captcha.js) to receive a session-ready aws-waf-token cookie.
Want to classify 3×3 AWS WAF image grids or point-click paths via Base64 without proxies ($0.50 / 1k)?View AWS WAF Classification (Recognition) →
Live AWS WAF Challenge Preview
Automated AWS WAF token & challenge resolution returning a ready aws-waf-token.
Let's confirm you are human
Choose all the hats
0
1
2
3
4
5
6
7
8
Confirm
Supported Task Types & Modes
| Task Type | Mode | Recommended For | Rate / 1k |
|---|---|---|---|
| AntiAwsWafTaskProxyless | Proxyless Token | AWS WAF challenge.js & captcha.js returning aws-waf-token cookie (alias: AwsWafTaskProxyless) | $1.20 |
| AntiAwsWafTask | Sticky Proxy | AWS WAF targets strictly binding aws-waf-token to client egress IP (alias: AwsWafTask) | $1.25 |
How to Locate Required Parameters
- When AWS WAF blocks a request, inspect the HTTP 202/405 HTML response body for window.gokuProps.
- Extract key (awsKey), iv (awsIv), and context (awsContext) directly from the gokuProps JSON object.
- Locate the challenge.js script URL (e.g. https://xxxx.edge.sdk.awswaf.com/.../challenge.js) as awsChallengeJS.
- If using AwsWafClassification, pass the base64 grid image(s) and the prompt question (e.g. "aws:grid:chair").
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| task.type | string | Required | Use AwsWafTaskProxyless, AwsWafTask, or AwsWafClassification. Example: "AwsWafTaskProxyless" |
| task.websiteURL | string | Required | Exact URL that returned the AWS WAF challenge page. Example: "https://example.com/protected" |
| task.awsKey | string | Optional | Value of gokuProps.key from the WAF interstitial HTML. Example: "AQIDAHjcYu/GjX..." |
| task.awsIv | string | Optional | Value of gokuProps.iv from the WAF interstitial HTML. Example: "1708312345678" |
| task.awsContext | string | Optional | Value of gokuProps.context from the WAF interstitial HTML. Example: "v1_context_blob..." |
| task.awsChallengeJS | string | Optional | URL of the AWS WAF challenge.js script tag. Example: "https://...awswaf.com/.../challenge.js" |
| task.images | string[] | Optional | Required only for AwsWafClassification (array of base64 PNG/JPEG images). Example: ["base64_grid_img"] |
| task.question | string | Optional | Required only for AwsWafClassification prompt label. Example: "aws:grid:chair" |
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": "AwsWafTaskProxyless",
"websiteURL": "https://example.com/protected",
"awsKey": "AQIDAHjcYu/GjX...",
"awsIv": "1708312345678",
"awsContext": "v1_example_context_blob",
"awsChallengeJS": "https://abc.edge.sdk.awswaf.com/abc/challenge.js"
}
}'Response Format
200 OK — Ready Solution
{
"errorId": 0,
"status": "ready",
"solution": {
"cookie": "f91d8c2a-7b0e-4e11-9c22-example-waf-token:AQoA..."
}
}| Response Field | Type | Description |
|---|---|---|
| solution.cookie | string | The aws-waf-token cookie value to set on the target domain. |
| solution.objects | number[] | Returned for AwsWafClassification: 0-indexed tile numbers to click (0–8). |
Setting the aws-waf-token Cookie in Playwright
Browser / Client Integration
await context.addCookies([
{
name: "aws-waf-token",
value: solved.solution.cookie,
domain: ".example.com",
path: "/",
httpOnly: false,
secure: true,
},
]);
await page.reload({ waitUntil: "networkidle" });Error Codes & Troubleshooting
| Error Code | Common Cause | Resolution |
|---|---|---|
| ERROR_INVALID_WAF_PARAMS | Missing or truncated awsContext / awsChallengeJS. | Extract the full base64 strings from window.gokuProps without URL encoding. |
| ERROR_IP_MISMATCH | Target binds aws-waf-token to the solving IP address. | Switch from AwsWafTaskProxyless to AwsWafTask and pass your session proxy. |
Best Practices & Billing Protection
- Reuse the returned aws-waf-token cookie across requests in the same session—AWS WAF tokens typically remain valid for 5–30 minutes.
- Keep your User-Agent and TLS fingerprint consistent between solving and replaying the cookie.
- All failed or timed-out WAF tasks are refunded 100% automatically.
Need custom concurrency or a dedicated model? View Pricing & Enterprise Plans →