solve_recaptcha_v2
Solve reCAPTCHA v2 challenges from a sitekey and page URL to return a gRecaptchaResponse token, or a taskId to poll while a person solves it.
Instructions
Solve a reCAPTCHA v2 challenge from its sitekey and pageUrl and return the gRecaptchaResponse token. Use only when you will submit the token yourself from the same session and address; to read the page behind the challenge use solve_and_continue. Returns the token, or a taskId to follow with captcha_status while a person solves it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageUrl | Yes | The page the widget is on. | |
| sitekey | Yes | The widget's site key, from the page's data-sitekey attribute. | |
| invisible | No | The invisible variant, with no checkbox. Default false. |