A simple captcha solving service and official API wrapper for https://csolver.xyz
npm install csolver@latest
pnpm install csolver@latest
yarn add csolver@latest
const { CSolver } = require("csolver");
const csolver = new CSolver("Your Api-Key"); // Get your key in https://csolver.xyz/dash
async function main() {
try {
const task = await csolver.createTask({
task: "hCaptcha",
payload: {
siteKey: "hcaptcha key",
siteUrl: "example.com",
rqData: "", // optional
proxy: "user:pass@ip:port" // optional
}
});
console.log(task); // { status: "", job_id: "" }
const result = await csolver.getTaskResult(task.job_id);
console.log(result); // solution your captcha.
} catch (e) {
console.log(e); // Identify possible errors.
}
}
// Starting your code.
main();
- Found any errors? Open a pull on the repository.