HuntXHDToken
Generate the Hunt X-HD fingerprint token required before protected site actions.
Hunt CAPTCHA is an anti-bot system used on betting platforms. HuntXHDToken is the first step in the flow: it generates an X-HD fingerprint tied to your proxy IP, which you then send to the target website in later requests.
If the site later returns a captcha error with meta.token, switch to HuntCaptchaToken.
Own proxies are required
Use your own proxy for Hunt. If you change the proxy, the old X-HD is no longer valid and you must create a new
HuntXHDToken task.
When to use HuntXHDToken
Use this task when:
- you are starting a fresh Hunt-protected session
- you need an X-HD value before calling a protected endpoint
- you changed proxy and need a new fingerprint bound to the new IP
Do not send the data field for this task. X-HD generation mode only needs the page URL, apiGetLib, your proxy, and optionally the user agent.
Finding apiGetLib
The apiGetLib field is the full URL to Hunt's api.js file. This is the most important parameter besides the proxy.
Method 1: Network tab
- Open DevTools on the page where Hunt is loaded.
- Go to the Network tab and reload the page.
- Search for
hd-apiorapi.js. - Copy the full request URL for the Hunt script, for example:
https://example.com/hd-api/external/apps/a2157wab1045d68672a63557e0n2a77edbfd15ea/api.jsMethod 2: Elements tab
- Open the Elements tab.
- Search for
hd-apiorapi.js. - Look for a
<script>tag whosesrcpoints to the Hunt library.
Where to get the X-HD value
After solving, solution.token is your X-HD fingerprint. Use it in the protected site flow with the same proxy that was used to create the task.
The image below shows the X-HD generation mode in the provider docs. The important part is the getTaskResult response: the X-HD value is returned inside solution.data.token, and that is the value you use in later requests to the target site.
-1-feced69f9da880f442fb82a0d025775d.bcadd90d.webp&w=3840&q=75)
Supported Providers
| Provider | Price per 1,000 |
|---|---|
| $1.00 |
Request Schema
| Field | Type | Description |
|---|---|---|
clientKey* | string | Your API key from the AnySolver dashboard. Example: |
task* | object | |
provider | Specific provider to use. If omitted, automatic routing selects the best provider. Example: | |
selectionMode | Read more at the routing strategies docs. Example: | |
keyPoolMode | Example: |
Task Object Properties
The task field accepts an object with the following properties:
| Field | Type | Description |
|---|---|---|
websiteURL* | URL | Full URL of the page where the CAPTCHA is displayed. Example: |
apiGetLib* | URL | Full URL to api.js. Find in DevTools via hd-api or api.js. Example: |
userAgent | string | Browser User-Agent string. Must match the browser used on the target page. Not all providers properly support this parameter. Verify the compatibility with the provider you are using. |
proxy* | string | object |
Response Schema
| Field | Type | Description |
|---|---|---|
status* | Task status: "processing", "ready", or "failed". Example: | |
taskId | string | Unique identifier returned when the task was created. Example: |
errorId* | 0 = success, 1 = external error, 2 = internal error. Example: | |
errorCode | Machine-readable error code (e.g., "CAPTCHA_UNSOLVABLE"). Example: | |
errorDescription | string | Human-readable error message with resolution hints. Example: |
cost | number | Actual cost charged for this task in USD. Example: |
taskType | The type of CAPTCHA task to solve. Example: | |
provider | Specific provider to use. If omitted, automatic routing selects the best provider. Example: | |
solution | object |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Description |
|---|---|---|
token* | string | X-HD fingerprint or CAPTCHA solution token to submit to the target site. Example: |
raw | Record<string, unknown> | Raw provider response data for advanced use cases. |
Example Response
{ "status": "ready", "errorId": 0, "solution": { "token": "6IyDCCpDdSK...YGs1Wug/z/kLNSpjewI=" }}