getSpendingStats
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 等)
getSpendingStats
按小时返回某个 UTC 日的消费:任务数和花费金额。失败和已退款的任务不计入。
POSThttps://unlock-api.com/getSpendingStats
date 是所需日期内的任意 Unix 时间。不传则使用今天(UTC)。
请求参数
clientKeyString必填
你的 API 密钥,32 个字符,在账户页面上。
dateInteger可选
要统计的那一天内的 Unix 时间。默认:UTC 今天。
请求
POST /getSpendingStats
{
"clientKey": "YOUR_API_KEY",
"date": 1791590400
}响应
成功
{
"errorId": 0,
"data": [
{
"dateFrom": 1791590400,
"dateTill": 1791593999,
"volume": 120,
"money": 0.066
},
{
"dateFrom": 1791594000,
"dateTill": 1791597599,
"volume": 0,
"money": 0
}
]
}响应字段
errorIdInteger
请求成功为 0,失败为 1。
dataArray
24 行,每小时一行:dateFrom、dateTill、volume(任务数)和 money(美元)。
代码示例
curl -s https://unlock-api.com/getSpendingStats \
-H "Content-Type: application/json" \
-d '{"clientKey":"YOUR_API_KEY","date":1791590400}'import requests
r = requests.post("https://unlock-api.com/getSpendingStats", json={
"clientKey": "YOUR_API_KEY",
"date": 1791590400
}).json()
print(r)const r = await fetch("https://unlock-api.com/getSpendingStats", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"clientKey": "YOUR_API_KEY",
"date": 1791590400
}),
}).then((res) => res.json());
console.log(r);此方法可能返回的错误
密钥错误。请从账户页面重新复制。(in.php 和 res.php:ERROR_WRONG_USER_KEY)