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 챌린지 페이지
- 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필수
계정 화면에 있는 32자 API 키예요.
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)