Expand description
Official Anti-Captcha.com API client.
Solves image captchas, Recaptcha v2/v3 (Enterprise and non-Enterprise), hCaptcha, FunCaptcha (Arkose Labs), GeeTest v3/v4, Cloudflare Turnstile, Amazon WAF, Prosopo, Friendly Captcha, Altcha, and runs AntiGate custom scenarios.
To use the service you need to register and top up your balance. For the API details see the documentation.
§Example
use anticaptcha::{Client, RecaptchaV2};
let ac = Client::new("API_KEY_HERE");
// Make sure the API key funds balance is positive
println!("Balance: {}", ac.get_balance().await?);
let solution = ac
.solve_recaptcha_v2(&RecaptchaV2 {
website_url: "https://www.website.com/".into(),
website_key: "6Lcyu8UZAAAAACwSh6Xf58WrNXTu0LLu4F85xf20".into(),
..Default::default()
})
.await?;
println!("g-response token: {}", solution.g_recaptcha_response());§Synchronous API
Enable the blocking feature to get blocking::Client, a synchronous
mirror of the same methods:
anticaptchaofficial = { version = "1", features = ["blocking"] }§Feature flags
rustls-tls(default) — TLS through rustls, no system OpenSSL needednative-tls— TLS through the platform libraryblocking— adds the synchronousblockingmodule
Re-exports§
pub use serde_json;
Modules§
- blocking
- Synchronous mirror of the async API, behind the
blockingfeature.
Structs§
- Altcha
- https://anti-captcha.com/apidoc/task-types/AltchaTaskProxyless
- Amazon
- https://anti-captcha.com/apidoc/task-types/AmazonTaskProxyless
- Anti
BotCookie - https://anti-captcha.com/apidoc/task-types/AntiBotCookieTask
- Anti
Gate - https://anti-captcha.com/apidoc/task-types/AntiGateTask
- Client
- Talks to the Anti-Captcha API.
- Friendly
Captcha - https://anti-captcha.com/apidoc/task-types/FriendlyCaptchaTaskProxyless
- FunCaptcha
- https://anti-captcha.com/apidoc/task-types/FunCaptchaTaskProxyless
- GeeTest
- https://anti-captcha.com/apidoc/task-types/GeeTestTaskProxyless
- HCaptcha
- https://anti-captcha.com/apidoc/task-types/HCaptchaTaskProxyless
- Image
Settings - https://anti-captcha.com/apidoc/task-types/ImageToTextTask
- Image
ToCoordinates - https://anti-captcha.com/apidoc/task-types/ImageToCoordinatesTask
- Prosopo
- https://anti-captcha.com/apidoc/task-types/ProsopoTaskProxyless
- Proxy
- Your proxy, for the
*_proxy_onmethods. - Recaptcha
V2 - https://anti-captcha.com/apidoc/task-types/RecaptchaV2TaskProxyless
- Recaptcha
V3 - https://anti-captcha.com/apidoc/task-types/RecaptchaV3TaskProxyless
- Solution
- The
solutionobject of a completed task. - Turnstile
- https://anti-captcha.com/apidoc/task-types/TurnstileTaskProxyless
Enums§
Constants§
- VERSION
- Library version, e.g.
"1.0.0".