Solve an hCaptcha
solve_hcaptchaSolves hCaptcha challenges to return a valid token. Specify sitekey and URL; if solving exceeds the wait time, returns an ID to retrieve the result later.
Instructions
Solve an hCaptcha and return the token. Waits up to wait_seconds; if the solve is still running then, returns its id and status: call get_solve with the id rather than solving again. Only successful solves are charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the page the captcha is on. | |
| type | No | hcaptcha (default) or hcaptcha_enterprise. | |
| proxy | No | Proxy to solve through, as a URL: scheme://user:pass@host:port (http, https, socks5, socks5h or socks4). | |
| rqdata | No | Enterprise only: the rqdata the site passes to its widget, if it passes one. | |
| sitekey | Yes | The hCaptcha sitekey on the page. | |
| user_agent | No | The user agent of the browser that loaded the page, as is. Leave out if you do not have it. | |
| wait_seconds | No | Seconds to wait for the result, 0-50. Default 45. 0 returns right after submitting. |