getSpendingStats
JSON 方法
token 任務
- 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)