How to solve hCaptcha

Logo of Capsolver

CapSolver Blogger

How to use capsolver

19-Jun-2023

How to Solve hCaptcha

Before we start solving hCaptcha, there are some requirements and points that we need to be aware of:

Requirements:

  • Capsolver Key
  • Proxy (Optional)

Points to be aware of:

  • HCaptchaTaskProxyless is for sites that low score scenario.
  • HCaptchaTask is for sites that require a low-medium score scenario.
  • It's recommended to use the same proxy used to solve the captcha.
  • It's recommended to use the same user-agent used to solve the captcha.

Capsolver offers various types of hCaptcha solves such as hCaptcha normal, hCaptcha invisible, and hCaptcha enterprise. Depending on the site, a different task type and different parameters may be required. The captcha token received can be verified by submitting it to the relevant site.

For solving hCaptcha, please use one of these task types:

  • HCaptchaTaskProxyless: is using the server's built-in proxy
  • HCaptchaTask: this task type requires your own proxies

You can find the documentation here: [link]

The first method that you need to use from the documentation is createTask. This method needs the parameters of the picture, some are required and some are optional, depending on the site that we want to use.

Step 1: Submitting the information to capsolver

Use the method createTask to submit the required information:

POST https://api.capsolver.com/createTask
Host: api.capsolver.com
Content-Type: application/json
{
 "clientKey": "YOUR_API_KEY",
 "task": {
 "type": "HCaptchaTaskProxyless",
 "websiteURL": "",
 "websiteKey": ""
 }
}

After you submit the task to us, you should receive in the response a ‘Task id’ if it’s successful. Please read errorCode: full list of errors if you didn’t receive the task id.

Example response:

{
 "errorId": 0,
 "errorCode": "",
 "errorDescription": "",
 "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}

Step 2: Getting the results

To verify the results, you'll need to continuously poll the getTaskResult API endpoint until the captcha is resolved. Depending on the system load, you will get the results within the interval of 1s to 10s.

Example request:

POST https://api.capsolver.com/getTaskResult
Host: api.capsolver.com
Content-Type: application/json
{
 "clientKey": "YOUR_API_KEY",
 "taskId": "61138bb6-19fb-11ec-a9c8-0242ac110006"
}

Example response:

{
 "errorId": 0,
 "errorCode": null,
 "errorDescription": null,
 "solution": {
 //userAgent used to solve the captcha
 "userAgent": "xxx",
 //expireTime of the token
 "expireTime": 1671615324290,
 "timestamp": 1671615024290,
 "captchaKey": "E0_xxx",
 //token of the captcha
 "gRecaptchaResponse": "3AHJ....."
 },
 "status": "ready"
}

⚠️ If the token is rejected, it may indicate that some information is missing or incorrect. We recommend thoroughly checking whether the hcaptcha is standard or enterprise and whether it requires additional parameters listed as optional in our documentation.

You can solve hCaptcha with any programming language such as: Node.JS, PHP, Python, C#, Typescript, GO.

Or you can integrate yourself using the documentation.

And that is how easily you can solve hCaptcha using the best captcha solving service.

Capsolver Team 💜

更多

如何使用CapSolver通过Node.js自动识别 hCaptcha
如何使用CapSolver通过Node.js自动识别 hCaptcha

一旦您注册并获取了 CapSolver API Key,就可以使用 Node.js 搭配 CapSolver 轻松解决 hCaptcha 了,本文是关于如何实现它的教程

hCaptcha

28-Jul-2023

使用Capsolver识别任何版本的hCaptcha
使用Capsolver识别任何版本的hCaptcha

本教程将指导您通过使用Capsolver解决任何版本的hCaptcha的过程。 CapSolver是一个验证码解决服务,可帮助您解决验证码。 我们使用基于人工智能的验证码解决算法,这将导致更快的解决速度和显着降低的成本,从而提供出色的开发者体验。

hCaptcha

18-Jul-2023

如何自动识别hcaptcha
如何自动识别hcaptcha

hCaptcha是Intuition Machines公司的产品,是一个广泛使用的解决方案,用于检测和减轻机器人攻击。它拥有一套全面的功能,旨在保护网站、应用程序和API免受有害的机器人流量。同时,它确保了真实用户的愉悦体验。

hCaptcha

20-Jun-2023

如何绕过/自动识别hCaptcha 或者 hCaptcha Enterprise企业版
如何绕过/自动识别hCaptcha 或者 hCaptcha Enterprise企业版

绕过 hCaptcha Enterprise 可能看似令人望而生畏,但是有了正确的工具和理解,这变成了一个管理任务。Capsolver 提供了一套全面的任务类型和易于使用的 API,简化了这个过程。无论是在处理高得分网站还是寻找更稳定的代理,Capsolver 都有一个解决方案。

hCaptcha

24-May-2023

如何绕过/自动识别hCaptcha验证码
如何绕过/自动识别hCaptcha验证码

在本篇博客中,我们将重点介绍如何使用 Capsolver API 来编程绕过 hCaptcha。对于需要自动化处理涉及与 hCaptcha 保护的网站交互任务的开发人员来说,这可能特别有用。

hCaptcha

22-May-2023