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.
POST
https://api.anycaptcha.com/getBalance
name | type | required | description |
clientKey | text | yes |
POST /getBalance HTTP/1.1
Host: api.anycaptcha.com
Content-Type: application/json
{
"clientKey": "YOUR_API_KEY"
}
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"
}
Last modified 1yr ago