Skip to Content
AnySolver logo
AnySolver
Token

AWSWafTokenProxyLess

Solve an AWS WAF challenge or CAPTCHA without a proxy and get the aws-waf-token cookie. Shows the request schema, an example and provider prices.

AWSWafTokenProxyLess solves an AWS WAF challenge or CAPTCHA and returns the aws-waf-token cookie value. AWS WAF can answer a request with a silent challenge or with a visual CAPTCHA, and either way the browser ends up with that cookie on later requests.

Use this task when the site accepts a cookie earned from another address. If the site ties the cookie to the address that earned it, use AWSWafToken with the proxy you request through. AmazonTokenProxyLess solves the same Amazon WAF CAPTCHA with different parameters and returns a captchaVoucher instead of a cookie.

Which parameters to send

Only websiteURL is always required. The other fields depend on what the page exposes. Pick the first case that matches.

What you find on the pageSend
The blocked response (often HTTP 405) contains window.gokuProps = {"key":"...","iv":"...","context":"..."}websiteURL, and optionally awsKey, awsIv, awsContext and awsChallengeJS
No gokuProps, but a challenge.js scriptwebsiteURL and awsChallengeJS
No challenge.js, but a jsapi.js scriptwebsiteURL and awsApiJs
Only captcha.js, with a problem endpoint that contains problem and num_solutions_requiredwebsiteURL and awsProblemUrl
A second verification after you already hold a tokenwebsiteURL, awsApiKey, awsApiJs and awsExistingToken

Where each value lives

Read awsKey, awsIv, awsContext and awsChallengeJS from the same page load, right before you create the task.

FieldWhere to find it
awsKeyThe key field of window.gokuProps in the HTML of the challenge page
awsIvThe iv field of window.gokuProps
awsContextThe context field of window.gokuProps
awsChallengeJSThe src of the AWS WAF challenge.js script, for example https://41bcdd4fb3cb.610cd090.us-east-1.token.awswaf.com/.../challenge.js
awsApiJsThe src of the jsapi.js CAPTCHA SDK script
awsProblemUrlThe full problem endpoint URL: search the page HTML for visualSolutionsRequired
awsApiKeyThe api_key of the problem endpoint, which stays the same for one website
awsExistingTokenThe aws-waf-token from the previous verification

Read key, iv and context fresh

awsKey, awsIv, awsContext and awsChallengeJS belong together and expire. If a provider reports that your parameters are expired or do not match, fetch all of them again from the same page load and send the new set.

Not every provider supports every field. Providers use the ones they understand and ignore the rest, so send everything the page gives you.

platform

platform selects the AWS WAF SDK flow: web (the default) for browser pages, android or ios for mobile apps. Providers that do not support it ignore it.

Set aws-waf-token as a cookie on requests to the protected site. Some providers solve only the visual CAPTCHA step and return a captchaVoucher instead of issuing a cookie. Use the userAgent from the solution for your requests when it is present.

Check Provider stats for live success rates and solve times before you pick a provider.

Supported Providers

ProviderPrice per 1,000Routing
CapSolver
$2.00
CapMonster
$1.40
Solverify
$0.50
DraxonSolver
$0.80

Request Schema

FieldTypeRequiredDescription
clientKey*
stringYes

Your API key. Create one in a workspace of the AnySolver dashboard.

Example: your-api-key-from-dashboard

task*
objectYes

The task body. Required fields depend on the task type. See Tasks for per-task schemas.

View task properties
settings
objectNo

Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes.

View settings reference

Task Object Properties

The task field accepts an object with the following properties:

FieldTypeRequiredDescription
type*
Yes
websiteURL*
URLYes

Full URL of the page that returns the AWS WAF challenge or captcha.

Example: https://efw47fpad9.execute-api.us-east-1.amazonaws.com/latest

awsKey
stringNo

The key value from window.gokuProps on the challenge page. Fetch key, iv and context fresh for every task.

Example: AQIDAHjcYu/GjX+QlghicBg......shMIKvZswZemrVVqA==

awsIv
stringNo

The iv value from window.gokuProps on the challenge page.

