JavaScript captcha solver on «SolveCaptcha»

JavaScript captcha solver

Solve and bypass Google reCAPTCHA, Image CAPTCHA, Arkose FunCaptcha, Cloudflare Turnstile, Cloudflare Challenge and any captcha with JavaScript captcha solver.

  • No risk. Pay only for solved captchas
  • Fastest human-based JavaScript captcha solving service
Start solve

How to automate solve and bypass any captcha with JavaScript

  • Customer uploading a captcha to a service You send a captcha to the JavaScript captcha solver.
  • Service generating and returning a captcha ID The server stores your captcha and returns the ID of your request.
  • Worker solving the captcha task The service completes the captcha solution and sends the answer back to the server.
  • Customer requesting the captcha solution using the ID You send a request to the server using the ID to retrieve the answer.
GitHub logo

Get started fast with open-source repository — available in JavaScript for integration.

JavaScript captcha solver
JavaScript captcha solver on GitHub

Installation

The script package can be installed using the package installer or manually

Node Package Manager

You can install this package using NPM:

npm install solvecaptcha-javascript

To install directly from GitHub:

npm install github:solvercaptcha/solvecaptcha-javascript

We invite you to explore our GitHub repository where you can find libraries and SDK for easy integration with our API.

Configuration

Description of all the necessary parameters to configure the installed package

You can create a SolveCaptcha instance as follows:

const SolveCaptcha = require("solvecaptcha-javascript")
const solver = new SolveCaptcha.Solver("<Your solvecaptcha api key>")

Additionally, there are several options available for configuration:

const apiKey = 'YOUR_API_KEY'
const pollingInterval = 10
const solver = new SolveCaptcha.Solver(apiKey, pollingInterval)
SolveCaptcha instance options
Option Default value Description
apiKey - Your personal API key
pollingInterval 5000 The delay in milliseconds between each request to the res.php API endpoint. It's not recommended to set this value below 5000 milliseconds (5 seconds).
IMPORTANT: once callback is defined for SolveCaptcha instance, all methods return only the captcha ID and DO NOT poll the API to get the result. The result will be sent to the callback URL. To get the answer manually use getResult method.

Solve captcha

When you submit any image-based captcha use can provide additional options to help solvecaptcha workers to solve it properly

Captcha options
Option Default value Description
numeric 0 Defines if captcha contains numeric or other symbols. See more info in the API docs
minLength 0 minimal answer length
maxLength 0 maximum answer length
phrase 0 defines if the answer contains multiple words or not
caseSensitive 0 defines if the answer is case sensitive
calc 0 defines captcha requires calculation
hintImg - an image with hint shown to workers with the captcha
hintText - hint or task text shown to workers with the captcha

To bypass a normal captcha (distorted text on image) use the following method. This method also can be used to recognize any text on the image.

const imageBase64 = fs.readFileSync("./examples/media/imageCaptcha_6e584.png", "base64")
solver.imageCaptcha({
      body: imageBase64,
      numeric: 4,
      min_len: 5,
      max_len: 5
})
.then((res) => {
      console.log(res);
})
.catch((err) => {
      console.log(err);
})
  • «SolveCaptcha» has a good rating Best captcha solving service

    Service is ranked among the best captcha solving service, according to independent analytics by CaptchaTheCat website.

  • «SolveCaptcha» is a fast service Fast captcha solver

    Service is incredibly fast captcha solver, thanks to its integration of machine learning (ML) technology.

  • «SolveCaptcha» is a cheapest service Cheapest captcha solver

    Service is cheapest due to the use of machine learning (ML) technology, which automates CAPTCHA solving at scale, reducing the need for manual labor and allowing us to offer lower prices without sacrificing quality.

Use cases

Bypassing captcha enables to automate captcha solving interactions and is used to optimize tasks such as automated testing, web scraping, accessibility, and improving security.

  • Accesability with «SolveCaptcha» Accesability
  • Cybersecurity with «SolveCaptcha» Cybersecurity
  • Automated testing with «SolveCaptcha» Automated testing
  • Scarping with «SolveCaptcha» Scarping
API Code examples on «SolveCaptcha»

Captcha solver API

The API documentation contains examples of requests and responses. For the convenience of using the service, we have published libraries on GitHub for programming languages: Python, Java, C#, C++, Javascript, Ruby, PHP, and Go. We have also developed code examples for automatically solving reCAPTCHAs using tools like Selenium and Puppeteer.

Captcha solver API