TL;DR
- Tokens, not answers. A CAPTCHA solver API reads the challenge's
sitekeyand page URL off the page and returns a response token, which your automation submits in place of a human solve. - Valid isn't trusted. reCAPTCHA v3 scores the whole session, Cloudflare Turnstile runs its own risk checks before it issues a token, and many sites add bot controls of their own, so a structurally valid token minted in a low-trust headless context can still get rejected.
- Solve inside the session. Browsers as a Service (BaaS) clears the challenge in the browser you already drive when you add
solveCaptchas=trueto the connection URL, so the token lands in, and is submitted from, the session you're driving. Stealth routes and residential proxies are separate, optional settings you add to the same URL to raise that session's trust.
Introduction
You plug a CAPTCHA solver API into your scraper, get a token back, inject it, and the site still blocks the request. The token itself is usually fine. reCAPTCHA v3 also scores the browser that sent it, from its fingerprint to its IP reputation, and a fresh headless session with no history scores low. Cloudflare Turnstile runs similar risk checks while the challenge runs, and the site's own bot controls can still block a browser that carries a valid token.
That's why the question worth asking is where the solve runs, not which vendor runs it. You'll learn why a valid token still gets rejected and how to solve inside your own browser session instead.
What is a CAPTCHA solver API?
A CAPTCHA solver API sits between your automation and the challenge widget on a page. You usually reach for one when a web scraping or automated testing job stalls on a challenge while collecting public data. It takes a test meant to stop bots and returns a token your code can submit, and what that token is worth depends on the challenge family behind it.

The sitekey-to-token handoff
Your code finds the challenge on the page, reads the identifiers that describe it, sends them to the solver and gets back a response token. The service does the solving, and your automation submits the result in place of a human.
The required parameters barely vary between services. The sitekey, or site key, is the public identifier the challenge widget is configured with, and the page URL tells the solver where the challenge appears. Some types add one more field, such as an action name for reCAPTCHA v3 or a data-s value for certain reCAPTCHA v2 deployments.
Every vendor shares that request-and-response shape, so "CAPTCHA solving API", "CAPTCHA bypass API" and "anti-CAPTCHA service" all describe the same contract. You send the identifiers to one API and get a token back.
CAPTCHA types you'll meet in automation
What it takes to clear CAPTCHA challenges changes with the family, and that difference decides which approach works and which quietly fails. Here's how each family verifies and what a solve returns.
| CAPTCHA family | How it verifies | What a solve returns |
|---|---|---|
| reCAPTCHA v2 | Checkbox or image grid with user interaction | A g-recaptcha-response token after the click or selection |
| reCAPTCHA v3 | Invisible, scores the session 0.0 to 1.0, no interaction | A token that carries a score the server still judges |
| Cloudflare Turnstile | Managed challenge blending internal risk checks with a proof-of-work | A cf-turnstile-response token the site validates with Siteverify |
| FunCaptcha / Arkose | Interaction-heavy puzzles | A token after completing the puzzle flow |
| GeeTest | Slider and gap puzzles | A validated challenge response |
| Image or text CAPTCHA | Distorted or image-grid text with no interaction logic to grade | A transcribed string, read by AI-based OCR or an image recognition model, submitted as the answer |
| Audio CAPTCHA | A spoken character or word sequence, usually offered as an accessibility fallback to a visual challenge | A transcribed string submitted in place of the visual answer |
The split that matters is between click-based and score-based types. A reCAPTCHA v2 token is largely sufficient on its own, while reCAPTCHA v3 grades the session that produced the token and Turnstile runs its risk checks before it issues one. Either way, the token ends up in a hidden field, g-recaptcha-response or cf-turnstile-response.
How a CAPTCHA solver API works
A CAPTCHA solver API turns a challenge into a token through a short sequence, and each step has its own way of failing. Before you run it against a real target, check that you're authorized to automate the site and that its terms allow it. Solving a CAPTCHA on a site that forbids automation can breach those terms.

