Skip to content
CaptchaSonic

aws-waf-token + contorno de desafio

API solucionadora de captcha do AWS WAF

O AWS WAF Captcha protege origens em EC2, CloudFront e API Gateway com um desafio de imagem somado a uma prova de trabalho silenciosa em JS, que emite o cookie aws-waf-token. A CaptchaSonic retorna um token válido pelo taskType AwsWafClassification — em menos de um segundo para grades de imagem — que pode ser armazenado em cache durante a janela de sessão de 5 minutos nas requisições seguintes.

captchasonic
# CaptchaSonic — AWS WAF (Python)
import requests

requests.post('https://api.captchasonic.com/createTask', json={
  'clientKey': 'YOUR_API_KEY',
  'task': {
    'type': 'AwsWafClassification',
    'websiteURL': 'https://target.example.com/',
    'images': ['base64_1...', 'base64_2...'],
    'question': 'Select the galaxy spiral'
  }
})
# Poll /getTaskResult; typed_solution.grid.objects holds the chosen cell indices.
$0.20
Por 1 mil resoluções
21s
Resolução média
99.9%
Taxa de sucesso
99.9%
Disponibilidade

Por que usar o Sonic para aws-waf-token + contorno de desafio?

Feito para velocidade, confiabilidade e integração fácil.

Cookie aws-waf-token

AwsWafClassification retorna o valor de aws-waf-token pronto para ser definido na próxima requisição, sem execução manual de JS.

Resolução em menos de um segundo

Desafios de grade de imagem do AWS WAF são resolvidos em menos de um segundo por classificação em processo, sem aquecimento de navegador headless.

Compatível com resolução sem proxy

O AWS WAF valida o token, não o IP — a maioria das origens aceita resoluções sem proxy; fixe um proxy da região dos EUA apenas em endpoints com restrição geográfica.

Cache de tokens

Os tokens do AWS WAF permanecem válidos por cerca de 5 minutos por origem — armazene a resposta em cache e reutilize-a nas requisições seguintes, em vez de resolver de novo a cada chamada.

Construa com ele

SDK

Agentes de IA

Bypass AWS WAF captcha challenges from Claude, Cursor, or any MCP client.

Docs de MCP
Exemplos de SDK
Python
from captchasonic import CaptchaSonic
client = CaptchaSonic(api_key="YOUR_API_KEY")
result = client.solve_aws_waf(image_b64="...")
print(result.typed_solution.grid.objects)
Node
import { CaptchaSonic } from 'captchasonic'
const client = new CaptchaSonic({ apiKey: 'YOUR_API_KEY' })
const result = await client.solveAwsWaf({ imageB64: '...' })
console.log(result.typed_solution.grid.objects)
Como nos comparamos

Compare

Como nos comparamos

Feature-by-feature against the four most-mentioned alternatives, compiled from each provider’s public pricing pages. Competitor figures may change — verify current rates with each provider.

FeatureCaptchaSonic2CaptchaCapSolverAnti-CaptchaCapMonster Cloud
AI / ML solver (no human relay)
AWS WAF
Success rate (trailing 30d)99.9%~95%~98%~95%~97%
Proxy + proxyless modes
Free trial credits
SDK languages (Py, Node, Go, C#, Java, PHP)66454
Selenium / Puppeteer / Playwright examples
Browser extension
Webhook callbacks
99.9% uptime SLA

Perguntas frequentes

AWS WAF Captcha is the bot-mitigation layer Amazon ships with AWS WAF — it protects EC2, CloudFront and API Gateway origins by serving an image-grid challenge plus a silent JS proof-of-work that issues the aws-waf-token cookie. It is widely deployed on e-commerce, ticketing and API endpoints hosted on AWS.

CaptchaSonic handles both the visible image-grid challenge and the silent token issuance flow that AWS WAF uses on high-risk paths. The AwsWafClassification taskType returns the aws-waf-token cookie value ready to set on subsequent requests — no headless browser warm-up required.

AWS WAF tokens are typically valid for around 5 minutes per origin. Cache the returned token in your client and reuse it across multiple requests within that window instead of re-solving on every call — this drops solve spend by 10–50x on busy scrapers.

Image-grid AWS WAF challenges resolve in under one second via the AwsWafClassification in-process classifier. Token-issuance flows that require executing the WAF JS finish in 2–4 seconds. Start with the free trial in the dashboard to benchmark against your traffic.