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

ProviderCoversCost
local (default)Brave's self-hosted challenge, via a credential cookieFree
twocaptcha / capsolverGoogle 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

  1. The page is inspected for a reCAPTCHA, hCaptcha or Turnstile widget, including widgets that only exist inside an iframe (typical for invisible reCAPTCHA v3).
  2. A task is submitted to the provider with the page URL, sitekey, action and the browser's user agent and cookies.
  3. 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.
  4. Results are parsed as usual and the response reports metadata.captcha with the provider, type, task id, cost and elapsed time.

Engine support

EngineChallengeToken solving
GooglereCAPTCHA v2 checkbox / v3 invisible on /sorry/Yes
BingCloudflare Turnstile (Arkose Labs on some flows)Turnstile yes; Arkose no
YahoohCaptchaYes — IP reputation still decides whether the challenge appears
BraveSelf-hosted proof-of-work / sliderNo — 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.