capmonster
NodeJS wrapper for capmonster.cloud
Features
- Easy-to-use
- Asynchronous
- Result same with original API
Currently only support NoCaptchaProxyless and ImageCaptcha for easy solving
Quick Examples
const capmonster = ;const captcha = 'API KEY'; // Get current balancecaptcha;// -> { errorId: 0, balance: 69.420 } // Create vanilla taskcaptcha ;// -> { errorId: 0, errorCode: '', errorDescription: '', taskId: 1467834466 }
Documentation
getBalance()
Get user balance.
const capmonster = ;const captcha = 'API KEY'; captcha;
Return
errorId: 0 balance: 74045902
createTask(task)
Create new vanilla task.
See docs to fill task
arguments
const capmonster = ;const captcha = 'API KEY'; captcha ;
Return
errorId: 0 errorCode: '' errorDescription: '' taskId: 1467834466
getResult(taskId)
Get task result.
taskId
: Task ID from create task method.
const capmonster = ;const captcha = 'API KEY'; captcha;
Return (solution object are different each captcha type)
errorId: 0 errorCode: '' errorDescription: null status: 'ready' solution: text: 'hwsrrc'
solveReCaptchaV2(websiteURL, websiteKey)
Create new ReCaptchaV2 task.
websiteURL
: Website URL where you see the captcha.
websiteKey
: Website ReCaptcha key.
<div class="g-recaptcha" data-sitekey="THIS"></div>
const capmonster = ;const captcha = 'API KEY'; captcha ;
Return
errorId: 0 errorCode: '' errorDescription: '' taskId: 918381052
solveImageCaptcha(base64)
Create new image captcha task.
base64
: base64 encoded of the captcha image.
const capmonster = ;const captcha = 'API KEY'; captcha;
Return
errorId: 0 errorCode: '' errorDescription: '' taskId: 407984145
decodeReCaptchaV2(websiteURL, websiteKey)
Create new ReCaptchaV2 task and wait until task solved.
websiteURL
: Website URL where you see the captcha.
websiteKey
: Website ReCaptcha key.
<div class="g-recaptcha" data-sitekey="THIS"></div>
const capmonster = ;const captcha = 'API KEY'; captcha ;
Return
errorId: 0 errorCode: null errorDescription: null solution: gRecaptchaResponse: '03AGdBq26nelcHXOB8mBN...' status: 'ready'
decodeImageCaptcha(base64)
Create new image captcha task and wait until solved.
base64
: base64 encoded of the captcha image.
const capmonster = ;const captcha = 'API KEY'; captcha;
Return
errorId: 0 errorCode: '' errorDescription: null status: 'ready' solution: text: 'Cr1nG3'
Contributing
Just open pull request if it just some minor changes.
Create a issue first if it some major changes of how this wrapper work.
License
Copyright © 2020 Haneul Seong hana@disroot.org
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the LICENSE file for more details.