getSpendingStats
method แบบ 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
คืนยอดใช้จ่ายของคุณใน 1 วัน (UTC) แยกรายชั่วโมง: จำนวนงานและเงินที่ใช้ ไม่นับงานที่ล้มเหลวและงานที่คืนเงิน
POSThttps://unlock-api.com/getSpendingStats
date คือ Unix time ใดก็ได้ภายในวันที่ต้องการ ถ้าไม่ส่ง จะใช้วันนี้ (UTC)
พารามิเตอร์ของคำขอ
clientKeyStringจำเป็น
API key ของคุณ 32 ตัวอักษร จากหน้าบัญชี
dateIntegerไม่บังคับ
Unix time ภายในวันที่ต้องการดูรายงาน ค่าเริ่มต้น: วันนี้ตาม 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 แถว แถวละ 1 ชั่วโมง: 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);ข้อผิดพลาดที่ method นี้อาจตอบกลับ
key ไม่ถูกต้อง คัดลอกใหม่จากหน้าบัญชี (in.php และ res.php: ERROR_WRONG_USER_KEY)