How identify and obtain hCaptcha rqdata
Step 1: Identify that you need to submit rqdata
The initial step involves determining if the hCaptcha you aim to solve necessitates submitting a rqdata. Failure to submit this data when required results in an invalid token or a high chance of token invalidation. To ascertain if a rqdata is needed, utilize the captcha detection feature of Capsolver. This tool can be further explored here:
Learn about Capsolver's captcha detector
When a rqdata is needed, Capsolver's extension will show a display panel as illustrated below:
Step 2: Find where to obtain this value
This stage covers the process of obtaining the rqdata value. Start by opening the Inspect Element tool (F12), navigate to the network tab, and activate the hCaptcha. A request URL will appear like this:
https://api.hcaptcha.com/getcaptcha/9928de2d-2800-4c58-be91-060e5a6aa117
Note that the 'sitekey' part (9928de2d-2800-4c58-be91-060e5a6aa117) will vary. Inspecting the payload of the POST request reveals a "rqdata" parameter, from which you can copy the value.
Then, in the inspect element tool, press CTRL + S to open the search panel. Enter the rqdata value here, and the request that generated this value should appear.
In some instances, this method may not work if the value is HTML encoded, encrypted, or located elsewhere. It's advisable to examine the response body of each request to locate where this value originates.
Keep in mind that this value changes each time. Therefore, it's essential to scrape it anew before each captcha submission to ensure the captcha token remains valid.
When specifying the data in the required format, it should be entered as follows:
"enterprisePayload": {
//Optional, required if the site have HCaptcha Enterprise
"rqdata": "[value]"
},