Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🍬 Simple HTTP API wrapper forhttps://anti-captcha.com

License

NotificationsYou must be signed in to change notification settings

Zaczero/AntiCaptcha

Repository files navigation

Zaczero/AntiCaptcha logo

GitHub ReleaseNuGet ReleaseLicense

Simple HTTP API wrapper foranti-captcha.com.An online captcha solving and image recognition service.

🌤️ Installation

Install with NuGet (recommended)

Install-Package AntiCaptchaAPI

Install manually

Browse latest GitHub release

🏁 Getting started

Sample code

/* * Class initialization * Optionally you can pass 2nd parameter `httpClient` with custom HttpClient to use while requesting API */varcaptcha=newAntiCaptcha("API_KEY");varcaptchaCustomHttp=newAntiCaptcha("API_KEY",newHttpClient());/* * Get current balance */varbalance=awaitcaptcha.GetBalance();/* * Type: Image * * Documentation (anti-captcha): https://anti-captcha.com/apidoc/image */varimage=awaitcaptcha.SolveImage("BASE64_IMAGE");/* * Type: ReCaptcha V2 * Optionally you can pass 3rd parameter `isInvisible` to indicate if the reCaptcha is setup as invisible * * Homepage: https://www.google.com/recaptcha/ * Documentation (vendor): https://developers.google.com/recaptcha/docs/display * Documentation (anti-captcha): https://anti-captcha.com/apidoc/recaptcha */varreCaptcha=awaitcaptcha.SolveReCaptchaV2("SITE_KEY","https://WEBSITE_URL");varreCaptchaInvisible=awaitcaptcha.SolveReCaptchaV2("SITE_KEY","https://WEBSITE_URL",true);varreCaptchaWithProxy=awaitcaptcha.SolveReCaptchaV2("SITE_KEY","https://WEBSITE_URL",newAntiCaptchaProxy(ProxyType.Http,"PROXY_ADDRESS",8080),"USER_AGENT");/* * Type: ReCaptcha V3 * If you get ERROR_INCORRECT_SESSION_DATA error you may need to increase minScore value * * Homepage: https://www.google.com/recaptcha/ * Documentation (vendor): https://developers.google.com/recaptcha/docs/v3 * Documentation (anti-captcha): https://anti-captcha.com/apidoc/recaptcha */varreCaptchaV3=awaitcaptcha.SolveReCaptchaV3("SITE_KEY","https://WEBSITE_URL",0.9,"SOME_ACTION");/* * Type: hCaptcha * * Homepage: https://www.hcaptcha.com/ * Documentation (vendor): https://docs.hcaptcha.com/ * Documentation (anti-captcha): https://anti-captcha.com/apidoc/hcaptcha */varhCaptcha=awaitcaptcha.SolveHCaptcha("SITE_KEY","https://WEBSITE_URL");varhCaptchaWithProxy=awaitcaptcha.SolveHCaptcha("SITE_KEY","https://WEBSITE_URL",newAntiCaptchaProxy(ProxyType.Http,"PROXY_ADDRESS",8080),"USER_AGENT");/* * Type: GeeTest * * Homepage: https://www.geetest.com/en * Documentation (vendor): https://docs.geetest.com/en * Documentation (anti-captcha): https://anti-captcha.com/apidoc/geetest */vargeeTest=awaitcaptcha.SolveGeeTest("SITE_KEY","https://WEBSITE_URL","CHALLENGE");vargeeTestWithProxy=awaitcaptcha.SolveGeeTest("SITE_KEY","https://WEBSITE_URL","CHALLENGE",newAntiCaptchaProxy(ProxyType.Http,"PROXY_ADDRESS",8080),"USER_AGENT");/* * Type: FunCaptcha * * Documentation (anti-captcha): https://anti-captcha.com/apidoc/funcaptcha */varfunCaptcha=awaitcaptcha.SolveFunCaptcha("SITE_KEY","https://WEBSITE_URL");varfunCaptchaWithProxy=awaitcaptcha.SolveFunCaptcha("SITE_KEY","https://WEBSITE_URL",newAntiCaptchaProxy(ProxyType.Http,"PROXY_ADDRESS",8080),"USER_AGENT");/* * Type: SquareNet */varsquareNet=awaitcaptcha.SolveSquareNet("BASE64_IMAGE","OBJECT_NAME",3,3);

And here is the result structure(the same for all methods)

publicstructAntiCaptchaResult{publicboolSuccess;publicstringResponse;publicAntiCaptchaResult(boolsuccess,stringresponse){Success=success;Response=response;}}

Footer

📧 Contact

📃 License


[8]ページ先頭

©2009-2025 Movatter.jp