Official C# client library for capmonster.cloud captcha recognition service
Via Package Manager:
Install-Package Zennolab.CapMonsterCloud.Client
Via .NET CLI
dotnet add package Zennolab.CapMonsterCloud.Client
var clientOptions = new ClientOptions
{
ClientKey = "<your capmonster.cloud API key>"
};
var cmCloudClient = CapMonsterCloudClientFactory.Create(clientOptions);
// solve RecaptchaV2 (without proxy)
var recaptchaV2Request = new RecaptchaV2Request
{
WebsiteUrl = "https://lessons.zennolab.com/captchas/recaptcha/v2_simple.php?level=high",
WebsiteKey = "6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd",
};
var recaptchaV2Result = await cmCloudClient.SolveAsync(recaptchaV2Request);
// solve RecaptchaV2 (with proxy)
var recaptchaV2Request = new RecaptchaV2Request
{
WebsiteUrl = "https://lessons.zennolab.com/captchas/recaptcha/v2_simple.php?level=high",
WebsiteKey = "6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd",
Proxy = new ProxyContainer("203.0.113.45", 8080, ProxyType.Http, "login", "password")
};
var recaptchaV2Result = await cmCloudClient.SolveAsync(recaptchaV2Request);
// solve HCaptcha (without proxy)
var hcaptchaRequest = new HCaptchaRequest
{
WebsiteUrl = "https://lessons.zennolab.com/captchas/hcaptcha/?level=easy",
WebsiteKey = "472fc7af-86a4-4382-9a49-ca9090474471",
};
var hcaptchaResult = await cmCloudClient.SolveAsync(hcaptchaRequest);
Supported captcha recognition requests: