getBalance
JSON methods
Token tasks
- 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 page
- Cutcaptcha
- CyberSiARA
- atbCAPTCHA
- Tencent Captcha
- Prosopo Procaptcha
- CaptchaFox
- Altcha
- NetEase Yidun
- Yandex SmartCaptcha
- VK Captcha
- Binance Captcha
- Custom task (Imperva, Temu and others)
getBalance
Returns the account balance in US dollars.
POSThttps://unlock-api.com/getBalance
Request parameters
clientKeyStringRequired
Your API key, 32 characters, from the account page.
Request
POST /getBalance
{
"clientKey": "YOUR_API_KEY"
}Response
Success
{
"errorId": 0,
"balance": 42.5
}Response fields
errorIdInteger
0 when the request worked, 1 when it did not.
balanceNumber
Balance in US dollars.
Code samples
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);Errors this method can return
The key is wrong. Copy it again from the account page. (in.php and res.php: ERROR_WRONG_USER_KEY)
The request came from an IP that is not on the account's allow list. Add the IP on the account page.
This account is blocked. Contact support from the account page.
Too many requests. Slow down result checks to every 5 seconds.