Captcha solving for web crawling: challenge types and costs |
||
| 17:52 3 декабря 2026 — Reinz Brian | ||
Captcha solving for web crawling: challenge types, architectures and costs
Crawlers that audit sites, verify backlinks or collect public data sometimes hit a verification gate. A web application firewall or an edge network shows a challenge, and a plain HTTP client cannot pass it. At that point the crawler needs a plan: which challenges appear, how to handle them, and what that costs.
To pick a solver provider, you compare supported challenge types, API formats and billing models. The SolvCaptcha directory is an independent review site that collects this information. It lists 36 challenge types, ranks commercial solver APIs, and offers a cost calculator, a sitekey detector and an API error code reference. This guide uses it as a reference. It covers the main challenge families, two solver architectures, cost estimates and a resilient Python pattern.
A worked example uses two assumptions, not measurements. Say a crawler fetches 100,000 pages a month and 5% of them show a Turnstile challenge. That gives 5,000 solves. At the top Turnstile rate of $1.50 per 1,000, the cost is:
5,000 * ($1.50 / 1,000) = $7.50 per month
At the lowest rate of $0.60, the same volume costs $3.00. Proxy, server and browser costs come on top of this.
For public data, such as an open website like Indexoid that serves public pages, a crawler often needs no solver at all. Keep this retry logic for targets that really show a challenge.
Crawlers that audit sites, verify backlinks or collect public data sometimes hit a verification gate. A web application firewall or an edge network shows a challenge, and a plain HTTP client cannot pass it. At that point the crawler needs a plan: which challenges appear, how to handle them, and what that costs.
To pick a solver provider, you compare supported challenge types, API formats and billing models. The SolvCaptcha directory is an independent review site that collects this information. It lists 36 challenge types, ranks commercial solver APIs, and offers a cost calculator, a sitekey detector and an API error code reference. This guide uses it as a reference. It covers the main challenge families, two solver architectures, cost estimates and a resilient Python pattern.
Challenge families you will meet while crawling
Verification now goes well beyond distorted text. Most crawler teams see these families:- Google reCAPTCHA. Version 2 asks the user to tick a box or pick images. Version 3 runs in the background and returns a risk score between 0.0 and 1.0.
- Cloudflare Turnstile. A low-friction check that runs in the background and sometimes asks for a click.
- Arkose Labs (FunCaptcha). Game-like tasks, such as rotating a 3D object.
- hCaptcha. Image classification, with an enterprise variant.
- GeeTest. Slider puzzles in v3 and icon-based tasks in v4.
- AWS WAF Captcha. A challenge that runs at the edge, before the request reaches the origin server.
Solver architectures: token API or browser emulation
Two integration patterns are common.1. Token-based solving
The crawler does not render the challenge. It reads public parameters from the page HTML: the sitekey, the page URL (pageurl) and, when needed, values such as action, cData or enterprise_payload. It sends them to the solver API. The service returns a signed token (g-recaptcha-response or cf-turnstile-response). The crawler adds the token to the form post or the next request.- Low CPU and RAM use, because a plain HTTP client is enough.
- High throughput with clients such as httpx or curl_cffi.
- It needs custom extraction code for each vendor.
- It can fail when a target ties the token to live browser state.
2. Browser extension emulation
The crawler runs a headless browser (Playwright, Puppeteer or Selenium) with a solver extension. The extension watches challenge scripts and fills the token into hidden inputs inside the real session.- No custom parsing of dynamic sitekeys.
- It works with challenges that depend on the DOM.
- Each browser instance uses much more memory and CPU than an HTTP client.
- Concurrency is lower, and infrastructure costs are higher.
Cost of captcha solving for web crawling
Most services bill pay-as-you-go (PAYG) per 1,000 solves. Some also sell monthly subscriptions. The SolvCaptcha cost calculator page (updated October 2026) shows these provider rate ranges per 1,000 solves:- Cloudflare Turnstile: $0.60 to $1.50.
- reCAPTCHA v2: $0.60 to $1.50.
- reCAPTCHA v3: $0.60 to $2.99.
- reCAPTCHA Enterprise: $1.00 to $5.00.
- Arkose Labs: $0.60 to $2.00.
- AWS WAF: $0.80 to $2.00.
- Image OCR: $0.02 to $0.50.
A worked example uses two assumptions, not measurements. Say a crawler fetches 100,000 pages a month and 5% of them show a Turnstile challenge. That gives 5,000 solves. At the top Turnstile rate of $1.50 per 1,000, the cost is:
5,000 * ($1.50 / 1,000) = $7.50 per month
At the lowest rate of $0.60, the same volume costs $3.00. Proxy, server and browser costs come on top of this.
A resilient integration pattern in Python
A production crawler must survive timeouts, a full solver queue and bad tokens without stopping its workers. The example below creates a task, then polls for the result with a growing interval. The URLs use the placeholder domain api.solver-provider.example. Replace the URLs and field names with those in your provider documentation.For public data, such as an open website like Indexoid that serves public pages, a crawler often needs no solver at all. Keep this retry logic for targets that really show a challenge.
import asyncio
import httpx
SOLVER_API_URL = "https://api.solver-provider.example/createTask"
RESULT_API_URL = "https://api.solver-provider.example/getTaskResult"
API_KEY = "YOUR_SOLVER_API_KEY"
async def solve_turnstile_token(
client: httpx.AsyncClient,
website_url: str,
website_key: str,
timeout_seconds: int = 60
) -> str:
"""Submit a Turnstile challenge task and poll for the validation token."""
payload = {
"clientKey": API_KEY,
"task": {
"type": "TurnstileTaskProxyless",
"websiteURL": website_url,
"websiteKey": website_key
}
}
# Step 1: Create task
response = await client.post(SOLVER_API_URL, json=payload, timeout=10.0)
response.raise_for_status()
data = response.json()
if data.get("errorId", 0) != 0:
raise RuntimeError(f"Task creation failed: {data.get('errorDescription')}")
task_id = data.get("taskId")
# Step 2: Poll for completion with progressive backoff
elapsed = 0
poll_interval = 2.0
while elapsed < timeout_seconds:
await asyncio.sleep(poll_interval)
elapsed += poll_interval
result_resp = await client.post(
RESULT_API_URL,
json={"clientKey": API_KEY, "taskId": task_id},
timeout=10.0
)
result_resp.raise_for_status()
result_data = result_resp.json()
status = result_data.get("status")
if status == "ready":
solution = result_data.get("solution", {})
return solution.get("token")
elif status == "processing":
poll_interval = min(poll_interval * 1.25, 5.0)
else:
raise RuntimeError(f"Unexpected status: {status}")
raise TimeoutError(f"Solver timed out after {timeout_seconds} seconds")
This pattern keeps the crawler request loop separate from delays in the solver queue.What the directory does and does not give you
The directory is a good starting point for comparing providers and estimating cost. It also has limits:- The benchmark figures on the site are sample runs. The page does not describe its method in detail, so treat the results as a guide.
- The site is editorial and promotes some providers with partner links. Run your own proof of concept before you commit production volume.
- Some prices differ between sections of the site, so confirm the final rate with the provider.
Conclusion
Captcha solving for web crawling works best when the solver matches the challenge. Token APIs scale well for most targets. Browser emulation covers the few that need a real session. Estimate costs with assumptions you can state, then replace them with data from your own crawl.
Понравился пост?Да НетПонравилось 0, не понравилось 0 |
Расскажите о нас... |

0 комментариев
+ Добавить комментарий