Example: CgAAFDIlckAAAAid

awsContext
stringNo

The context value from window.gokuProps on the challenge page.

Example: 7DhQfG5CmoY90ZdxdHCi8WtJ3z......njNKULdcUUVEtxTk=

awsChallengeJS
URLNo

URL of the challenge.js script loaded by the page (the src of the awsThreatDetection script). Several providers require it; send it whenever the page loads one.

Example: https://41bcdd4fb3cb.610cd090.us-east-1.token.awswaf.com/41bcdd4fb3cb/0d21de737ccb/cd77baa6c832/challenge.js

awsApiJs
URLNo

URL of the jsapi.js captcha SDK script, for pages that load jsapi.js instead of exposing challenge.js.

Example: https://9175c2fd4189.edge.captcha-sdk.awswaf.com/9175c2fd4189/jsapi.js

awsProblemUrl
URLNo

URL of the captcha problem endpoint, containing problem and num_solutions_required, for pages that only load captcha.js. Only some providers use it.

Example: https://ait.2608283a.us-east-1.captcha.awswaf.com/ait/ait/ait/problem?kind=visual&domain=www.amazon.com&locale=en-us&problem=gridcaptcha-5-0.15-0&num_solutions_required=2

awsApiKey
stringNo

The api_key of the problem endpoint, used for secondary verification together with awsExistingToken. Only some providers use it.

Example: Sps+L2gV...

awsExistingToken
stringNo

The aws-waf-token from the previous verification, for secondary verification. Only some providers use it.

Example: 5na16dg6-216a-...

platform
No

AWS WAF SDK flow to run: web for browser pages, android or ios for mobile apps. Defaults to web. Not every provider supports this; those that do not ignore it.

Example: web

{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "AWSWafTokenProxyLess",
        "websiteURL": "https://efw47fpad9.execute-api.us-east-1.amazonaws.com/latest"
    }
}

Optional fields are not guaranteed across providers

Required fields are guaranteed across every provider that supports this task. Optional fields may be honored by some providers and silently ignored by others. AnySolver does not document per-provider parameter support, so before relying on an optional field, check that provider's own docs for the task you are using.

Response Schema

FieldTypeRequiredDescription
status*
Yes

Task status: "processing", "ready", or "failed".

Example: ready

errorId*
Yes

0 on success; 1 or 2 on an error. Branch on errorCode: Error IDs explains the two error groups.

Example: 0

taskId
stringNo

Unique identifier returned when the task was created.

Example: 01KFNDF328KAN2AJ3BNHCQYE88

errorCode
No

Machine-readable error code.

Example: CAPTCHA_UNSOLVABLE

errorDescription
stringNo

Human-readable error message with resolution hints.

Example: The captcha could not be solved.

cost
numberNo

Actual cost charged for this task in USD.

Example: 0.002

taskType
No

The type of CAPTCHA task to solve.

Example: ReCaptchaV2TokenProxyLess

provider
No

Provider that handled this task. While processing, the provider currently solving it.

Example: Multibot

solution
objectNo

Solution Object Properties

The solution field contains an object with the following properties:

FieldTypeRequiredDescription
aws-waf-token*
stringYes

The aws-waf-token cookie value. Set it as the aws-waf-token cookie on requests to the protected site.

Example: 223d1f60-0e9f-4238-ac0a-e766b15a778e:EQoAf0APpGIKAAAA:AJam3OWpff1VgKIJxH4lGMMHxPVQ0q0R3CNtgcMbR4VvnIBSpgt1Otbax4kuqrgkEp0nFKanO5oPtwt9+Butf7lt0JNe4rZQwZ5IrEnkXvyeZQPaCFshHOISAFLTX7AWHldEXFlZEg7DjIc=

raw*
Record<string, unknown>Yes

Raw provider response data for advanced use cases.

captchaVoucher
stringNo

Captcha voucher returned by providers that solve the visual captcha step instead of issuing a cookie.

Example: eyJ0eXAiO...oQjTnJlBvAW4

userAgent
stringNo

User-Agent string used during solving.