CAPSOLVER
Blog
How to solve hCaptcha Enterprise

How to solve hCaptcha Enterprise

Logo of CapSolver

Sora Fujimoto

AI Solutions Architect

29-Aug-2023

How to solve HCaptcha Enterprise

🌞 How to solve hCaptcha Enterprise

Before we start solving hCaptcha Enterprise, there are some requeriments and points that we need to be aware that they are needed to know
📌 Requeriments:

  • Capsolver Key
  • Proxy (Optional)

🔍 Points to be aware that if you don't follow, solution will be invalid:

  • HCaptchaTask/HCaptchaTaskProxyless is for sites that require a medium/low score scenario.
  • Recommended to use HCaptchaTask.
  • Recommended to use the same proxy used for solve the captcha
  • Recommended to use the same user-agent used for solve the captcha
  • Some websites may require a extra data, usually called rqdata that you can send like:
"enterprisePayload": {
      //Optional, required if the site have HCaptcha Enterprise
      "rqdata": ""
    },

How you can identify if the website require rqdata? There is a request called getCaptcha on hCaptcha that contains rqdata parameter, you can find this request just triggering hCaptcha.

Capsolver offer various types of hCaptcha solves such as hCaptcha normal, hCaptcha invisible, hCaptcha enterprise, depends on the site, will require a different task type and also different parameters, the captcha token received can be verified by submitting it to the relevant site.

⚡️ For solve hCaptcha enterprise, please use one of these task types:

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

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

🎳 Step 1: Submit information to capsolver

Use the method createTask to submit the information required:

POST https://api.capsolver.com/createTask
Host: api.capsolver.com
Content-Type: application/json

{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "HCaptchaTask",
    "websiteURL": "",
    "websiteKey": "",
    "proxy":"yourproxy",
    "enterprisePayload": {
      //Optional, required if the site have HCaptcha Enterprise and rqdata in getCaptcha
      "rqdata": ""
    },
  }
}

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: Get 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 enterprise / hCaptcha invisible using the best captcha solving service

Capsolver Team 💜

Compliance Disclaimer: The information provided on this blog is for informational purposes only. CapSolver is committed to compliance with all applicable laws and regulations. The use of the CapSolver network for illegal, fraudulent, or abusive activities is strictly prohibited and will be investigated. Our captcha-solving solutions enhance user experience while ensuring 100% compliance in helping solve captcha difficulties during public data crawling. We encourage responsible use of our services. For more information, please visit our Terms of Service and Privacy Policy.

More

Best hCaptcha Solvers: Top Tools to Solve CAPTCHA in 2024
Best hCaptcha Solvers: Top Tools to Solve CAPTCHA in 2024

Stumbled upon a troublesome hCaptcha while web scraping? Learn how CapSolver quickly and accurately solves hCaptcha process and increases efficiency!

hCaptcha
Logo of CapSolver

Sora Fujimoto

13-Aug-2024

Solving hCaptcha in C++: A Complete Guide
Solving hCaptcha in C++: A Complete Guide

Learn how to solve hCaptcha in C++ using the CapSolver API. This complete guide covers setting up your project, creating tasks, and retrieving task results with practical examples.

hCaptcha
Logo of CapSolver

Sora Fujimoto

31-Jul-2024

How to Solve hCaptcha: A Comprehensive Guide
How to Solve hCaptcha: A Comprehensive Guide

hCaptcha is a robust CAPTCHA service that effectively differentiates between humans and bots, but it can pose challenges for legitimate automated processes

hCaptcha
Logo of CapSolver

Rajinder Singh

29-Jul-2024

How to solve captcha with playwright while web scraping
How to solve captcha with playwright while web scraping

Learn to seamlessly How to solve captcha with playwright while web scraping, a detailed guide on setting up and automating captcha solutions effectively

hCaptcha
Logo of CapSolver

Rajinder Singh

16-Jul-2024

Automating hCaptcha Solutions: Best Practices and Tools
Automating hCaptcha Solutions: Best Practices and Tools

Learn to seamlessly Automating hCaptcha Solutions: Best Practices and Tools, a detailed guide on setting up and automating captcha solutions effectively

hCaptcha
Logo of CapSolver

Ethan Collins

16-Jul-2024

How to Identify if hCaptcha is Enterprise | By using CapSolver Extension
How to Identify if hCaptcha is Enterprise | By using CapSolver Extension

Learn how to identify if hcaptcha is enterprise using the CapSolver extension. This guide provides step-by-step instructions for detecting hcaptcha parameters, ensuring you can manage and troubleshoot website security measures effectively.

hCaptcha
Logo of CapSolver

Ethan Collins

03-Jun-2024