Skip to Content
AnySolver logo
AnySolver
Token

ReCaptchaV2EnterpriseToken

Solve a reCAPTCHA Enterprise V2 checkbox or invisible widget through your own proxy and receive the token. With the schema, an example and provider prices.

ReCaptchaV2EnterpriseToken solves a reCAPTCHA Enterprise V2 widget through your proxy and returns the token. reCAPTCHA Enterprise is the Google Cloud edition of reCAPTCHA. Its V2 widget looks like the standard checkbox, but the page loads enterprise.js and talks to the /recaptcha/enterprise/ endpoints, so a token from the standard task does not work. You find the sitekey as for the standard widget: see ReCaptchaV2Token.

For the proxyless version, see ReCaptchaV2EnterpriseTokenProxyLess.

Is the page using Enterprise?

Open DevTools, go to the Network tab and filter for recaptcha:

EditionRequests
Standardrecaptcha/api.js and /recaptcha/api2/anchor
Enterpriserecaptcha/enterprise.js and /recaptcha/enterprise/anchor

In the page JavaScript, grecaptcha.enterprise.render() or grecaptcha.enterprise.execute() also marks an Enterprise integration.

Use your proxy

task.proxy is required on this task type, and the provider solves from that address. The proxy must keep one IP for the whole solve: see Keep the same IP for the whole solve. Submit the form from the same address.

enterprisePayload

enterprisePayload holds extra parameters the page passes to grecaptcha.enterprise.render() next to the sitekey. The usual one is s:

grecaptcha.enterprise.render('some-div-id', {
    sitekey: '6Lc_aCMTAAAAABx7u2N0D1XnVbI_v6ZdbM6rYf16',
    s: '2JvUXHNTnZl1Jb6WEvbDyBMzrMTR7oQ78QRhBcG07rk9bpaAaE0LRq1ZeP5NYa0N...ugQA',
});

Send { "s": "..." } as enterprisePayload. This render() example comes from the CapMonster Cloud client documentation.

The s value is single-use. Read it from the page right before you create the task, because a stale value makes the token fail on the target site.

Other parameters

Send pageAction when the page sets an action, in the widget's data-action attribute or in grecaptcha.enterprise.execute(). It must match the page exactly. Set isInvisible for invisible widgets, as in ReCaptchaV2Token.

Submit the token as described in ReCaptchaV2Token.

Check Provider stats for live success rates and solve times before you pick a provider.

Supported Providers

ProviderPrice per 1,000Routing
CapSolver
$1.00
2Captcha
$1.00–$2.99
Anti-Captcha
$5.00
CapMonster
$1.00
EZCaptcha
$1.20
SolveCaptcha
$0.55
Iso
$1.00
SCTG
$0.08
VoidCaptcha
$1.00

Request Schema

FieldTypeRequiredDescription
clientKey*
stringYes

Your API key. Create one in a workspace of the AnySolver dashboard.

Example: your-api-key-from-dashboard

task*
objectYes

The task body. Required fields depend on the task type. See Tasks for per-task schemas.

View task properties
settings
objectNo

Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes.

View settings reference

Task Object Properties

The task field accepts an object with the following properties:

FieldTypeRequiredDescription
type*
Yes
websiteURL*
URLYes

Full URL of the page where the CAPTCHA is displayed.

Example: https://www.google.com/recaptcha/api2/demo

websiteKey*
stringYes

The sitekey found in the CAPTCHA HTML element on the target page.

Example: 6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-

pageTitle*
stringYes

Title of the target page (document.title). Send it on every task, although only a few providers read it, as an additional hint.

Example: ReCAPTCHA demo

proxy*
string | objectYes

Proxy the provider solves through, as a string or an object. See Proxy configuration.

View proxy configuration

Example: http://user:pass@1.2.3.4:8080

isInvisible
booleanNo

Set to true when the widget is invisible: the container has data-size="invisible" (or the anchor iframe URL contains size=invisible) and the challenge starts from a button click or a grecaptcha.execute() call instead of a checkbox.

Example: false

userAgent
stringNo

Browser User-Agent string. Must match the browser used on the target page. Not all providers properly support this parameter. Verify the compatibility with the provider you are using.

Example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36

cookies
stringNo

Cookies from the target page session, if required for solving.

Example: foo=bar; baz=1

pageAction
stringNo

Action the page passes to the widget (data-action attribute or the action in grecaptcha.enterprise.execute()), such as verify or submit. Mainly relevant on enterprise flows; it must match the page exactly.

Example: verify

apiDomain
stringNo

Domain the page loads reCAPTCHA from: google.com (the default) or recaptcha.net. Set recaptcha.net when the api.js or enterprise.js script URL uses it.

Example: www.recaptcha.net

isSession
booleanNo

Session mode: also return the recaptcha-ca-t session cookie in the solution cookies, for sites that read it with the token. Only providers that expose session cookies honor it; the rest ignore it.

Example: false

enterprisePayload
Record<string, unknown>No

Additional parameters the page passes to grecaptcha.enterprise.render() next to the sitekey, such as s ({ "s": "..." }). The s value is a one-time token: read it fresh from the page for every solve.

Example: {"s":"2JvUXHNTnZl1Jb6WEvbDyBMzrMTR7oQ78QRhBcG07rk9bpaAaE0LRq1ZeP5NYa0N...ugQA"}

{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "ReCaptchaV2EnterpriseToken",
        "websiteURL": "https://www.google.com/recaptcha/api2/demo",
        "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
        "pageTitle": "ReCAPTCHA demo",
        "proxy": "http://user:pass@1.2.3.4:8080"
    }
}

Optional fields are not guaranteed across providers

Required fields are guaranteed across every provider that supports this task. Optional fields may be honored by some providers and silently ignored by others. AnySolver does not document per-provider parameter support, so before relying on an optional field, check that provider's own docs for the task you are using.

Response Schema

FieldTypeRequiredDescription
status*
Yes

Task status: "processing", "ready", or "failed".

Example: ready

errorId*
Yes

0 on success; 1 or 2 on an error. Branch on errorCode: Error IDs explains the two error groups.

Example: 0

taskId
stringNo

Unique identifier returned when the task was created.

Example: 01KFNDF328KAN2AJ3BNHCQYE88

errorCode
No

Machine-readable error code.

Example: CAPTCHA_UNSOLVABLE

errorDescription
stringNo

Human-readable error message with resolution hints.

Example: The captcha could not be solved.

cost
numberNo

Actual cost charged for this task in USD.

Example: 0.002

taskType
No

The type of CAPTCHA task to solve.

Example: ReCaptchaV2TokenProxyLess

provider
No

Provider that handled this task. While processing, the provider currently solving it.

Example: Multibot

solution
objectNo

Solution Object Properties

The solution field contains an object with the following properties:

FieldTypeRequiredDescription
token*
stringYes

The solved CAPTCHA token to submit with your form.

Example: 03ADUVZw...UWxTAe6ncIa

raw*
Record<string, unknown>Yes

Raw provider response data for advanced use cases.

userAgent
stringNo

User-Agent string used during solving.

cookies
Record<string, unknown>No

Session cookies obtained during solving.