The token injection flow, step by step
Six steps take a challenge from detected to submitted:
- Detect the challenge on the page, usually by finding the widget container or its hidden response field.
- Extract the
sitekeyand the page URL, plus anactionordata-svalue when the type needs it. - Request a solve from the service and wait for the token.
- Inject the token into the hidden response field,
g-recaptcha-responseorcf-turnstile-response. - Fire the JavaScript callback the widget registered, so the page knows a response arrived.
- Submit the form.
Three details break this flow more often than a selector bug does. A reCAPTCHA token expires after two minutes (a Turnstile token after five), so one that waits in a queue too long expires before step 6. Tokens are also single-use, which means a retry needs a fresh solve rather than a replay.
Injecting a token without firing the registered callback leaves the widget looking unsolved. The form then refuses to submit even though the hidden field holds a valid value.
The Python example below runs that flow against Google's reCAPTCHA demo page in a remote browser. The widget is dynamic content that only appears after JavaScript rendering, so a plain HTTP client never sees it.
It reads the sitekey, sends it to a token service in a POST request, polls for the token, injects it and submits. The sample code skips step 5, which the demo page doesn't need but a production widget usually does. Without a SOLVER_API_KEY the helper returns a placeholder, so the injection and submit steps still run against the live page.
import os
import time
import requests
from playwright.sync_api import sync_playwright
TOKEN = os.environ["BROWSERLESS_TOKEN"]
TARGET_URL = "https://www.google.com/recaptcha/api2/demo"
WS = f"wss://production-sfo.browserless.io/chromium?token={TOKEN}"
def buy_token(sitekey, page_url, timeout=120):
"""Submit the challenge to a 2Captcha-style service and poll for the token."""
key = os.environ.get("SOLVER_API_KEY")
if not key:
print(f" (no SOLVER_API_KEY: using a placeholder for sitekey {sitekey[:12]}...)")
return "PLACEHOLDER_TOKEN"
job = requests.post("https://2captcha.com/in.php", data={
"key": key, "method": "userrecaptcha",
"googlekey": sitekey, "pageurl": page_url, "json": 1,
}, timeout=30).json()
if job["status"] != 1:
raise RuntimeError(f"Solver rejected the task: {job['request']}")
deadline = time.time() + timeout
while time.time() < deadline: # tokens are minted, not instant
time.sleep(5)
res = requests.get("https://2captcha.com/res.php", params={
"key": key, "action": "get", "id": job["request"], "json": 1,
}, timeout=30).json()
if res["status"] == 1:
return res["request"]
if res["request"] != "CAPCHA_NOT_READY":
raise RuntimeError(f"Solve failed: {res['request']}")
raise TimeoutError("No token before the deadline")
with sync_playwright() as p:
browser = p.chromium.connect_over_cdp(WS)
try:
page = browser.contexts[0].pages[0]
page.goto(TARGET_URL, wait_until="domcontentloaded")
# 1. Read the sitekey the service needs to identify the challenge.
sitekey = page.get_attribute(".g-recaptcha", "data-sitekey")
print(f"1. sitekey: {sitekey}")
# 2. Buy a token from the external service (the paid, high-latency step).
token = buy_token(sitekey, page.url)
print(f"2. token: {len(token)} chars")
# 3. Drop the token into the hidden field the widget submits.
page.eval_on_selector("#g-recaptcha-response", "(el, t) => { el.value = t; }", token)
print("3. token injected into #g-recaptcha-response")
# 4. Submit. A real high-trust token passes here; a low-trust one is rejected.
page.click("#recaptcha-demo-submit")
print("4. form submitted")
finally:
browser.close()
The console prints each numbered step in order, so you can see which step a run reaches.
Why a valid token still gets rejected
A valid token and a passed challenge are different events. Modern challenges judge the browser, not only the click that produced the token.
reCAPTCHA v3 returns a session score from 0.0 to 1.0, never shows a checkbox, and leaves the site to pick the threshold it accepts. Cloudflare Turnstile exposes no score. It runs internal risk checks and a lightweight proof-of-work before it issues a token, and the site's Siteverify call returns success plus validation details such as the hostname and action. In both cases the signals come from the browser that loaded the page, such as the fingerprint, the TLS handshake, behavioral history and IP reputation. Many sites also run separate bot controls that judge the request on their own, whatever the token says.

