Menu

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

Python
Javascript
PHP
Java
C#
bash
from anticaptchaofficial.recaptchav2proxyless import *

solver = recaptchaV2Proxyless() # or any other class
solver.set_verbose(1)
solver.set_key("YOUR_API_KEY")
money_balance = solver.get_balance()
subscription_credits_balance = solver.get_credits_balance()


Response structure

PropertyTypePurpose
errorIdIntegerError identifier.
0 - no errors, operation completed successfully.
>0 - error identifier. Error code and its short description are available in errorCode and errorDescription properties.
errorCodeString
errorDescriptionStringShort description of the error
balanceDoubleAccount balance value in USD
captchaCreditsInteger

Response example

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