Skip to content

POST /api/user/balance — Balance

Retrieve your account balance in credits.

POST https://api.ucaptcha.net/api/user/balance

Content-Type: application/json

Include your uCaptcha API key as the token field in the request body, or pass it via the x-api-key header.

{
"token": "YOUR_API_KEY"
}
{
"ok": true,
"balance": 12500
}
FieldTypeDescription
okbooleantrue on success
balancenumberAccount balance in credits (1 USD = 1000 credits)

To convert to USD: balance / 1000.

{
"ok": false,
"error": "Invalid or missing API key"
}
Terminal window
curl -X POST https://api.ucaptcha.net/api/user/balance \
-H "Content-Type: application/json" \
-d '{"token": "YOUR_API_KEY"}'
import requests
resp = requests.post("https://api.ucaptcha.net/api/user/balance", json={
"token": "YOUR_API_KEY"
})
credits = resp.json()["balance"]
print(f"Balance: ${credits / 1000:.2f} ({credits} credits)")
Terminal window
curl -X POST https://api.ucaptcha.net/api/user/balance \
-H "x-api-key: YOUR_API_KEY"