Find file Copy path
66758cf Aug 10, 2017
Vlad Pasechnik wiki
1 contributor

Users who have contributed to this file

130 lines (111 sloc) 5.35 KB

2Captcha ReCaptcha v2 without a browser



The link to the service 2Captcha ReCaptcha v2 without a browser

The description of the service - antikapchu service manual image recognition, there are those who need real-time to recognize text from scanned documents, forms, and captures those who want to earn on entering text from the screen.

The system works the Russian-speaking and English-speaking staff.

Tuning anticaptcha not only supports API standard on par with pixodrom services, antigate, anti-captcha and others, but also provides advanced functional replenishing at each round of combat automation. API RuCaptcha supports the decision ReCaptcha v2 (where you need to click on the pictures), ClickCaptcha (where you need to click on certain points) and Rotatecaptcha (FunCaptcha other CAPTCHA, you need to twist).


1000 for $2,99

Description recognition

This method allows you to pass the reCAPTCHA without emulation browser and send us pictures, as this method gives 100% passing captcha.              Where any information to take and where to insert? See page HTML-code, where you met the captcha:

  1. Locate the parameter data-sitekey = This site key, it is constant and unique for each site (if the site administrator does not change it manually)

2.Locate form for text <textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid #c1c1c1; margin: 10px 25px; padding: 0px; resize: none; "></textarea> Here you will need to insert a reply from us.


The preferred way to install this extension via composer.

Or you can run

composer require --prefer-dist jumper423/decaptcha "*"

or add

"jumper423/decaptcha": "*"

in file composer.json.


Initialization Specify the key mandatory and optional parameters. Try the best to fill this promotes more rapid recognition of captcha.

use jumper423\decaptcha\services\TwoCaptchaReCaptcha;

$captcha = new TwoCaptchaReCaptcha([
    TwoCaptchaReCaptcha::ACTION_FIELD_KEY => '94f39af4bb295c40546fba5c932e0d32',

Recognition In the first parameter, pass the link or path to the picture file in the second parameters of the recognition if necessary, override those which were transferred during the initialization.

if ($captcha->recognize([
       TwoCaptchaReCaptcha::ACTION_FIELD_GOOGLEKEY => '54as5c6a5s4ca4s56a4sc56a',
       TwoCaptchaReCaptcha::ACTION_FIELD_PAGEURL => '',
    ])) {
    $code = $captcha->getCode();
} else {
    $error = $captcha->getError();

Not correctly recognized If You can understand that the answer which did not come true. Be sure to add below written code. It will save You money.



$balance = $captcha->getBalance();

Intercept errors If you wish, You can catch the error, but you need to call setCauseAnError


try {
       TwoCaptchaReCaptcha::ACTION_FIELD_GOOGLEKEY => '54as5c6a5s4ca4s56a4sc56a',
       TwoCaptchaReCaptcha::ACTION_FIELD_PAGEURL => '',
    $code = $captcha->getCode();
} catch (\jumper423\decaptcha\core\DeCaptchaErrors $e) {

A description of the fields

Name Code Type Req. By def. Possible values Description
Language ACTION_FIELD_LANGUAGE INTEGER - 0 0 - parameter not used; 1 - the captcha only Cyrillic letters; 2 - displayed in a CAPTCHA latin characters only The symbols of the language posted on the captcha
Cross-domain ACTION_FIELD_HEADER_ACAO INTEGER - 0 0 - the default value; 1 - in.php will transfer Access-Control-Allow-Origin: * parameter in response header Need for cross-domain AJAX requests in browser-based applications.
Manual ACTION_FIELD_INSTRUCTIONS STRING - Text captcha or manual to pass the captcha.
Google key ACTION_FIELD_GOOGLEKEY STRING + Key-the identifier of the recaptcha on the landing page.
The proxy address ACTION_FIELD_RECAPTCHA STRING - IP address of the proxy ipv4/ipv6.
The proxy type ACTION_FIELD_PROXYTYPE STRING - The proxy type (http, socks4, ...)
Link ACTION_FIELD_PAGEURL STRING + The address of the page where the captcha is solved.