anycaptcha.com
Search
K

Get 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.

Request

POST https://api.anycaptcha.com/getBalance
name
type
required
description
clientKey
text
yes
client account key, can be found here
POST /getBalance HTTP/1.1
Host: api.anycaptcha.com
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY"
}

Response

success
error
server will return errorId = 0 and taskId for success
{
"errorId": 0,
"balance": 12.3456
}
server will return errorId > 0 and errorCode
{
"errorId": 1,
"errorCode": "ERROR_KEY_DOES_NOT_EXIST",
"errorDescription": "ERROR_KEY_DOES_NOT_EXIST"
}