getBalance: retrieve an account balance

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

Request properties

PropertyTypeRequiredPurpose
clientKeyStringYes

Request example

curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{ "clientKey":"YOUR_API_KEY" }' \
https://api.anti-captcha.com/getBalance


Response structure

PropertyTypePurpose
errorIdIntegerError identifier.
0 - no errors, operation completed successfully.
>0 - error identifier. Error code with short description are available in errorCode and errorDescription properties.
errorCodeString
errorDescriptionStringShort description of the error
balanceDouble

Response example

JSON with no errors
JSON with an error
{
    "errorId": 0,
    "balance": 12.3456,
    "captchaCredits": 85000
}