Solve Text Captcha

Text Captcha is a type of captcha that is represented as text and doesn't contain images. Usually you have to answer a question to pass the verification

Start now

Normal captcha statistics

YouTube's thumbnail image for the video.

How to solve Text Captcha

  1. Find captcha question.

  2. Send question to 2Captcha API.
    https://2captcha.com/in.php

  3. Paste received code into the field. Then, submit the form.

PHP

// https://github.com/2captcha/2captcha-php

require(__DIR__ . '/../src/autoloader.php');

$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');

try {
    $result = $solver->text([
        'text' => 'If tomorrow is Saturday, what day is today?',
        'lang' => 'en',
    ]);
} catch (\Exception $e) {
    die($e->getMessage());
}

die('Captcha solved: ' . $result->code);

Java

// https://github.com/2captcha/2captcha-java

package examples;

import com.twocaptcha.TwoCaptcha;
import com.twocaptcha.captcha.Text;

public class TextExample {

    public static void main(String[] args) {
        TwoCaptcha solver = new TwoCaptcha("YOUR_API_KEY");

        Text captcha = new Text();
        captcha.setText("If tomorrow is Saturday, what day is today?");
        captcha.setLang("en");

        try {
            solver.solve(captcha);
            System.out.println("Captcha solved: " + captcha.getCode());
        } catch (Exception e) {
            System.out.println("Error occurred: " + e.getMessage());
        }
    }

}

C#

// https://github.com/2captcha/2captcha-csharp

using System;
using System.Linq;
using TwoCaptcha.Captcha;

namespace TwoCaptcha.Examples
{
    public class TextExample
    {
        public void Main()
        {
            TwoCaptcha solver = new TwoCaptcha("YOUR_API_KEY");

            Text captcha = new Text();
            captcha.SetText("If tomorrow is Saturday, what day is today?");
            captcha.SetLang("en");

            try
            {
                solver.Solve(captcha).Wait();
                Console.WriteLine("Captcha solved: " + captcha.Code);
            }
            catch (AggregateException e)
            {
                Console.WriteLine("Error occurred: " + e.InnerExceptions.First().Message);
            }
        }
    }
}

Python

# https://github.com/2captcha/2captcha-python

import sys
import os

sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))

from twocaptcha import TwoCaptcha

api_key = os.getenv('APIKEY_2CAPTCHA', 'YOUR_API_KEY')

solver = TwoCaptcha(api_key, defaultTimeout=40, pollingInterval=10)

try:
    result = solver.text('If tomorrow is Saturday, what day is today?',
                         lang='en')

except Exception as e:
    sys.exit(e)

else:
    sys.exit('solved: ' + str(result))

Go

// https://github.com/2captcha/2captcha-go

package main

import (
    "fmt"
    "log"
    "github.com/2captcha/2captcha-go"
)

func main() {
    client := api2captcha.NewClient("API_KEY")
    cap := api2captcha.Text{
        Text: "If tomorrow is Saturday, what day is today?",
        Lang: "en",
    }
    code, err := client.Solve(cap.ToRequest())
    if err != nil {
        log.Fatal(err);
    }
    fmt.Println("code "+code)
}

C++

// https://github.com/2captcha/2captcha-cpp

#include <cstdio>

#include "curl_http.hpp"
#include "api2captcha.hpp"

int main (int ac, char ** av)
{
if (ac < 2)
{
    printf ("Usage: ./text \"Your question\"\n");
    return 0;
}

api2captcha::curl_http_t http;
http.set_verbose (true);

api2captcha::client_t client;
client.set_http_client (&http);
client.set_api_key (API_KEY);

assert (ac > 1);

api2captcha::text_t cap (av[1]);

try
{
    client.solve (cap);
    printf ("code '%s'\n", cap.code ().c_str ());
}
catch (std::exception & e)
{
    fprintf (stderr, "Failed: %s\n", e.what ());
}

return 0;   
}

GithubFull documentation and code examplesRead more at 2Captcha API

Recognition price

The recognition cost is very low, less than $0.01 for one captcha. For convenience, the entire price is indicated for recognizing 1000 captchas, but billing in the system occurs separately for each captcha. Different types of captchas are recognized at different prices.

$0.76

Per 1000 normal captchas

Supported captchas

