Quickstart
TypeScript
import { Azcaptcha } from "@azcaptcha/sdk";
const client = new Azcaptcha("YOUR_API_KEY");
const token = await client.solveRecaptchaV2(
"6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
"https://example.com/login",
);
console.log(token);
Examples
Three captcha types, three snippets
TypeScript
const token = await client.solveRecaptchaV2(sitekey, pageurl);
// invisible / enterprise
await client.solveRecaptchaV2(sitekey, pageurl, { invisible: true });
TypeScript
const token = await client.solveTurnstile("0x4AAAAAAA...", "https://example.com/");
const h = await client.solveHCaptcha("SITEKEY", "https://example.com/");
TypeScript
// Buffer/Uint8Array, base64, data: URI or file path
const answer = await client.solveImage("captcha.png");
All snippets assume YOUR_API_KEY is set and a client named client exists.
Polling timeouts and retry behaviour are handled by the SDK.