The token only proves the challenge ran. A reCAPTCHA v3 token minted from a headless, fingerprint-poor context with no history scores low, and a Turnstile token that passes Siteverify can still be blocked by the site's other bot checks, so the fix is to send the request from a session the site already trusts.
Choosing a CAPTCHA solver API
You're choosing between two categories, a token-based service you call out to for each challenge or in-session solving inside the browser you already drive. Token services win on raw per-solve price, and in-session solving wins on session trust against score-based challenges.
Token services vs. in-session solving
A token-based service runs the six-step flow above. It works, but it adds a second vendor and a second failure point, and the token carries none of your session's trust signals.
Keeping CAPTCHA handling separate can still be a deliberate choice for teams that already run their own browser infrastructure. Standalone services such as CapSolver offer an API that plugs into existing workflows built on Puppeteer, Playwright, Selenium or plain HTTP, and they handle multiple CAPTCHA types, from reCAPTCHA v2, v3 and reCAPTCHA Enterprise to Turnstile and DataDome. You submit a task naming the task type, then poll for the token while your browser setup stays as it is.
Token services also differ in how they solve. Some route each CAPTCHA image to verified human workers, while others take an AI-first approach, running image recognition and AI-based OCR models and handing off to people only when the model fails. An AI-powered CAPTCHA solver usually returns faster. Every vendor advertises high accuracy, so test it against your own targets before you commit.
Easy integration comes down to API clients in your language and code examples that run as-is. Responsive support matters too once a challenge type changes.
Pricing also varies by CAPTCHA type within the same vendor, which a single headline number hides. DeathByCaptcha's published rates (November 2026) show the spread:
| CAPTCHA type | Price per 1,000 solves |
|---|---|
| Normal image CAPTCHA | $0.99 to $2 |
| reCAPTCHA v2 / v3 or Cloudflare Turnstile | $2.89 |
| Audio CAPTCHA | $0.59 |

Browser-integrated solving removes that separate layer. In-session CAPTCHA solving runs inside the browser you're already driving, so the token is injected and submitted from the same session the site has been scoring. Pair it with stealth routes and residential proxies, since that session trust is what decides score-based challenges.
Free CAPTCHA solvers and browser extensions
A free CAPTCHA solver usually moves the cost somewhere you notice later. Token-service free tiers are rate-limited, often less accurate, and exist to move you onto a paid plan.
An open-source CAPTCHA solver extension still puts a person in the loop, which suits a handful of manual solves and fails for unattended automation. Self-hosted automated solvers carry a maintenance burden and break when a CAPTCHA vendor ships a new challenge. For a side-by-side of the options, see the best CAPTCHA solvers compared.
The real cost of CAPTCHA solving in production
The price per 1,000 solves is the least useful number in production. Retries, proxies and the glue code you maintain all sit on top of it.
Every solve carries the solver fee and the cost of the residential proxies you route through. You also pay for each score-rejected token you bought and couldn't use, and for the engineering time to maintain an integration that breaks quietly when a challenge vendor changes its model.
Take 100,000 page loads a month where 15% hit a challenge, which is 15,000 solves. At $2.89 per 1,000 reCAPTCHA or Turnstile solves, the solver line is about $43 a month. The proxy bandwidth for those loads usually costs more than that, and retries after score-based rejections and developer hours on the integration add to it.
A cheap per-solve rate is a real advantage for high-volume, low-trust targets. Browserless's pricing model adds a 10-unit CAPTCHA surcharge per successful solve and no surcharge for failed attempts, so the 15,000 solves above cost 150,000 units on top of the browser time those sessions use. Attempts that don't clear add nothing to the surcharge line, though their browser time and proxy bandwidth still count.
How to solve CAPTCHAs inside the browser session
When the solve runs in the browser you already drive, the token is submitted by a browser the site has already scored, so the work of raising that score happens before the challenge appears. Browserless handles bot detection in layers, in escalation order, and most tasks never need the upper ones:
- Stealth routes.
/stealthand/stealth/bqlapply fingerprint mitigations first, which cuts how often a challenge appears at all. - IP reputation. Residential proxies (
proxy=residential) give the session a trusted IP, andproxyLocaleMatch=1matches the browser language to the proxy's country. - In-session solving.
solveCaptchas=trueclears the challenge without leaving your Puppeteer or Playwright session. - Unblock API. The web unblocker (
/unblock) steps in when a site detects the automation protocol itself, and can return abrowserWSEndpointplus cookies so you continue in your own session. - Programmatic solve.
page.solve()in the Browser Automation Protocol (BAP) SDK runs BrowserQL'ssolvemutation for orchestrated multi-step flows. - Human fallback.
liveURLhands the session to a person for the cases nothing automated clears.

