node-capmonster

Capmonster.cloud module for NodeJS

Usage no npm install needed!

<script type="module">
  import nodeCapmonster from 'https://cdn.skypack.dev/node-capmonster';
</script>

README

Capmonster.cloud for NodeJS

NodeJS Package Tests npm bundle size npm NPM npm npm type definitions GitHub last commit GitHub Repo stars

NodeJS package for Capmonster.cloud

If you have any problem with usage, read the documentation or create an issue

At least 2x cheaper, up to 30x faster than manual recognition services.

Installation

npm i node-capmonster

Supported captcha types

  • Image to text
  • Recaptcha v2
  • Recaptcha v3
  • Fun Captcha
  • HCaptcha
  • GeeTest

Usage examples

ImageToText

const { ImageToTextTask } = require("node-capmonster")

const capmonster = new ImageToTextTask("API_KEY")
capmonster.createTask("base64 encoded image as string")
    .then((taskId) => {
        captcha.joinTaskResult(taskId)
            .then((response) => console.log(response))
    })

Recaptcha v2

const { RecaptchaV2Task } = require("node-capmonster")

const capmonster = new RecaptchaV2Task("API_KEY")
capmonster.createTask("website_url", "website_key")
    .then((taskId) => {
        capmonster.joinTaskResult(taskId)
            .then((response) => console.log(response))
    })

For other examples and api documentation please visit wiki