

C# Captcha solver (.NET): Bypass reCAPTCHA, Cloudflare, GeeTest and more
Use the C# captcha solver to automatically bypass any captcha — including reCAPTCHA v2, Invisible, v3, Enterprise, Cloudflare Turnstile, GeeTest sliders, Amazon WAF, FunCaptcha, and both image and text-based challenges.
✅ Supported сaptcha solvers
To get started quickly, check out the Captcha solver API documentation.
Helpful links:
🛠️ Features
- Fast and fully automated captcha bypass
- Native support for C# / .NET environments
- Works with Selenium WebDriver, PuppeteerSharp, or HTTP clients
- Clean and async-friendly code structure
- Pay only for successful solves
- 99.9% uptime
- 24/7 support for developers and integration teams
📦 Use Cases
- Web scraping behind reCAPTCHA or Cloudflare
- Automating login and registration forms protected by captcha
- Integrating captcha solving in .NET testing pipelines
- Bot-detection bypass in QA and security research
- Custom automation flows in enterprise C# applications
Need help integrating with your C# project? Open an issue or fork this repo to contribute.
Installation
(Coming soon) Install nuget package from nuget:
dotnet add package solvecaptcha-csharp
Installation from GitHub
You can also install the library directly from GitHub.
Clone the repository:
git clone https://github.com/solvercaptcha/solvecaptcha-csharp.git
Add the project as a dependency:
<ItemGroup>
<ProjectReference Include="path/to/solvecaptcha-csharp/SolveCaptcha/SolveCaptcha.csproj" />
</ItemGroup>
Configuration
SolveCaptcha instance can be created like this:
SolveCaptcha solver = new SolveCaptcha('YOUR_API_KEY');
Also there are few options that can be configured:
solver.DefaultTimeout = 120;
solver.RecaptchaTimeout = 600;
solver.PollingInterval = 10;
SolveCaptcha instance options
| Option |
Default value |
Description |
| defaultTimeout |
120 |
Polling timeout in seconds for all captcha types except reCAPTCHA. Defines how long the module tries to get the answer from res.php API endpoint |
| recaptchaTimeout |
600 |
Polling timeout for reCAPTCHA in seconds. Defines how long the module tries to get the answer from res.php API endpoint |
| pollingInterval |
10 |
Interval in seconds between requests to res.php API endpoint, setting values less than 5 seconds is not recommended |
To get the answer manually use getResult method
Solve captcha
When you submit any image-based captcha use can provide additional options to help solvecaptcha workers to solve it properly.
Captcha options
| Option |
Default Value |
Description |
| numeric |
0 |
Defines if captcha contains numeric or other symbols see more info in the API docs |
| minLength |
0 |
minimal answer length |
| maxLength |
0 |
maximum answer length |
| phrase |
0 |
defines if the answer contains multiple words or not |
| caseSensitive |
0 |
defines if the answer is case sensitive |
| calc |
0 |
defines captcha requires calculation |
| lang |
- |
defines the captcha language, see the list of supported languages |
| hintImg |
- |
an image with hint shown to workers with the captcha |
| hintText |
- |
hint or task text shown to workers with the captcha |
Below you can find basic examples for every captcha type. Check out examples directory to find more examples with all available options.
Basic example
Example below shows a basic solver call example with error handling.
Normal captcha = new Normal();
captcha.SetFile("path/to/captcha.jpg");
captcha.SetMinLen(4);
captcha.SetMaxLen(20);
captcha.SetCaseSensitive(true);
captcha.SetLang("en");
try
{
await solver.Solve(captcha);
Console.WriteLine("Captcha solved: " + captcha.Code);
}
catch (Exception e)
{
Console.WriteLine("Error occurred: " + e.Message);
}
Normal Captcha
API method description.
To bypass a normal captcha (distorted text on image) use the following method. This method also can be used to recognize any text on the image.
Normal captcha = new Normal();
captcha.SetFile("path/to/captcha.jpg");
captcha.SetNumeric(4);
captcha.SetMinLen(4);
captcha.SetMaxLen(20);
captcha.SetPhrase(true);
captcha.SetCaseSensitive(true);
captcha.SetCalc(false);
captcha.SetLang("en");
captcha.SetHintImg(new FileInfo("path/to/hint.jpg"));
captcha.SetHintText("Type red symbols only");
Text Captcha
API method description.
This method can be used to bypass a captcha that requires to answer a question provided in clear text.
Text captcha = new Text();
captcha.SetText("If tomorrow is Saturday, what day is today?");
captcha.SetLang("en");
reCAPTCHA v2
API method description.
Use this method to solve reCAPTCHA V2 and obtain a token to bypass the protection.
ReCaptcha captcha = new ReCaptcha();
captcha.SetSiteKey("6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-");
captcha.SetUrl("https://mysite.com/page/with/recaptcha");
captcha.SetInvisible(true);
captcha.SetEnterprise(false);
captcha.SetAction("verify");
captcha.SetProxy("HTTPS", "login:password@IP_address:PORT");
reCAPTCHA v3
API method description.
This method provides reCAPTCHA V3 solver and returns a token.
ReCaptcha captcha = new ReCaptcha();
captcha.SetSiteKey("6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-");
captcha.SetUrl("https://mysite.com/page/with/recaptcha");
captcha.SetVersion("v3");
captcha.SetEnterprise(false);
captcha.SetDomain("google.com");
captcha.SetAction("verify");
captcha.SetScore(0.3);
captcha.SetProxy("HTTPS", "login:password@IP_address:PORT");
FunCaptcha
API method description.
FunCaptcha (Arkoselabs) solving method. Returns a token.
FunCaptcha captcha = new FunCaptcha();
captcha.SetSiteKey("69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC");
captcha.SetUrl("https://mysite.com/page/with/funcaptcha");
captcha.SetSUrl("https://client-api.arkoselabs.com");
captcha.SetUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36");
captcha.SetData("anyKey", "anyValue");
captcha.SetProxy("HTTPS", "login:password@IP_address:PORT");
GeeTest
API method description.
Method to solve GeeTest puzzle captcha. Returns a set of tokens as JSON.
GeeTest captcha = new GeeTest();
captcha.SetGt("f2ae6cadcf7886856696502e1d55e00c");
captcha.SetApiServer("api-na.geetest.com");
captcha.SetChallenge("12345678abc90123d45678ef90123a456b");
captcha.SetUrl("https://mysite.com/captcha.html");
captcha.SetProxy("HTTPS", "login:password@IP_address:PORT");
GeeTest v4
API method description.
Method to solve GeeTest v4 puzzle captcha. Returns a set of tokens as JSON.
GeeTestV4 captcha = new GeeTestV4();
captcha.SetCaptchaId("72bf15796d0b69c43867452fea615052");
captcha.SetChallenge("12345678abc90123d45678ef90123a456b");
captcha.SetUrl("https://mysite.com/captcha.html");
KeyCaptcha