hCaptcha Preflight
hCaptcha Enterprise preflight endpoint for session fingerprint and region
Developer-Id: hqLmMSWhen to use it
When the website has obvious score-based detection, to improve the pass rate.
Description
Used to keep the proxy region, UserAgent, and other data consistent with your business context.
🚨🚨🚨
After you get the region (e.g. hk, gb, us), the proxy you pass must match that region. Note: the region obtained from this endpoint must be used with your proxy, otherwise it becomes meaningless (e.g. region=gb, use user-gb:pass@ip:port).
If you use the preflight mode but do not pass a proxy matching the region, or keep requesting this endpoint without calling /universal or /enterprise, your account will be banned.
⚠️ Client-side and server-side egress IPs may differ
Even with the exact same proxy string (same country, same session ID, same ip and port), the egress IP obtained on your computer and the one obtained on our servers may differ (this depends on the proxy provider's architecture).
So even if you have completed the preflight task, a low score may still occur because the IP obtained by the client differs from the IP obtained by the server. If needed, contact the administrator to confirm whether the same proxy string resolves to different IPs on the two sides.
Request URL (POST):
| API Endpoint |
|---|
http://api.nocaptcha.io/api/wanda/hcaptcha/preflight |
Request Headers:
| Parameter | Description | Required |
|---|---|---|
Content-Type | application/json | Yes |
User-Token | Your API token, available on the dashboard | Yes |
POST Data (JSON):
| Parameter | Type | Description | Required |
|---|---|---|---|
sitekey | String | hCaptcha site key | Yes |
Response Data (JSON):
| Parameter | Type | Description |
|---|---|---|
status | Integer | Call result |
data.data | Object | Preflight returned data |
data.data.preflight_uuid | String | Preflight returned ID |
data.data.region | String | Country code corresponding to the preflight |
data.data.allowPassProxy | Boolean | Whether a proxy can be passed to the endpoint |
cost | String | Processing time (milliseconds) |
JSON example
{
"success": true,
"data": {
"preflight_uuid": "b5e404b6-55ca-4672-a83f-9a5f3e2e9882",
"data": {
"region": "ca",
"navigator": {
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36"
},
"allowPassProxy": true
...
}
}
}