Skip to content

Commit d5b0559

Browse files
Add hCaptcha docs
1 parent 3444cf6 commit d5b0559

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Need help integrating with your Go project? [Open an issue](https://github.com/s
6363
- [reCAPTCHA v2](#recaptcha-v2)
6464
- [reCAPTCHA v3](#recaptcha-v3)
6565
- [reCAPTCHA Enterprise](#recaptcha-enterprise)
66+
- [hCaptcha](#hcaptcha)
6667
- [FunCaptcha](#funcaptcha)
6768
- [GeeTest](#geetest)
6869
- [GeeTest V4](#geetest-v4)
@@ -281,6 +282,21 @@ req.SetProxy("HTTPS", "login:password@IP_address:PORT")
281282
code, err := client.Solve(req)
282283
```
283284

285+
### hCaptcha
286+
287+
<sup>[API method description.](https://solvecaptcha.com/captcha-solver-api#solving_hcaptcha)</sup>
288+
289+
Use this method to solve hCaptcha challenges and obtain a token to bypass the protection.
290+
291+
```go
292+
captcha := apisolvecaptcha.HCaptcha{
293+
SiteKey: "10000000-ffff-ffff-ffff-000000000001",
294+
Url: "https://accounts.hcaptcha.com/demo",
295+
}
296+
req := captcha.ToRequest()
297+
req.SetProxy("HTTPS", "login:password@IP_address:PORT")
298+
code, err := client.Solve(req)
299+
284300
### FunCaptcha
285301

286302
<sup>[API method description.](https://solvecaptcha.com/captcha-solver-api#solving_funcaptcha_new)</sup>

0 commit comments

Comments
 (0)