Solving hAPTCHA with captchas.io API is very easy. All you need to do is read the API document at https://api.captchas.io/document/ and then take note of the steps below.
Take note, you should:
1. set method=hcaptcha
2. set googlekey=<hCAPTCHA sitekey>
3. set pageurl=<hCAPTCHA page URL>