Solve hCaptcha
capskip_solve_hcaptchaSolves hCaptcha checkbox, invisible, and Enterprise widgets from a sitekey and page URL, returning a short-lived token to place in the form and submit.
Instructions
Solve an hCaptcha widget — or a js.hcaptcha.com script on the page — and get its token. Checkbox, invisible and hCaptcha Enterprise widgets all use this tool. Requires sitekey and url. Put the returned token in the form's hidden h-captcha-response field and in g-recaptcha-response if the form has one, or call the widget's data-callback with it, then submit with the returned User-Agent. Tokens are single use and expire about two minutes after they are issued, so submit promptly. Do not use capskip_solve_recaptcha for hCaptcha: both carry a data-sitekey, but they are different widgets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the page the captcha appears on, including scheme. | |
| data | No | hCaptcha Enterprise only: the rqdata value the page passes to the widget through hcaptcha.setData() before it runs. It is issued for one challenge and expires quickly, so read a fresh one for every solve. Leave it out when the page sets none. | |
| proxy | No | Solve from this network. hCaptcha scores the address a token comes from as well as the browser, so many solves from one address are what its rate limits catch. Pass the proxy the form submission will go through. | |
| sitekey | Yes | The sitekey of the hCaptcha widget, a UUID such as 'a5f74b19-9e45-40e0-b45d-47ff91b7a6c2'. Read it from data-sitekey on the widget container (<div class="h-captcha" data-sitekey="…">), from the sitekey option of hcaptcha.render(), or from the sitekey= parameter in the address of the hCaptcha iframe. | |
| timeout | No | Seconds to wait before giving up. Maximum 600. | |
| invisible | No | true for an invisible widget, one rendered with data-size="invisible". | |
| userAgent | No | The User-Agent the form will be submitted with. CapSkip uses it only when it matches the browser it solves with, and always reports the one the token was actually earned with. Usually leave it out. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| token | Yes | ||
| respKey | Yes | ||
| captchaId | Yes | ||
| userAgent | No | ||
| solveSeconds | Yes |