Retrieve an account balance with its account key. Please don't call this method more than once every 30 seconds, and use a memory/disk cached value instead.
Address: https://api.anti-captcha.com/getBalance
Method: POST
Content-type: application-json
Property | Type | Required | Purpose |
---|---|---|---|
clientKey | String | Yes |
curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{ "clientKey":"YOUR_API_KEY" }' \
https://api.anti-captcha.com/getBalance
Property | Type | Purpose |
---|---|---|
errorId | Integer | Error identifier. 0 - no errors, operation completed successfully. >0 - error identifier. Error code with short description are available in errorCode and errorDescription properties. |
errorCode | String | |
errorDescription | String | Short description of the error |
balance | Double |
{
"errorId": 0,
"balance": 12.3456,
"captchaCredits": 85000
}