The process of solving a normal captcha is as follows: we take the captcha image from the page and send it to the 2Captcha service, where an employee solves it typing the indicated text, then the answer is returned to us, which must be entered in the appropriate field to solve the captcha

API demoHow to solve

The process of solving text captcha is as follows: we take the text question of the captcha from the page of its placement and transfer it to the 2Captcha service, where it is solved by the employee, after which the answer is returned to us, which must be entered in the appropriate field to solve the captcha

API demo

The solution process is as follows: we take the captcha image from the page of its placement and the instructions on which pictures to click on and transfer it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of a set of point coordinates, which we need to click for solving the captcha

API demoHow to solve

The process of solving Rotate Captcha is as follows: we take an image or several images of a captcha from the page of its placement and transfer it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of the value of the image rotation angle, we need to rotate the image on the angle to solve captcha

API demoHow to solve

The process of solving reCAPTCHA V2 is as follows: we take the captcha parameters from the page in the form of the data-sitekey parameter and the page URL and transfer it to the 2Captcha service, where the employee solves it, then the response is returned to us in the form of a token, which must be entered into the appropriate field for the solution captcha

API demoHow to solve

The process of solving reCAPTCHA V2 Callback does not differ from the similar process of solving reCAPTCHA V2: we take the captcha parameters from the page in the form of the data-sitekey parameter and the page URL and transfer it to the 2Captcha service, where the employee solves it, then the response is returned to us in as a token, which we should be entered into the appropriate field to solve the captcha. Sometimes you won't find a button submitting a form. A callback function can be used instead. This function is executed when the captcha is recognized. Usually the callback function is defined in the data-callback parameter or as the callback parameter of the grecaptcha.render method call

API demoHow to solve

The process of solving reCAPTCHA V2 Invisible is similar to the recognition of reCAPTCHA V2: we take the captcha parameters from the page in the form of the data-sitekey parameter and the page URL and transfer it to the 2Captcha service, where the employee solves it, after which the response is returned to us in the form of a token, which we need enter in the appropriate field to solve the captcha

API demoHow to solve

The process for solving reCAPTCHA V3 is as follows: we take the captcha parameters from the page in the form of the data-sitekey, action and the page URL and transfer it to the 2Captcha service, where it is solved by an employee with the appropriate “humanity” rating, after that the response is returned to us in the form of a token, which must be entered into the appropriate field to solve the captcha. In many ways, the new type of captcha is similar to reCAPTCHA V2, i.e. the basic principle remains the same - the user receives a token from the 2Captcha API, which is sent in a POST request to the site, and the site verifies the token through the 2Captcha API

API demoHow to solve

The process of solving ReCaptcha Enterprise is as follows: we determine the type of reCaptcha, it can be V2 or V3, after which we take the captcha image from the page of its placement in the form of the data-sitekey parameter and transfer it to the 2Captcha service, where it is solved by the employee, after which it is returned to us answer in the form of a token, which must be entered in the appropriate field to solve the captcha

How to solve

The process of solving KeyCaptcha is as follows: we take a set of necessary parameters from the page of its placement and pass it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of a set of other parameters, which must be passed to the appropriate fields to solve the captcha

API demoHow to solve

The process of solving GeeTest Captcha is as follows: we take a set of necessary parameters from the page of its placement and transfer it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of a set of already other parameters, which must be passed to the appropriate fields to solve the captcha

API demoHow to solve

The solution process is as follows: we take the captcha image from the page of its placement and transfer it to the 2Captcha service, where the employee solves it, after which the response is returned to us in the form of a token, which must be entered into the appropriate field to solve the captcha

API demoHow to solve

The process of solving FunCaptcha by Arkose Labs is as follows: we take a set of necessary parameters from the page of its placement and transfer it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of a set of already other parameters, which must be passed to the appropriate fields to solve the captcha

How to solve

The process of solving Capy Puzzle Captcha is as follows: we take a set of necessary parameters from the page of its placement and transfer it to the 2Captcha service, where the employee solves it, after which the answer is returned to us in the form of a set of already other parameters, which must be passed to the appropriate fields to solve the captcha

How to solve

The TikTok Captcha solution process is based on cookies, which must be used no later than three seconds after our employees solve the captcha. It is necessary to collect all cookies from the page where the captcha is placed, transfer it to the 2Captcha service, where the solution will occur, and apply the set of cookies received in response and then perform a captcha protected action on the page

How to solve