Ruby captcha solver on «SolveCaptcha»

Ruby captcha solver

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

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

How to automate solve and bypass any captcha with Ruby

  • Customer uploading a captcha to a service You send a captcha to the Ruby 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 Ruby for integration.

Ruby captcha solver
Ruby captcha solver on GitHub

Installation

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

Gem

Add this line to your Gemfile:

gem 'solvecaptcha-ruby', git: 'https://github.com/solvercaptcha/solvecaptcha-ruby.git'

Then run:

bundle install

Or install it manually with:

gem install specific_install
gem specific_install https://github.com/solvercaptcha/solvecaptcha-ruby.git

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

To use the ApiSolveCaptcha gem, you'll need to import the module and create a Client instance. Here's an example:

require_relative '../lib/api_solvecaptcha'
client =  ApiSolveCaptcha.new("YOUR_API_KEY")

There are a few options that can be configured using the Client instance:

client.api_key = "YOUR_API_KEY"
Client instance options
Option Default value Description
defaultTimeout 120 Polling timeout in seconds for all captcha types except reCAPTCHA. Defines how long the SDK tries to get the answer from res.php API endpoint
pollingInterval 10 Interval in seconds between requests to res.php API endpoint, setting values less than 5 seconds is not recommended
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.

result = client.normal({ image: 'path/to/captcha.jpg'})
      # OR
result = client.normal({
      image: 'https://site-with-captcha.com/path/to/captcha.jpg'
})
  • «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