Auto-solving on the stealth route
On Browserless, you connect Puppeteer or Playwright to a stealth route with solveCaptchas=true on the connection URL. The token then lands in the hidden field without a call to any solve function. Wait for Browserless.captchaAutoSolved before acting on the page, or poll the field as the example below does.
import puppeteer from "puppeteer-core";
const TOKEN = process.env.BROWSERLESS_TOKEN;
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
// Connect to the stealth route with solveCaptchas=true so any challenge
// it detects, it attempts to solve inside this session.
const browser = await puppeteer.connect({
browserWSEndpoint:
`wss://production-sfo.browserless.io/chromium/stealth` +
`?token=${TOKEN}&solveCaptchas=true&timeout=180000`,
});
try {
const page = await browser.newPage();
const cdp = await page.createCDPSession();
// Register the CAPTCHA events before navigating so you don't miss detection.
cdp.on("Browserless.captchaFound", (p) =>
console.log(`captchaFound -> type: ${p.type}, status: ${p.status}`),
);
cdp.on("Browserless.captchaAutoSolved", () =>
console.log("captchaAutoSolved fired"),
);
await page.goto("https://www.google.com/recaptcha/api2/demo", {
waitUntil: "networkidle2",
timeout: 60000,
});
// Auto-solve drops the response token into the hidden field. Poll it until it
// populates. That populated field is the deterministic signal the solve landed.
let tokenLength = 0;
for (let i = 0; i < 40 && tokenLength === 0; i++) {
tokenLength = await page
.$eval("#g-recaptcha-response", (el) => el.value.length)
.catch(() => 0);
if (tokenLength === 0) await sleep(3000);
}
if (!tokenLength) throw new Error("No token after 120 s");
console.log(`Auto-solve complete: response token injected (${tokenLength} chars)`);
// The reCAPTCHA checkbox can still look unticked; click submit to continue.
await page.click("#recaptcha-demo-submit").catch(() => {});
} finally {
await browser.close();
}
The captchaFound log confirms detection, and a non-zero token length confirms the solve landed in the hidden field.
Explicit solve over CDP
On the Puppeteer and Playwright side, Browserless.solveCaptcha is a Browserless command on the Chrome DevTools Protocol (CDP) session. Two CDP events report progress, Browserless.captchaFound on detection and Browserless.captchaAutoSolved when a solve completes. The command returns five fields:
| Field | What it holds |
|---|---|
| found | Whether a challenge was detected |
| solved | Whether the solve succeeded |
| time | Solve duration in milliseconds |
| token | The response token, when the type produces a submittable one |
| error | The failure reason, empty on a successful solve |
Where the stealth-route example earlier let the token land passively, the snippet below is the explicit counterpart. It calls Browserless.solveCaptcha directly and logs each of those five fields.
import puppeteer from "puppeteer-core";
const TOKEN = process.env.BROWSERLESS_TOKEN;
const browser = await puppeteer.connect({
browserWSEndpoint:
`wss://production-sfo.browserless.io/chromium` +
`?token=${TOKEN}&solveCaptchas=true&timeout=180000`,
});
try {
const page = await browser.newPage();
const cdp = await page.createCDPSession();
await page.goto("https://www.google.com/recaptcha/api2/demo", {
waitUntil: "networkidle2",
timeout: 60000,
});
// The singular command. Returns { found, solved, time, token, error }.
const result = await cdp.send("Browserless.solveCaptcha");
console.log(" found :", result.found);
console.log(" solved :", result.solved);
console.log(" time :", result.time, "ms");
console.log(" token :", result.token ? `${result.token.length} chars` : null);
console.log(" error :", result.error ?? "(none)");
if (result.solved) {
// reCAPTCHA's checkbox can still look unticked after a solve; click submit.
await page.click("#recaptcha-demo-submit").catch(() => {});
}
} finally {
await browser.close();
}
Programmatic solve with BAP
BAP gives you the same solve as a method call. It's Browserless's SDK for TypeScript and Python, with a Puppeteer- or Playwright-shaped API (npm install @browserless.io/bap-ts), and each call runs as a BrowserQL mutation underneath. page.solve() takes a CaptchaTypes value or detects the challenge itself, and by default waits up to 30 seconds for one to appear.
The CaptchaTypes enum covers well beyond the common families:
recaptchafor reCAPTCHA v2 andrecaptchaV3.cloudflare, which covers Turnstile.funcaptchafor FunCaptcha from Arkose Labs.geetest,datadome,akamai,perimeterxandamazonWaf.friendlyCaptcha,mtcaptcha,capy,leminandyandex.slider,click,audio,math,normal,numberCaptchaandtextCaptcha.
For normal CAPTCHAs, the legacy distorted-text images, solveImageCaptcha reads the CAPTCHA image at captchaSelector and types the answer into inputSelector. The older verify mutation is deprecated in favor of solve.
The script below loads a Cloudflare-protected test page on the stealth route and calls page.solve().
import Browserless from "@browserless.io/bap-ts";
const browser = Browserless.connect({
browserWSEndpoint: "wss://production-sfo.browserless.io/stealth/bql",
token: process.env.BROWSERLESS_TOKEN,
// Session timeout, long enough for a slow solve.
timeout: 90000,
});
try {
const page = await browser.newPage();
const response = await page.goto("https://nowsecure.nl", {
waitUntil: "networkIdle",
});
console.log("goto status:", response?.status ?? "(none)");
// Name the type, or leave it out and let solve() detect the challenge.
const result = await page.solve({ type: "cloudflare" });
console.log(
`found: ${result.found}, solved: ${result.solved}, time: ${result.time}ms`,
);
if (!result.solved) {
console.log("Not cleared. Escalate to the Unblock API or a human handoff.");
}
} finally {
await browser.close();
}
A test run on November 16, 2026 returned found: true and solved: true in about 7.5 seconds. The managed challenge clears through cookies and the page content loads, ready for structured data extraction, so there's no form to submit afterward. If found comes back false, no challenge rendered within the wait window. Raise timeout in the solve options or confirm the page served a challenge.
AI agents with Browser Use
An LLM-driven agent can walk into a challenge mid-task. For Browser Use, adding integrations=browseruse next to solveCaptchas=true on the connection URL bridges the found and solved events into Browser Use's CaptchaWatchdog (browser-use >=0.12.0,<1.0; 1.0 removed the watchdog). The agent then pauses while Browserless solves the challenge and resumes its plan instead of failing.
Human fallback with liveURL
When nothing automated clears a challenge, page.liveURL() hands the running session to a person. It returns a shareable link that opens the live browser in a viewer, separate from your token-bearing connection, and page.waitForLiveComplete() blocks your script until that person finishes.
import Browserless from "@browserless.io/bap-ts";
const browser = Browserless.connect({
browserWSEndpoint: "wss://production-sfo.browserless.io/stealth/bql",
token: process.env.BROWSERLESS_TOKEN,
timeout: 180000,
});
try {
const page = await browser.newPage();
await page.goto("https://nowsecure.nl", { waitUntil: "networkIdle" });
// Mint a viewer link for the running session and send it to a person.
const { liveURL } = await page.liveURL({
instructions: "Clear the challenge, then click Done.",
timeout: 120000,
});
console.log("Open this to finish the step:", liveURL);
// Block until the person finishes, fails, or the link times out. Wait a little
// longer than the link lives, so its own timeout reason comes back first.
const { reason } = await page.waitForLiveComplete({ timeout: 130000 });
if (reason !== "userDone") throw new Error(`Handoff ended: ${reason}`);
// Done only means the person clicked it. Confirm the challenge is gone with a
// check that fits your target before carrying on.
const title = await page.$eval("title");
if (/just a moment/i.test(title)) throw new Error("Challenge not cleared");
console.log("Back in control at:", await page.url());
} finally {
await browser.close();
}
Only userDone means the person finished, and even then the script checks the page before trusting it. The other reasons are userFailed, timeout, closed and viewerDisconnected, and each one throws so the script never carries on from a page that wasn't cleared. None of these layers makes automation undetectable, and treating it that way is how accounts and IP ranges get burned.
Conclusion
A CAPTCHA solver API can hand you a perfectly good token and still leave you blocked. On reCAPTCHA v3, Turnstile and the bot controls around them, the site is also judging the browser that sent it. If your targets only show checkbox challenges, a cheap token service is enough. Once score-based checks show up, buying more tokens for a fresh headless session won't fix it, and a session the site already trusts will.
Browserless handles the solve inside that trusted session, with stealth routes and residential proxies building the trust first and a human handoff for anything automation can't clear. The CAPTCHA surcharge applies only to solves that succeed, so failed attempts add no solving fee, though the browser time and proxy bandwidth they use still count. To see whether the blocks stop on your own targets, connect your existing Puppeteer or Playwright script to Browserless.
FAQs
Is CAPTCHA bypass with a solver API legal?
It depends on the site's terms of service and your jurisdiction, not on the tool. Automating a site whose terms forbid it can breach that contract even where no law is broken, and some data carries extra legal protection. Check both before you use automation to access websites at scale.
Is there a free CAPTCHA solver API?
Yes. A free tier or a human-assist extension covers a handful of manual or occasional solves, but once solving runs unattended at volume, rate caps and lower accuracy make a paid or in-session path the cheaper one.
How much does CAPTCHA solving cost per 1,000?
Token services charge from under $1 to about $3 per 1,000 solves, depending on the CAPTCHA type. Proxy bandwidth and retries after score-based rejections usually cost more than the solves themselves, so budget well above the sticker price.
Can a CAPTCHA solver API solve reCAPTCHA v3 and Cloudflare Turnstile?
It can return a token for either, but the site still decides whether to accept it, from the reCAPTCHA v3 score, Turnstile's Siteverify result and its own bot checks. A stealth browser and a residential proxy can improve the trust signals the site reads from the session, but they don't guarantee the token is accepted. Proxy rotation mid-session changes the signals the score was built on, so keep one IP for the whole session and save IP rotation for between sessions.
How does an AI CAPTCHA solver actually solve a challenge?
For an image challenge, like a reCAPTCHA grid asking for every square with traffic lights, solving services run the image through machine learning models and fall back to human workers when the model can't answer. Success rates vary by challenge family, and interaction-heavy puzzles like FunCaptcha from Arkose Labs are harder than checkbox types. Either way, the answer comes back as a token or a string.
What do you need to call a CAPTCHA solver API?
You need an API key, the parameters that identify the challenge (the sitekey and page URL, plus an action or data-s value for some types), and an HTTP client to post them. Token services publish code samples and client libraries in several languages, and the request shape maps onto any HTTP client if yours isn't covered.
Can I use a CAPTCHA solver API for SaaS backend integration?
Yes. A backend job that collects web data calls the same token API, or on Browserless opens the same solveCaptchas=true connection from a server-side worker. The solve has to finish inside your request timeout or queue window, so design retries around the token's short lifespan (two minutes for reCAPTCHA, five for Turnstile).
Is there a CAPTCHA solver API built for ecommerce checkout automation?
No solver is checkout-specific, but checkouts often put Turnstile or reCAPTCHA v3 in front of the payment step. In-session solving fits better there. Checkout already depends on a trusted, cookie-bearing session that a standalone token can't carry.
What's the best CAPTCHA solver API for high-volume automation?
At volume, whether the browser session holds up under heavy load matters more than the per-solve price. In the October 2026 US West run of the Cloud Browser Benchmark, Browserless had the fastest median full round trip of the providers tested (1,452 ms) and the highest mean bypass rate (94%).