AZcaptcha for JavaScript / TypeScript

Promise-based Node.js client with bundled TypeScript types.

npm install @azcaptcha/sdk

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);
At a glance
Package
@azcaptcha/sdk
Version
1.0.0
Contract
spec-v1.0.0
License
MIT
  • ESM + CommonJS
  • TypeScript types
  • Node.js 18+

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.

The same API, elsewhere