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:
| Edition | Requests |
|---|---|
| Standard | recaptcha/api.js and /recaptcha/api2/anchor |
| Enterprise | recaptcha/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
| Provider | Price per 1,000 | Routing |
|---|---|---|
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
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in a workspace of the AnySolver dashboard. Example: |
task* | object | Yes | The task body. Required fields depend on the task type. See Tasks for per-task schemas. View task properties |
settings | object | No | 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:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
websiteURL* | URL | Yes | Full URL of the page where the CAPTCHA is displayed. Example: |
websiteKey* | string | Yes | The sitekey found in the CAPTCHA HTML element on the target page. Example: |
pageTitle* | string | Yes | Title of the target page ( Example: |
proxy* | string | object | Yes | Proxy the provider solves through, as a string or an object. See Proxy configuration. View proxy configurationExample: |
isInvisible | boolean | No | 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: |
userAgent | string | No | 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: |
cookies | string | No | Cookies from the target page session, if required for solving. Example: |
pageAction | string | No | 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: |
apiDomain | string | No | 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: |
isSession | boolean | No | 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: |
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: |
{
"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
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes |
Example: | |
taskId | string | No | Unique identifier returned when the task was created. Example: |
errorCode | No | Machine-readable error code. Example: | |
errorDescription | string | No | Human-readable error message with resolution hints. Example: |
cost | number | No | Actual cost charged for this task in USD. Example: |
taskType | No | The type of CAPTCHA task to solve. Example: | |
provider | No | Provider that handled this task. While processing, the provider currently solving it. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
token* | string | Yes | The solved CAPTCHA token to submit with your form. Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |
userAgent | string | No | User-Agent string used during solving. |
cookies | Record<string, unknown> | No | Session cookies obtained during solving. |