Guides and articles on solving CAPTCHAs in real automation
Language-by-language tutorials, parameter-finding guides, Cloudflare error explainers and longer pieces on running scrapers that keep working.
The blog collects the material that does not fit on a reference page. Tutorials walk through one CAPTCHA family in one language from the first request to the submitted form, with the code you need and the checks that catch the usual mistakes. Parameter guides show how to read a site key, an action name, a Turnstile cData value or an AWS WAF context from a live page, because a task built from the wrong value is the most common reason a token is rejected.
Articles take a wider view: why a site decides you are a bot, how to keep a scraper from collecting IP bans, what a reCAPTCHA v3 score really measures, and how to budget CAPTCHA costs when a pipeline grows. They are written for people who already have something running and want it to break less often.
Everything here uses the same small API: send a task to /createTask, poll /getTaskResult, and use the answer in the page or request. Tasks are charged only when they are solved, and one balance covers every CAPTCHA type, so the examples can be mixed freely in one project.
Browse by topic
reCAPTCHA (18)
- Solve reCAPTCHA v2 in PythonA complete Python walkthrough with requests: read the site key, create the task, poll for the token and submit the form.
- Solve reCAPTCHA v2 in Node.jsUse the fetch API built into Node.js 18+ to get a reCAPTCHA v2 token, then place it inside a live Puppeteer page.
- Solve reCAPTCHA v2 in GoA typed Go client for reCAPTCHA v2: request and response structs, net/http calls and a ticker bounded by a context deadline.
- Solve reCAPTCHA v2 in PHPTwo PHP clients for reCAPTCHA v2, plain cURL and Guzzle, plus posting the returned token with the rest of a form.
- Solve reCAPTCHA v2 in C#A .NET 8 reCAPTCHA v2 client with HttpClient and System.Text.Json, async polling with cancellation, and Selenium token injection.
- Solve reCAPTCHA v2 in JavaJava 11+ HttpClient and Jackson build the reCAPTCHA v2 task; Selenium JavascriptExecutor places the returned token in the page.
- Solve reCAPTCHA v2 in RubyRuby standard library only: Net::HTTP and JSON fetch a reCAPTCHA v2 token, and selenium-webdriver places it in the form.
- Solve invisible reCAPTCHA v2Spot the floating badge, send the task with isInvisible set, then hand the token to the page through its callback.
- Solve reCAPTCHA v3 in PythonPython and httpx for reCAPTCHA v3: send the right pageAction, then attach the token to the exact request the site makes.
- Solve reCAPTCHA v3 in Node.jsWrap grecaptcha.execute inside a Playwright page so the site receives a solved v3 token through its own code path.
- Solve reCAPTCHA Enterprise v2 and v3Recognise enterprise.js, carry the s value in enterprisePayload, and match the v3 Enterprise action so the site gets a usable token.
- Find the reCAPTCHA site keyFive dependable places to read a reCAPTCHA site key, from the data-sitekey attribute to the k parameter in network requests.
- Identify which reCAPTCHA version a site usesCheckbox, badge or silent score: read the script URL, iframe size and execute calls to name the exact reCAPTCHA variant.
- Find the reCAPTCHA v3 action nameLocate the exact action string a page passes to grecaptcha.execute using script search, breakpoints or the outgoing request.
- Find the reCAPTCHA callback functionFrom data-callback to a walk through the ___grecaptcha_cfg clients object: how to reach the function that consumes the token.
- reCAPTCHA v3 scores explainedHow Google turns page signals into a v3 score, how sites act on it, and what a solver can and cannot influence.
- Fixing the "unusual traffic from your computer network" pageWhy Google shows its unusual traffic page, how IP reputation and request patterns trigger it, and how to handle it calmly.
- Why reCAPTCHA tokens expire and how to time themreCAPTCHA tokens last about two minutes and verify once; here is how to schedule solves so every token arrives fresh.
Cloudflare (14)
- Solve Cloudflare Turnstile in PythonAn asyncio and aiohttp client for Turnstile tasks, with action and cData passed through and the token posted as cf-turnstile-response.
- Solve Cloudflare Turnstile in Node.jsCapture the Turnstile render options inside Playwright, solve with the same values, and hand the token to the site callback.
- Solve Cloudflare Turnstile in C#Typed records and System.Text.Json produce a C# Turnstile client; Selenium for .NET writes the token into the form.
- Solve Cloudflare Turnstile in GoA Go Turnstile client built around retries: a generic API helper, sentinel errors for transient failures and jittered backoff.
- Find Turnstile site key, action and cDataWhere Turnstile keeps its site key, action and cData: widget attributes, turnstile.render options and explicit rendering setups.
- Get past the Cloudflare challenge page in PythonGet a cf_clearance cookie with AntiCloudflareTask and your own proxy, then reuse it from Python with the matching user agent.
- Get past the Cloudflare challenge page in Node.jsNode.js with undici: route through your proxy, keep cf_clearance in a cookie jar and send the matching user agent.
- Tell Turnstile, managed challenges and blocks apartStatus codes, headers, page markers and cookies that separate a Turnstile widget, a challenge page and a hard Cloudflare block.
- Reusing cf_clearance cookies safelyDesign sessions around cf_clearance: bind each cookie to one IP and user agent, track its age and refresh only when needed.
- Cloudflare 403 Forbidden while scrapingWhy Cloudflare answers scrapers with 403: firewall rules, IP reputation, client fingerprints and challenges, and which of them you can address.
- Cloudflare error 1020 Access DeniedError 1020 means a site owner's firewall rule matched your request. What it covers, what a client can change, and what it cannot.
- Cloudflare error 1010Error 1010 is a block based on your browser's signature. How automation fingerprints trigger it and what keeping a consistent client involves.
- Cloudflare errors 1006, 1007 and 1008Errors 1006, 1007 and 1008 mean the site owner banned the IP address. What triggers an IP ban and how to respond sensibly.
- The Cloudflare "checking your browser" waitFrom the old five second JavaScript check to today's managed challenge: what the Cloudflare waiting screen does and how clients pass it.
AWS WAF and other CAPTCHAs (15)
- Solve AWS WAF CAPTCHA in PythonDetect the AWS WAF 405 page in a requests session, send an AntiAwsWafTask and store the returned aws-waf-token cookie for the retry.
- Solve AWS WAF CAPTCHA in Node.jsPlaywright meets the AWS WAF puzzle, reads window.gokuProps, gets a cookie from the API and reloads with it in the context.
- Solve AWS WAF CAPTCHA in PHPPlain PHP cURL with a cookie jar: recognise the WAF page, solve it once and keep aws-waf-token across every later request.
- Find AWS WAF CAPTCHA parametersWhere key, iv and context sit on the AWS WAF puzzle page, and how each value maps to a task field.
- AWS WAF image puzzles explainedWhen to answer the AWS WAF picture grid tile by tile with AwsWafClassification, and when a token task is simpler.
- Solve GeeTest v3 and v4Tell GeeTest v3 from v4, collect gt and a fresh challenge or the captcha_id, then pass every returned field on.
- Solve MTCaptcha in PythonA standard library only Python script that reads the MTPublic site key, solves it and posts mtcaptcha-verifiedtoken with the form.
- Solve the DataDome sliderBuild the captcha URL from the DataDome block page, solve it through your own proxy and keep IP and User-Agent identical afterwards.
- Solve image text CAPTCHAs in PythonDownload the distorted text image in the form session, base64 it, send ImageToTextTask and type the answer back with the right case.
- Solve image text CAPTCHAs in Node.jsThree ways to turn a CAPTCHA image element into base64 with Puppeteer, then read it and type the answer back.
- reCAPTCHA image grids with classification tasksAnswer the reCAPTCHA picture grid inside a real browser: capture the challenge image, map the object, click the returned tile numbers.
- Vision Engine tasks for sliders and rotationsSend a slider or rotation puzzle to VisionEngine, read back a pixel distance or angle, then drag with human pacing.
- Solve any CAPTCHA with cURLA portable Bash script on curl and jq: send any task JSON file, poll at the right pace, print the solution.
- Solve CAPTCHAs from RustA typed async Rust client with reqwest, serde and tokio that polls tasks concurrently and maps API errors to an enum.
- Solve CAPTCHAs from C++A compact C++17 client on libcurl and nlohmann/json, with RAII handles, typed exceptions and one polling loop for any task.
Web scraping (28)
- Web scraping with Python: a working guideFrom the first request to a polite, restartable scraper in Python: sessions, parsing, pagination, retries and where CAPTCHAs fit in.
- Scrapy vs Beautiful SoupA crawling framework and an HTML parser are different tools: what each handles, when to pick which, and how to combine them.
- Scrapy vs SeleniumAn HTTP crawler against a real browser: what each costs per page, which sites need which, and how hybrid setups combine both.
- Handle CAPTCHAs in a Scrapy middlewareAn async downloader middleware that spots a challenge response, solves it through the API and reschedules the request, keeping spiders clean.
- Scrapy with PlaywrightRender only the requests that need JavaScript: scrapy-playwright settings, page methods, page objects, contexts and blocking heavy resources.
- curl_cffi for browser-like requestsSend Python requests whose TLS and HTTP/2 fingerprints match a real browser, with impersonate profiles, sessions, async and proxies.
- Async scraping with aiohttpA bounded async crawler on aiohttp: one shared session, per host limits, jittered retries and CAPTCHA polling that never blocks.
- Scraping with HTTPXHTTPX for scrapers: HTTP/2 on one connection, timeouts split by phase, connection limits, event hooks, and the same code sync or async.
- Web scraping with Axios and CheerioA Node.js scraper on Axios and Cheerio: a configured instance, a retry interceptor, jQuery style parsing and a small pool.
- Web scraping with Go and CollyColly collectors in Go: allowed domains, depth, async limits, callbacks for HTML and errors, and safe output from concurrent goroutines.
- Web scraping with C# HttpClientA .NET scraper with one long lived HttpClient, a handler that keeps cookies and decompresses, HtmlAgilityPack XPath parsing and a retry helper.
- Web scraping with RubyRuby scraping two ways: a persistent Net::HTTP connection or HTTParty for fetching, Nokogiri for parsing, and retry blocks that read naturally.
- Web scraping with RScrape straight into data frames with R: httr2 pipelines with retries and throttling, rvest selectors, tables and polite pagination.
- Web scraping with Selenium and PythonSelenium scraping that stays stable: explicit waits, locators that survive redesigns, headless Chrome, infinite scroll and stale elements.
- Web scraping with PuppeteerPuppeteer scraping beyond the basics: picking the right navigation wait, bulk extraction with $$eval, blocking heavy requests and capturing JSON.
- Web scraping with PlaywrightUse Playwright contexts, readable locators and captured JSON responses to scrape script-heavy pages from Python without guesswork.
- Change the user agent in SeleniumSet a custom user agent in Selenium through Chrome options or a CDP override, and keep client hints telling the same story.
- Take screenshots with PuppeteerCapture full pages, single elements and clipped regions with Puppeteer, and use screenshots to see why a scraper met a challenge.
- How to avoid IP bans while scrapingPacing, address rotation, sticky sessions and caching: four levers that keep a scraper's IP addresses usable for months instead of hours.
- Why a site thinks you are a botThe network, browser and behavior signals that make a site label traffic as automated, and the honest fix for each one.
- Scraping without getting blockedA blocking-free scraping checklist: settle these before the first request, watch these during a run, review these afterward.
- Web scraping vs official APIsWhen an official API beats scraping, when scraping is the only practical route, and how to combine them in one data pipeline.
- Is web scraping legal?General principles that shape whether a scraping project is lawful: public access, site terms, personal data, copyright and how you collect.
- Choosing proxies for CAPTCHA solvingWhen a CAPTCHA task needs your proxy, which network type fits, and why answers must stay on the same IP.
- Picking user agents for scrapersHow to choose, maintain and rotate user agent strings so a scraper reads as a current, ordinary browser.
- CAPTCHAs in search result scrapingWhy search engines challenge rank trackers, what a sorry page means, and how pacing and query design cut CAPTCHAs.
- CAPTCHAs in e-commerce scrapingWhere online stores place CAPTCHAs, how catalogue crawls and price checks differ, and patterns that keep both running with few challenges.
- CAPTCHAs in automated QA testingHow QA teams keep CAPTCHAs from breaking tests: vendor test keys, guarded staging switches, and real solves where they matter.
CAPTCHA basics (12)
- What is a CAPTCHA?From warped letters to invisible risk scores: what a CAPTCHA is for, the main families, and how they changed.
- How CAPTCHAs work behind the scenesFollow one CAPTCHA from the widget script to the token and the site's server-side check, and see where each part can fail.
- How CAPTCHA solving services workWhat happens between createTask and a ready answer: the task queue, the AI models, the returned token and why pricing is per 1,000.
- What CAPTCHA solving costs at scaleA method for estimating CAPTCHA spend from your own volumes: per 1,000 math, mixed workloads, and how far one top-up goes.
- AI image recognition and CAPTCHAsHow recognition models read distorted text, pick grid tiles and place slider pieces, and why visual tests alone no longer stop machines.
- Solving CAPTCHAs in web scraping pipelinesAn architecture for scrapers that meet CAPTCHAs: detect challenges as their own outcome, solve in a separate stage, retry with clear limits.
- CAPTCHA types comparedAll fourteen CAPTCHA types GateSolver solves in one comparison: looks, answers, proxy needs, speed and price.
- CAPTCHAs and accessibilityWho CAPTCHAs shut out, why audio alternatives fall short, and how invisible checks and better design reduce the barrier.
- Handling several CAPTCHAs in one flowSolve several CAPTCHAs in one journey: order the steps, start independent tasks in parallel, keep answers fresh and pay from one balance.
- Error handling for CAPTCHA APIsSort every CAPTCHA API error into retry, fix or stop, follow those rules in code, and know which outcomes cost nothing.
- Moving an in.php client to GateSolverPoint an existing in.php and res.php client at GateSolver: change the base URL, check its methods, switch on json=1.
- Moving a createTask client to GateSolverSwitch a createTask and getTaskResult client to GateSolver: replace the base URL, check task type names and fields, test with getBalance.
AI agents and automation (16)
- Why AI agents get blocked by CAPTCHAsWhat a site observes when a language model drives a browser, which signals raise a challenge, and the pattern that resolves it.
- A LangChain agent that keeps hitting reCAPTCHAGive a LangChain agent a reCAPTCHA tool that spots the widget, requests a token over HTTP and continues the run.
- When a Browser Use agent gets blockedDiagnose why a Browser Use agent stops on a challenge, add a custom solve action and keep the browser session consistent afterwards.
- CrewAI agents and login CAPTCHAsA CrewAI tool that clears the CAPTCHA on a login form you may automate and hands the session back to the crew.
- An agent stuck on Cloudflare TurnstileRecognize Turnstile in the page snapshots your agent reads, request a token from the API and fill cf-turnstile-response so the run continues.
- Breaking CAPTCHA loops in AI web agentsWhy language model agents retry the same blocked step indefinitely, and the guards, budgets and timeouts that end each run cleanly.
- Fingerprint detection and AI agentsWhich headless tells fingerprinting scripts read from agent browsers, why consistency beats disguise, and what an operator can realistically control.
- Why your Playwright bot is detectedThe automation tells a stock Playwright launch exposes, how sites read them, and practical changes for calmer test runs.
- Puppeteer detected as a bot: what to checkA checklist for Puppeteer scripts that get flagged: the webdriver flag, headless markers, launch arguments and the request patterns sites notice.
- Agentic browsers explainedWhat agentic browsers are, how they differ from scripted automation, why they meet CAPTCHAs, and where a solving API fits into them.
- How AI agents are used in web scrapingWhere language model agents genuinely help a scraper, from planning crawls to messy extraction and selector repair, and where they fall short.
- Price monitoring with AI agents and CAPTCHAsAn architecture for a price monitoring agent that visits shop pages on schedule, meets challenges and still delivers clean numbers.
- Solve reCAPTCHA in an n8n workflowAn n8n workflow that creates a reCAPTCHA v2 or v3 task, checks it in a loop and passes the token onward.
- Solve Cloudflare Turnstile in n8nAn n8n workflow that reads the Turnstile site key from the page, requests a token and sends the follow-up request.
- Solve AWS WAF CAPTCHA in n8nDetect the AWS WAF puzzle response in n8n, get an aws-waf-token cookie and repeat the request with it attached.
- Solve image CAPTCHAs in n8nTurn a CAPTCHA picture into base64 inside n8n, read it with ImageToTextTask and post the text back with the same session cookie.
More languages (14)
- Solve reCAPTCHA v3 in GoA Go client for reCAPTCHA v3 that sends the right pageAction and replays the JSON call the site makes with the token.
- Solve reCAPTCHA v3 in PHPSolve reCAPTCHA v3 from a PHP back end with Guzzle and post the token in a form that keeps its session cookies.
- Solve reCAPTCHA v3 in C#A C# reCAPTCHA v3 flow on HttpClient with a generic typed result, PeriodicTimer polling and cancellation from start to finish.
- Solve reCAPTCHA v3 in JavaA non blocking Java flow for reCAPTCHA v3 built on HttpClient.sendAsync, a scheduler and CompletableFuture polling.
- Solve Cloudflare Turnstile in PHPSolve Turnstile from PHP using only built in stream functions, then post cf-turnstile-response with the session cookie.
- Solve Cloudflare Turnstile in JavaHandle Turnstile in Selenium for Java: wait for the widget, get a token over HTTP, fill the field and fire the callback.
- Solve Cloudflare Turnstile in RubyA Ruby Turnstile flow on Faraday with JSON middleware, a Nokogiri form reader and a Net::HTTP fallback for scripts without gems.
- Solve AWS WAF CAPTCHA in GoDetect the AWS WAF puzzle from Go, place the aws-waf-token cookie in a cookiejar and repeat the request transparently.
- Solve AWS WAF CAPTCHA in C#A DelegatingHandler for .NET that spots the AWS WAF puzzle, adds the aws-waf-token cookie to a CookieContainer and resends.
- Solve GeeTest in PythonAn async Python flow for GeeTest v3 and v4 using httpx and dataclasses, with the site verification request built from the result.
- Solve GeeTest in Node.jsCapture GeeTest v4 parameters from a live Playwright page in Node.js, solve them through the API and send the verified request.
- Solve image text CAPTCHAs in PHPRead distorted text CAPTCHAs from PHP: fetch the image in the form session, base64 encode it and send an ImageToTextTask.
- Solve image text CAPTCHAs in C#Read text CAPTCHAs in C#: download bytes with a shared cookie session, Convert.ToBase64String them and post an ImageToTextTask.
- Get past the Cloudflare challenge page in GoClear the Cloudflare challenge page from Go: request cf_clearance through your proxy, then reuse it with the matching User-Agent.
Where to start
If you are connecting for the first time, pick the tutorial for your language and CAPTCHA type, then keep the API docs open for the error codes. If a token is being rejected, read the parameter guide for that widget before changing anything else; most fixes are a single field. If you are moving an existing client, the migration guides for in.php and createTask clients show which lines change.
Tool-specific walkthroughs for Selenium, Playwright, Puppeteer, Scrapy, n8n and agent frameworks live under integrations, and short definitions of every term used here are in the glossary.
Common questions
Which languages do the tutorials cover?
Python, Node.js, Go, PHP, C#, Java and Ruby, plus shorter guides for Rust, C++ and plain cURL. The request format is the same in every language.
Do the examples work with a new account?
Yes, once the account has a balance and an API key. Replace YOUR_API_KEY with your key and the example page values with the ones from your target page.
Are failed tasks in the examples charged?
No. A task is charged only at the moment it is solved; unsolvable and expired tasks cost nothing.
How often is the blog updated?
Guides are revised when the API or a widget changes. Third-party details such as library versions are written as examples to check against current documentation.
Where can I see prices for each task type?
The pricing page lists the price per 1,000 solved tasks and the usual answer time for all 14 CAPTCHA types.