Skip to main content

Util::ReCaptcha2 - captcha recognition

Util::ReCaptcha2 parser overview

This parser is used only as a connectable component in other parsers, where it may be necessary to solve Google ReCaptcha v2, for example: SE::GoogleSE::Google, Rank::AhrefsRank::Ahrefs, as well as custom JavaScript parsers.

The principle of operation of this parser is to send captcha data (usually it is sitekey and the URL of the page where the captcha was received) to the recognition service and receive a token in response, consisting of numbers and letters. The correctness of solving depends only on the recognition service, usually the services almost always solve captchas correctly.

The process of connecting and configuring this parser is described in detail in the article Captcha Configuration

Util::ReCaptcha2 use cases

ReCaptcha in JS parsers

Example of a JS parser for working with captchas


  • Supports working with such services: AntiCaptcha, RuCaptcha, 2captcha, XEvil, CapMonster,, CapSolver,
  • Ability to configure response waiting time and status check delay

Usage options

  • Recognition of captchas in built-in parsers, where it is optional or mandatory to solve captchas to obtain results
  • Recognition of captchas in custom JS parsers


The parser accepts two types of requests:

  • sitekey url
  • sitekey url proxy user-agent

Parameters are separated by a space and mean:

  • sitekey - this is the sitekey of the captcha
  • url - the page where the captcha is located
  • proxy - the proxy through which the captcha was received. The parameter must be in the format login:pass@ip:port@type for proxies with authorization or ip:port@type for proxies without authorization
    • type can be http, https, socks4, socks5
  • user-agent - the user agent with which the captcha was received


As a result, the captcha token will be displayed:


Possible results

  • $resp - captcha response
  • $error - if an error occurred, its description

Example of solving configuration through Xevil

In Xevil, it is recommended to choose the API type Antigate (Anti-Captcha). In the settings of Util::ReCaptcha2Util::ReCaptcha2 in Provider url you need to specify ip:port Xevil:

where to get Provider url in Xevil for Util::ReCaptcha2 parser

and select Provider - Xevil:

Provider url configuration for Util::ReCaptcha2 parser

Possible settings

The Provider parameter is used to select the service.

For online recognition services (AntiCaptcha, RuCaptcha, 2captcha,, CapSolver,, the Client key parameter must be set.

ParameterDefault valueDescription
Client key-Client key for online recognition services
Provider url-Provider URL, allows you to override the domain. You can specify several separated by commas, the parser will use each of them in random order. Can be empty, the parser automatically uses the required one depending on the selected recognition service
ProviderAntiCaptchaRecognition service
Wait between get status5Delay between getting status
Max wait time300Maximum recognition waiting time
Threshold % for ( threshold (used only in