DocumentationAPI v1
Back to All Task Types
Captcha Token•Token & Cookie Bypass~1.9s avg98.7% accuracy$1.15 / 1k

NetEase Yidun (Beta)

POST/api/v1/createTask
POST/api/v1/getTaskResult

Solves NetEase Yidun standard and enterprise challenges (slider, click, and smart verify). Returns a single-use solution.token.

Supported Task Types & Modes

Task TypeModeRecommended ForRate / 1k
YidunTaskProxy Optional (v1: yidun)Standard and enterprise NetEase Yidun widgets returning validation token$1.15
How to Locate Required Parameters
  1. Locate the Yidun captchaId from initNECaptcha({ captchaId: "..." }) or network requests to c.dun.163.com.
  2. For enterprise deployments, also capture get_lib (load.min.js URL), custom api_server_subdomain, and dynamic challenge / hcg / hct fields if present.
  3. Submit POST /api/v1/createTask and poll POST /api/v1/getTaskResult.
  4. Submit solution.token to the target form or API verification handler.

Request Parameters

ParameterTypeRequiredDescription
task.typestringRequired
Use YidunTask or canonical v1 name "yidun".
Example: "YidunTask"
websiteURLstringRequired
Full URL of the page loading NetEase Yidun.
Example: "https://example.com/login"
websiteKeystringRequired
The Yidun captchaId.
Example: "6cw0f0485d5d46auacf9b735d20218a5"
get_libstringOptional
Full URL of the Yidun loader script (recommended for enterprise).
Example: "https://cstaticdun.126.net/load.min.js"
api_server_subdomainstringOptional
Custom Yidun API hostname if different from c.dun.163.com.
Example: "c.dun.example.com"
challenge / hcg / hctstring / intOptional
Enterprise-only challenge token, hcg hash, and hct timestamp.
Example: "a0b1" / "9f8e" / 1761048664
proxyobjectOptional
Optional proxy configuration.
Example: {"type":"http","host":"203.0.113.7","port":8080}

Request Examples

Create & Poll Task
curl -X POST https://api.byecap.org/api/v1/createTask \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
      "type": "YidunTask",
      "websiteURL": "https://example.com/login",
      "websiteKey": "6cw0f0485d5d46auacf9b735d20218a5",
      "get_lib": "https://cstaticdun.126.net/load.min.js"
    }
  }'

Response Format

200 OK — Ready Solution
{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "token": "CN31_9f82a4e7c1b0d5..."
  }
}
Response FieldTypeDescription
solution.tokenstringSingle-use Yidun verification token (validate parameter).

Error Codes & Troubleshooting

Error CodeCommon CauseResolution
INVALID_ENTERPRISE_PARAMSEnterprise Yidun instance missing api_server_subdomain or hcg/hct parameters.Inspect the Yidun network call and forward get_lib, api_server_subdomain, challenge, hcg, and hct.
Best Practices & Billing Protection
  • Use solution.token immediately—Yidun tokens are single-use and short-lived.
  • Include get_lib for enterprise portals hosting customized Yidun scripts.
Need custom concurrency or a dedicated model? View Pricing & Enterprise Plans →