Documentation
CAPTCHA Solving
Automatic token solving for Google and Yahoo challenges.
When an engine serves a captcha, the server can solve it and continue the scrape instead of failing the request.
Two modes
| Provider | Covers | Cost |
|---|---|---|
local (default) | Brave's self-hosted challenge, via a credential cookie | Free |
twocaptcha / capsolver | Google reCAPTCHA v2/v3, Yahoo hCaptcha, Bing Turnstile | ~$0.001–0.003 per solve |
Keyless Brave mode
CAPTCHA_ENABLED=true
CAPTCHA_PROVIDER=local
BRAVE_TOKEN= # optional: paste your own credential
BRAVE_GENERATE_TOKEN=true # let the solver try to mint one
With a valid credential the scraper drops the
__Secure-token#brave-search-captcha cookie into the browser context before
navigating, so Brave never shows the challenge. Credentials are validated against
/api/tokens/test first; when none is accepted the request falls back to
clicking Brave's own “Verify” button. A rejected credential is not retried for ten
minutes.
Token provider mode
CAPTCHA_ENABLED=true
CAPTCHA_PROVIDER=twocaptcha # or capsolver
CAPTCHA_API_KEY=your_provider_key # or TWOCAPTCHA_API_KEY / CAPSOLVER_API_KEY
CAPTCHA_TIMEOUT=120
CAPTCHA_POLL_INTERVAL=2.0
The key is only read on the server. Solving is billed by the provider per task (roughly $0.001–0.003), independent of the per-search rate in this dashboard.
What happens on a challenge
- The page is inspected for a reCAPTCHA, hCaptcha or Turnstile widget, including widgets that only exist inside an iframe (typical for invisible reCAPTCHA v3).
- A task is submitted to the provider with the page URL, sitekey, action and the browser's user agent and cookies.
- On success the token is written into the challenge form, the widget callback is invoked and the form is submitted, so the engine serves the real result page.
- Results are parsed as usual and the response reports
metadata.captchawith the provider, type, task id, cost and elapsed time.
Engine support
| Engine | Challenge | Token solving |
|---|---|---|
reCAPTCHA v2 checkbox / v3 invisible on /sorry/ | Yes | |
| Bing | Cloudflare Turnstile (Arkose Labs on some flows) | Turnstile yes; Arkose no |
| Yahoo | hCaptcha | Yes — IP reputation still decides whether the challenge appears |
| Brave | Self-hosted proof-of-work / slider | No — cleared by clicking its own “Verify” button instead |
Failure behaviour
If the solver is disabled, has no key, finds no widget or the provider errors, the request
fails exactly as before with 502 ERR_SCRAPE_001 (or 429 ERR_RATE_002 when
the engine is throttling the IP). Tracker checks record those rows as scrape errors and leave
them out of ranking comparisons.