Cookie usage notification

This site uses cookies. Cookies remember you, so we can provide you with personalized services. Read our privacy policy.

Logo of «GitHub»
  • We support API for «PHP» language
  • We support API for «Python» language
  • We support API for «Go» language
  • We support API for «Ruby» language
  • We support API for «C#» language
  • We support API for «Java» language
  • We support API for «JavaScript» language

reCAPTCHA V2 Enterprise

reCAPTCHA V2 Enterprise widget

Token-based method for automated solving of reCAPTCHA V2 Enterprise.

The token recived then can be sent to the target website inside g-recaptcha-response form field or passed to a callback function. The method is the same as reCAPTCHA V2, but reCAPTCHA Enterprise API is used to load the captchas.

Task types

  • RecaptchaV2EnterpriseTaskProxyless - suitable for most cases. We use our own pool of proxies to solve the captchas
  • RecaptchaV2EnterpriseTask - used for cases when IP matching is requied on Google service like Google Search, YouTube, etc. Bad proxies will drastically decrease the success rate and increase the solving time.

RecaptchaV2EnterpriseTaskProxyless task type specification

Property Type Required Description
type String Yes Task type:
websiteURL String Yes The full URL of target web page where the captcha is loaded. We do not open the page, not a problem if it is available only for authenticated users
websiteKey String Yes reCAPTCHA sitekey. Can be found inside data-sitekey property of the reCAPTCHA div element or inside k parameter of the requests to reCAPTHCHA API. You can also use the script to find the value
enterprisePayload Object No Additional parameters passed to grecaptcha.enterprise.render call. For example, there can be an object containing s value
isInvisible Boolean No Pass true for Invisible version of reCAPTCHA - a case when you don't see the checkbox, but the challenge appears. Mostly used with a callback function
userAgent String No User-Agent of your browser will be used to load the captcha. Use only modern browser's User-Agents
cookies String No Your cookies will be set in a browser of our worker. Suitable for captcha on Google services. The format is: key1=val1; key2=val2
apiDomain String No Domain used to load the captcha: or Default value:

RecaptchaV2EnterpriseTask task type specification

RecaptchaV2EnterpriseTask extends RecaptchaV2EnterpriseTaskProxyless adding a set of proxy-related parameters listed below

Property Type Required Description
proxyType String Yes Proxy type:
proxyAddress String Yes Proxy IP address or hostname
proxyPort Integer Yes Proxy port
proxyLogin String No Login for basic authentication on the proxy
proxyPassword String No Password for basic authentication on the proxy

Request examples

Method: createTask
API endpoint:


    "task": {


    "task": {
        "userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36",
        "cookies":"foo=bar; baz=1",

Response example

    "errorId": 0,
    "status": "ready",
    "solution": {
        "gRecaptchaResponse": "03ADUVZw...UWxTAe6ncIa",
        "token": "03ADUVZw...UWxTAe6ncIa"
    "cost": "0.00299",
    "ip": "",
    "createTime": 1692863536,
    "endTime": 1692863556

Code examples


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

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

try {
    $result = $solver->recaptcha([
        'sitekey' => '6LfD3PIbAAAAAJs_eEHvoOl75_83eXSqpPSRFJ_u',
        'url'     => '',
        'enterprise' => 1,
} catch (\Exception $e) {

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

import sys
import os


from twocaptcha import TwoCaptcha

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

solver = TwoCaptcha(api_key)

    result = solver.recaptcha(

except Exception as e:

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

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

namespace TwoCaptcha.Examples
    public class reCAPTCHAV2EnterpriseExample
        public void Main()
            TwoCaptcha solver = new TwoCaptcha("YOUR_API_KEY");
            ReCaptcha captcha = new ReCaptcha();
                Console.WriteLine("Captcha solved: " + captcha.Code);
            catch (AggregateException e)
                Console.WriteLine("Error occurred: " + e.InnerExceptions.First().Message);

package examples;

import com.twocaptcha.TwoCaptcha;
import com.twocaptcha.captcha.reCAPTCHA;

public class reCAPTCHAV2EnterpriseExample {
    public static void main(String[] args) {
        TwoCaptcha solver = new TwoCaptcha("YOUR_API_KEY");
        ReCaptcha captcha = new ReCaptcha();
        try {
            System.out.println("Captcha solved: " + captcha.getCode());
        } catch (Exception e) {
            System.out.println("Error occurred: " + e.getMessage());


package main

import (

func main() {
    client := api2captcha.NewClient("API_KEY")
    cap := api2captcha.ReCaptcha{
        SiteKey: "6LfD3PIbAAAAAJs_eEHvoOl75_83eXSqpPSRFJ_u",
        Url: "",
        Enterprise: true,
    code, err := client.Solve(cap.ToRequest())
    if err != nil {
    fmt.Println("code "+code)

require 'api_2captcha'

client ="YOUR_API_KEY")

result = client.recaptcha_v2({
  googlekey: '6LfD3PIbAAAAAJs_eEHvoOl75_83eXSqpPSRFJ_u',
  pageurl: '',
  enterprise: 1