getQueueStats
JSON 方法
令牌任务
- reCAPTCHA v2
- reCAPTCHA v2 Enterprise
- reCAPTCHA v3
- Cloudflare Turnstile
- GeeTest v3 / v4
- FunCaptcha (Arkose Labs)
- Amazon AWS WAF
- MTCaptcha
- Friendly Captcha
- Lemin Cropped Captcha
- DataDome
- KeyCaptcha
- Capy Puzzle
- Cloudflare Challenge 验证页
- Cutcaptcha
- CyberSiARA
- atbCAPTCHA
- Tencent Captcha
- Prosopo Procaptcha
- CaptchaFox
- Altcha
- NetEase Yidun
- Yandex SmartCaptcha
- VK Captcha
- Binance Captcha
- 自定义任务(Imperva、Temu 等)
getQueueStats
返回当前队列:等待中的任务、识别中的任务,以及最近一小时的平均识别时间。数字来自真实任务,不是估算。
POSThttps://unlock-api.com/getQueueStats
请求参数
clientKeyString必填
你的 API 密钥,32 个字符,在账户页面上。
请求
POST /getQueueStats
{
"clientKey": "YOUR_API_KEY"
}响应
成功
{
"errorId": 0,
"waiting": 3,
"solving": 12,
"speed": 6.4,
"total": 15
}响应字段
errorIdInteger
请求成功为 0,失败为 1。
waitingInteger
等待发送给识别方的任务数。
solvingInteger
正在识别的任务数。
speedNumber
最近一小时的平均识别时间(秒);如果没有完成的任务则为 null。
totalInteger
waiting 与 solving 之和。
代码示例
curl -s https://unlock-api.com/getQueueStats \
-H "Content-Type: application/json" \
-d '{"clientKey":"YOUR_API_KEY"}'import requests
r = requests.post("https://unlock-api.com/getQueueStats", json={
"clientKey": "YOUR_API_KEY"
}).json()
print(r)const r = await fetch("https://unlock-api.com/getQueueStats", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"clientKey": "YOUR_API_KEY"
}),
}).then((res) => res.json());
console.log(r);此方法可能返回的错误
密钥错误。请从账户页面重新复制。(in.php 和 res.php:ERROR_WRONG_USER_KEY)