SurSolver 0.1.0
dotnet add package SurSolver --version 0.1.0
NuGet\Install-Package SurSolver -Version 0.1.0
<PackageReference Include="SurSolver" Version="0.1.0" />
<PackageVersion Include="SurSolver" Version="0.1.0" />
<PackageReference Include="SurSolver" />
paket add SurSolver --version 0.1.0
#r "nuget: SurSolver, 0.1.0"
#:package SurSolver@0.1.0
#addin nuget:?package=SurSolver&version=0.1.0
#tool nuget:?package=SurSolver&version=0.1.0
SurSolver for .NET — captcha solver API client for C#
Solve reCAPTCHA v3, Cloudflare Turnstile, Cloudflare Challenge, GeeTest,
DataDome, AWS WAF, Akamai, Kasada and image captchas from C# and .NET with the
official SurSolver client. One await submits the captcha and returns
the token or cookie. Runs on .NET Framework 4.6.2+, .NET 8+ and every netstandard2.0 host.
dotnet add package SurSolver
Quick start
using System.Text.Json.Nodes;
using SurSolver;
const string ApiKey = "YOUR_API_KEY";
const string UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36";
var client = new SurSolverClient(ApiKey);
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.TurnstileTokenProxyLess,
["websiteURL"] = "https://example.com/login",
["websiteKey"] = "0x4AAAAAAA...",
["userAgent"] = UserAgent,
});
Console.WriteLine(result.Solution["token"]);
Send the same userAgent with the request that uses the result. Tokens and cookies are
single-use, so use them right away. Create one SurSolverClient and reuse it; the examples below
reuse client and UserAgent.
Examples
Solve reCAPTCHA v3 in C#
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.ReCaptchaV3TokenProxyLess,
["websiteURL"] = "https://example.com/login",
["websiteKey"] = "6Le-wvkS...",
["pageAction"] = "login",
["userAgent"] = UserAgent,
});
Console.WriteLine(result.Solution["gRecaptchaResponse"]);
For reCAPTCHA v3 Enterprise use TaskTypes.ReCaptchaV3EnterpriseTokenProxyLess.
Solve Cloudflare Turnstile
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.TurnstileTokenProxyLess,
["websiteURL"] = "https://example.com/signup",
["websiteKey"] = "0x4AAAAAAA...",
["userAgent"] = UserAgent,
});
// Submit the token as the cf-turnstile-response form field.
Console.WriteLine(result.Solution["token"]);
Bypass the Cloudflare Challenge page (cf_clearance)
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.CloudflareChallengeCookie,
["websiteURL"] = "https://example.com/protected",
["proxy"] = "http://user:password@203.0.113.10:8000",
["userAgent"] = UserAgent,
});
Console.WriteLine(result.Solution["cf_clearance"]);
Replay the cookie through the same proxy and with the same userAgent.
Solve GeeTest v4
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.GeeTestTokenProxyLess,
["websiteURL"] = "https://example.com/login",
["captchaId"] = "e392e1d7fd421dc63325744d5a2b9c73",
["userAgent"] = UserAgent,
});
Console.WriteLine($"{result.Solution["lot_number"]} {result.Solution["pass_token"]}");
GeeTest v3: send gt and a fresh challenge instead of captchaId.
Solve the DataDome slider
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.DataDomeSliderCookie,
["websiteURL"] = "https://example.com/",
["captchaUrl"] = "https://geo.captcha-delivery.com/captcha/?initialCid=...",
["proxy"] = "http://user:password@203.0.113.10:8000",
["userAgent"] = UserAgent,
});
Console.WriteLine(result.Solution["datadome"]);
Get an AWS WAF token (silent challenge)
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.AwsChallengeCookie,
["websiteURL"] = "https://example.com/",
["scriptUrl"] = "https://example.token.awswaf.com/example/challenge.js",
["userAgent"] = UserAgent,
});
Console.WriteLine(result.Solution["aws-waf-token"]);
The visual AWS WAF CAPTCHA is TaskTypes.AwsCaptchaCookie and needs your proxy.
Solve an image captcha (image to text)
var image = await File.ReadAllBytesAsync("captcha.png");
var result = await client.SolveAsync(new JsonObject
{
["type"] = TaskTypes.ImageToTextTask,
["module"] = "1",
["body"] = Convert.ToBase64String(image),
});
Console.WriteLine(result.Solution["answer"]);
Supported captchas
| Captcha | task.type |
Guide |
|---|---|---|
| reCAPTCHA v3 | ReCaptchaV3TokenProxyLess |
recaptcha-v3 |
| reCAPTCHA v3 Enterprise | ReCaptchaV3EnterpriseTokenProxyLess |
recaptcha-v3-enterprise |
| Cloudflare Turnstile | TurnstileTokenProxyLess |
turnstile |
| Cloudflare Challenge | CloudflareChallengeCookie |
cloudflare-challenge |
| GeeTest v3 / v4 | GeeTestTokenProxyLess |
geetest |
| DataDome | DataDomeSliderCookie |
datadome |
| AWS WAF Challenge | AwsChallengeCookie |
aws-challenge |
| AWS WAF CAPTCHA | AwsCaptchaCookie |
aws-captcha |
Akamai (_abck) |
AkamaiCookieProxyLess |
akamai |
| Akamai SBSD | AkamaiSbsdCookie |
akamai-sbsd |
| Akamai BMP (Android) | AkamaiBmpTask |
akamai-bmp |
| Kasada | KasadaTokenProxyLess |
kasada |
| Shape | ShapeCookieProxyLess |
shape |
| Imperva (reese84 / utmvc) | ImpervaCookie, ImpervaUtmvcCookie |
imperva |
| Vercel Security Checkpoint | VercelCookie |
vercel |
| FriendlyCaptcha | FriendlyCaptchaTokenProxyLess |
friendlycaptcha |
| MTCaptcha | MtCaptchaTokenProxyLess |
mtcaptcha |
| Prosopo | ProsopoTokenProxyLess |
prosopo |
| CaptchaFox | CaptchaFoxToken |
captchafox |
| Altcha | AltchaTokenProxyLess |
altcha |
| Lemin | LeminTokenProxyLess |
lemin |
| Castle (Android) | CastleAndroidToken |
castle-android |
| Image to Text | ImageToTextTask |
image-to-text |
Each guide lists the fields to send and where to find them on the page. The live list is
await client.ListTaskTypesAsync(); prices are await client.ListServicesAsync().
Errors
try
{
var result = await client.SolveAsync(task, cancellationToken: cancellationToken);
}
catch (NoSlotAvailableException)
{
// all your threads are busy: try again in a moment
}
catch (TaskFailedException)
{
// this captcha could not be solved; its charge is refunded
}
Other errors: SurSolver.AuthenticationException (wrong API key), InvalidTaskException (a
field is missing or wrong), InsufficientBalanceException (top up), SolveTimeoutException (no
result in time). Cancel with the CancellationToken you pass in.
Links
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Text.Json (>= 8.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 105 | 11/4/2026 |