Yidun - NECaptcha
This task will be executed using our proxy servers.
Request Parameters
type
<string>requiredYidunTask
websiteURL
<string>requiredFull URL of the page containing the CAPTCHA.
websiteKey
<string>requiredThe value of the siteKey
parameter found on the page (see the example below on how to find it).
userAgent
<string>optionalBrowser User-Agent.
You must provide a valid User-Agent from a Windows OS. The currently recommended one is: userAgentPlaceholder
proxyType
<string>optionalhttp – standard HTTP/HTTPS proxy;
https – try this only if "http" doesn't work (required for some custom proxies);
socks4 – SOCKS4 proxy;
socks5 – SOCKS5 proxy.
proxyAddress
<string>optionalProxy IP address (IPv4/IPv6). The following are not allowed:
- using hostnames;
- using transparent proxies (where the client IP is visible);
- using proxies from local machines.
proxyPort
<integer>optionalProxy port.
proxyLogin
<string>optionalProxy server login.
proxyPassword
<string>optionalProxy server password.
How to Get websiteURL and websiteKey
Open the Developer Tools, activate the captcha, go to the Network tab, and find the request that starts with get?referer=
or check?referer=
. The value of referer is the websiteURL
.
Sometimes the referer
in the URL is encoded, for example: https%3A%2F%2Fid.example.com%2F. To get a readable address, you need to decode it, for example, using the browser console:
The value of id is the websiteKey
.
Create Task Method
- YidunTask (proxyless)
- YidunTask (with proxy)
https://api.capmonster.cloud/createTask
Request
{
"clientKey": "API_KEY",
"task": {
"type": "YidunTask",
"websiteURL": "https://www.example.com",
"websiteKey": "6cw0f0485d5d46auacf9b735d20218a5",
"userAgent": "userAgentPlaceholder"
}
}
Response
{
"errorId": 0,
"taskId": 407533077
}
https://api.capmonster.cloud/createTask
Request
{
"clientKey": "API_KEY",
"task": {
"type": "YidunTask",
"websiteURL": "https://www.example.com",
"websiteKey": "6cw0f0485d5d46auacf9b735d20218a5",
"userAgent": "userAgentPlaceholder",
"proxyType": "http",
"proxyAddress": "8.8.8.8",
"proxyPort": 8080,
"proxyLogin": "proxyLoginHere",
"proxyPassword": "proxyPasswordHere"
}
}
Response
{
"errorId": 0,
"taskId": 407533077
}
Get Task Result Method
Use the getTaskResult method to retrieve the solution for the Yidun CAPTCHA.
https://api.capmonster.cloud/getTaskResult
Request
{
"clientKey": "API_KEY",
"taskId": 407533077
}
Response
{
"errorId": 0,
"errorCode": null,
"errorDescription": null,
"solution": {
"token": "CN31_9AwsPmaYcJameP_09rA0vkVMQsPij...RXTlFJFc3"
},
"status": "ready"
}