2.1.9 • Published 11 months ago
capsolver-npm v2.1.9
capsolver-npm
manage to solve captcha challenges with node
- ❗ API key it's required Get here
Install
npm i capsolver-npm
Usage
- Initialize and use
SolverandSolverError - TS example:
import { Solver, SolverError } from 'capsolver-npm';
const solver = new Solver({
apiKey: 'CAP-XXXXXX ...',
});
const main = async (): Promise<void> => {
await solver
.turnstileproxyless({
websiteURL: 'https://peet.ws/turnstile-test/non-interactive.html',
websiteKey: '...',
metadata: { action: 'login', cdata: 'xxxx-xxxx-xxxx-xxxx-example-cdata' },
})
.then((s: any) => {
console.log(s);
})
.catch((e: SolverError) => {
console.error(`${e.errorTaskId} - ${e.errorCode} - ${e.errorDescription}`);
});
};
main();- Debug custom implementation parameters to send.
- When provide
proxyis required, match the following pattern:ip:port:user:pass
📁 Updated examples
Figure out here.
🔨 Supported Methods
- Consider
nullas an optional parameter. - Refer to the official documentation for more details.
Solving AwsWaf with Classification ... | Solving AwsWaf ...
await solver.awswafclassification({
websiteURL: null,
images,
question,
});
await solver.awswaf({
proxy,
websiteURL,
awsKey: null,
awsIv: null,
awsContext: null,
awsChallengeJS: null,
});
await solver.awswafproxyless({
websiteURL,
awsKey: null,
awsIv: null,
awsContext: null,
awsChallengeJS: null,
});await solver.datadome({
proxy,
websiteURL,
captchaUrl,
userAgent,
});await solver.friendlycaptchaproxyless({
websiteURL,
websiteKey,
});await solver.geetest({
proxy,
websiteURL,
gt,
challenge,
captchaId: null,
geetestApiServerSubdomain: null,
});
await solver.geetestproxyless({
websiteURL,
gt,
challenge,
captchaId: null,
geetestApiServerSubdomain: null,
});await solver.image2text({
body,
module: null,
score: null,
});await solver.imperva({
websiteURL,
reeseScriptURL,
});await solver.mtcaptcha({
proxy,
websiteURL,
websiteKey,
});Solving ReCaptchaV2 with Classification ... | Solving ReCaptchaV2 / Enterprise ...
await solver.recaptchav2classification({
websiteURL: null,
question,
image,
});
await solver.recaptchav2({
proxy,
websiteURL,
websiteKey,
userAgent: null,
isInvisible: null,
pageAction: null,
enterprisePayload: null,
apiDomain: null,
cookies: null,
});
await solver.recaptchav2proxyless({
websiteURL,
websiteKey,
userAgent: null,
isInvisible: null,
pageAction: null,
enterprisePayload: null,
apiDomain: null,
cookies: null,
});
await solver.recaptchav2enterprise({
proxy,
websiteURL,
websiteKey,
userAgent: null,
enterprisePayload: null,
apiDomain: null,
cookies: null,
});
await solver.recaptchav2enterpriseproxyless({
websiteURL,
websiteKey,
userAgent: null,
enterprisePayload: null,
apiDomain: null,
cookies: null,
});Solving ReCaptchaV3 / Enterprise ...
await solver.recaptchav3({
proxy,
websiteURL,
websiteKey,
pageAction,
enterprisePayload: null,
apiDomain: null,
cookies: null,
});
await solver.recaptchav3proxyless({
websiteURL,
websiteKey,
pageAction,
enterprisePayload: null,
apiDomain: null,
cookies: null,
});
await solver.recaptchav3enterprise({
proxy,
websiteURL,
websiteKey,
pageAction,
enterprisePayload: null,
apiDomain: null,
cookies: null,
});
await solver.recaptchav3enterpriseproxyless({
websiteURL,
websiteKey,
pageAction,
enterprisePayload: null,
apiDomain: null,
cookies: null,
});await solver.turnstileproxyless({
websiteURL,
websiteKey,
metadata: null,
});await solver.visionengine({
websiteURL: null,
module,
image,
imageBackground,
question: null,
});Big Disclaimer
By using this package, you acknowledge and agree that:
- You are solely responsible for how you use the API and the author does not assume any liability for misuse, abuse, or violations of Capsolver’s terms of service.
- This package provides a service connector for the Capsolver API and is not affiliated.
2.1.9
11 months ago
2.1.6
11 months ago
2.1.8
11 months ago
2.1.7
11 months ago
2.1.2
11 months ago
2.1.1
11 months ago
2.1.4
11 months ago
2.1.3
11 months ago
2.1.5
11 months ago
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago