The object contains data for Google reCAPTCHA Enterprise solving task. This task will be executed by our service using our own proxy servers.
Object structure
Parameter | Type | Required | Value | |
type | String | Yes | RecaptchaV2EnterpriseTaskProxyless | |
websiteURL | String | Yes | Address of a webpage with Google ReCaptcha Enterprise | |
websiteKey | String | Yes | Recaptcha website key. | |
enterprisePayload | String | No | Some implementations of the reCAPTCHA Enterprise widget may contain additional parameters that are passed to the “grecaptcha.enterprise.render” method along with the sitekey. For example:
| |
apiDomain | String | No | Domain address from which to load reCAPTCHA Enterprise. For example: Don't use a parameter if you don't know why it's needed. |
Request example
Address https://api.capmonster.cloud/createTask
{ "clientKey":"dce6bcbb1a728ea8d871de6d169a2057", "task": { "type":"RecaptchaV2EnterpriseTaskProxyless", "websiteURL":"https://mydomain.com/page-with-recaptcha-enterprise", "websiteKey":"6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd", "enterprisePayload": { "s": "SOME_ADDITIONAL_TOKEN" } } } |
Response example
{ "errorId":0, "taskId":407533072 } |
Use the method getTaskResult to request answer for ReCaptcha2. You will get response within 10 - 80 secs period depending on service workload.
Property | Type | Description |
gRecaptchaResponse | String | Hash which should be inserted into Recaptcha2 submit form in <textarea id="g-recaptcha-response" ..></textarea> . It has a length of 500 to 2190 bytes. |
Example:
{ "errorId":0, "status":"ready", "solution": { "gRecaptchaResponse":"3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3" } } |