- Notifications
You must be signed in to change notification settings - Fork4
🍬 Simple HTTP API wrapper forhttps://anti-captcha.com
License
NotificationsYou must be signed in to change notification settings
Zaczero/AntiCaptcha
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Simple HTTP API wrapper foranti-captcha.com.An online captcha solving and image recognition service.
Install-Package AntiCaptchaAPI
/* * 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);
publicstructAntiCaptchaResult{publicboolSuccess;publicstringResponse;publicAntiCaptchaResult(boolsuccess,stringresponse){Success=success;Response=response;}}
- Email:kamil@monicz.pl
- PGP:0x9D7BC5B97BB0A707
Packages0
No packages published