getBalance
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 等)
getBalance
傳回帳號餘額,單位為美元。
POSThttps://unlock-api.com/getBalance
請求參數
clientKeyString必填
你的 API 金鑰,32 個字元,在帳號頁面上。
請求
POST /getBalance
{
"clientKey": "YOUR_API_KEY"
}回應
成功
{
"errorId": 0,
"balance": 42.5
}回應欄位
errorIdInteger
請求成功時為 0,失敗時為 1。
balanceNumber
餘額,單位為美元。
程式碼範例
curl -s https://unlock-api.com/getBalance \
-H "Content-Type: application/json" \
-d '{"clientKey":"YOUR_API_KEY"}'import requests
r = requests.post("https://unlock-api.com/getBalance", json={
"clientKey": "YOUR_API_KEY"
}).json()
print(r)const r = await fetch("https://unlock-api.com/getBalance", {
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)
請求來自不在帳號白名單中的 IP。請在帳號頁面新增該 IP。
此帳號已被封鎖。請從帳號頁面聯絡客服。
請求過多。請把結果查詢放慢到每 5 秒一次。