YidunToken
Solve a Yidun (NetEase NECaptcha) challenge through your own proxy and get the validate token. Shows the request schema, an example and provider prices.
YidunToken solves a Yidun (NetEase NECaptcha) challenge through your proxy and returns the validate token. Parameters, where to find them and how to use the token are the same as for YidunTokenProxyLess, which explains them.
Use the proxyless task when the site does not check the address that submits the token.
Use your proxy
task.proxy is required on this task type, and the provider solves from that address. The proxy must keep one IP for the whole solve: see Keep the same IP for the whole solve. Submit the token from the same address. If the site rejects the token, check that the proxy kept one IP, then that websiteKey and websiteURL come from the page that shows the widget.
Check Provider stats for live success rates and solve times before you pick a provider.
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
2Captcha | $2.99 | |
CapMonster | $1.00 |
Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in a workspace of the AnySolver dashboard. Example: |
task* | object | Yes | The task body. Required fields depend on the task type. See Tasks for per-task schemas. View task properties |
settings | object | No | Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes. View settings reference |
Task Object Properties
The task field accepts an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
websiteURL* | URL | Yes | Full URL of the page where the CAPTCHA is displayed. Example: |
websiteKey* | string | Yes | The id (sitekey) of the Yidun widget, from the page source or the id parameter of its get?referer= request. Example: |
proxy* | string | object | Yes | Proxy the provider solves through, as a string or an object. See Proxy configuration. View proxy configurationExample: |
userAgent | string | No | 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. Example: |
yidunGetLib | string | No | Full URL of the JavaScript file that loads the captcha. Recommended for Yidun Enterprise. Example: |
yidunApiServerSubdomain | string | No | Custom Yidun API server host without the https:// prefix, for pages that override the default server. Example: |
challenge | string | No | Dynamic challenge value from network requests, present on Yidun Enterprise. It changes on every load, so read it right before creating the task. Example: |
hcg | string | No | Captcha hash from the same Enterprise network requests as challenge. Example: |
hct | number | No | Numeric timestamp from the same Enterprise network requests as challenge. Example: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "YidunToken",
"websiteURL": "https://example.com/page-with-yidun",
"websiteKey": "0f743r3g1g...rz3grz0ym5",
"proxy": "http://user:pass@1.2.3.4:8080"
}
}Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes |
Example: | |
taskId | string | No | Unique identifier returned when the task was created. Example: |
errorCode | No | Machine-readable error code. Example: | |
errorDescription | string | No | Human-readable error message with resolution hints. Example: |
cost | number | No | Actual cost charged for this task in USD. Example: |
taskType | No | The type of CAPTCHA task to solve. Example: | |
provider | No | Provider that handled this task. While processing, the provider currently solving it. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
token* | string | Yes | The solved CAPTCHA token to submit with your form. Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |