HCaptchaTaskProxyless : hCaptcha puzzle solving
The object contains data for hCaptcha solving task. This task will be executed by our service using our own proxy servers.
Object structure
Parameter | Type | Required | Value |
type | String | Yes | HCaptchaTaskProxyless |
websiteURL | String | Yes | Address of a webpage with hCaptcha |
websiteKey | String | Yes | hCaptcha website key. |
isInvisible | Bool | No | Use |
data | String | No | Custom data that is used in some implementations of hCaptcha, mostly with |
cookies | String | No | Additional cookies which we must use during interaction with target page. Format: cookiename1=cookievalue1; cookiename2=cookievalue2 |
userAgent | String | No | The browser User-Agent used in the emulation. You must use a modern browser signature or Google will return an error asking you to update your browser. |
fallbackToActualUA | Bool | No | true - when specifying this parameter, we ignore the irrelevant User Agent that users send in the request, and return our own (relevant) one with getTaskResult. This will improve the acceptance of tokens. false - we insert the User Agent that is specified in the request. If the User Agent is invalid, you will receive an error ERROR_WRONG_USERAGENT (USERAGENT IS EXPIRED in the log). |
Supported Types
The supported image types are as follows:
|
|
|
|
|
|
Request example
Address https://api.capmonster.cloud/createTask
{
"clientKey":"dce6bcbb1a728ea8d871de6d169a2057",
"task":
{
"type":"HCaptchaTaskProxyless",
"websiteURL":"https://lessons.zennolab.com/captchas/hcaptcha/?level=easy",
"websiteKey":"472fc7af-86a4-4382-9a49-ca9090474471",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
"fallbackToActualUA":true
}
}
Response example
{
"errorId":0,
"taskId":407533072
}
Getting result
Use the method getTaskResult to request answer for hCaptcha. You will get response within 10 - 80 secs period depending on service workload.
Property | Type | Description |
gRecaptchaResponse | String | Hash which should be inserted into hCaptcha submit form on target website. |
userAgent | String | During submitting, you should use the same User Agent with which hCaptcha was solved. |
respKey | String | The result of the "window.hcaptcha.getRespKey()" function when available. Some sites use this value for additional verification. |
Example:
{
"errorId":0,
"status":"ready",
"solution":
{
"gRecaptchaResponse": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hKdwYXNza2V5xQb9JvlblBqjTdKpourvlRNpOZLvJb0yJRmsXVFVjyxFWlL1wdYBXaPyFtnxwy2ukbMgwWn62-cjSc98Iw2XIPYWg5MNDKS4_7tBIhjY0PienoKy1...",
"respKey": "E0_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkYXRhIjoidjQ3RjlqZGFYTllFQXlZZFYyRTlaWlBVQUdLaFpPakpRNjBXRTljVW40VnY3NnhuN2V3R0wwVWd1MW1Wai90WEdoYmt5a2NqVGlGdWpsSlpmVjcza...",
"userAgent": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
}
}