Solve hCaptcha
Use this type of task to solve hCaptcha automatically. The result of the task is a token, which you need to use on the target website form.
Hcaptcha devs call their captcha "a drop-in replacement for reCaptcha". We tried to create the same thing in our API, so task properties are absolutely the same as in RecaptchaV2TaskProxyless except for the "type" property.
Task object
Property | Type | Required | Purpose |
---|
type | String | Yes | HCaptchaTaskProxyless |
websiteURL | String | Yes | Address of a target web page. Can be located anywhere on the web site, even in a member area. Our workers don't navigate there but simulate the visit instead. |
websiteKey | String | Yes | hCaptcha sitekey |
isInvisible | Boolean | No | Specify whether hCaptcha is invisible or not. This will render an appropriate widget for our workers. |
Request example
curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{
"clientKey":"YOUR_API_KEY_HERE",
"task":
{
"type":"HCaptchaTaskProxyless",
"websiteURL":"https://hcaptcha.com/",
"websiteKey":"00000000-0000-0000-0000-000000000000",
"isInvisible": false
},
"softId": 0
}' https://api.captcha.bar/createTask
Task solution object
Property | Type | Purpose |
---|
gRecaptchaResponse | String | Token string required for interacting with the submit form on the target website. |
respKey | String | Output of "window.hcaptcha.getRespKey()" function when it is available. Some websites use it for additional verification. |
userAgent | String | User-Agent of the worker's browser. Use it when you submit the response token. |
Response example
{
"errorId":0,
"status":"ready",
"solution":
{
"gRecaptchaResponse":"3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3......",
"respKey":"E0_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjoiQk5vb1JuZ0FPSHBCM2EyWURSSC......",
"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
},
"cost":"0.001200"
}