💲Get Balance [/getBalance]

The API endpoint designated for retrieving your current DataLabs captcha balance.

Full Rest API Endpoint: https://captcha.datalabs.net/getBalance

Request Structure

ParametersRequiredDescription

clientKey

true

Your accounts private API Key.

POST https://captcha.datalabs.net/getBalance
Host: captcha.datalabs.net
Content-Type: application/json

{
  "clientKey": "DATALABS_API_KEY"
}

Response Structure

ParametersDescription

errorId

0: Without error. 1: Error with request.

errorCode

Short code for error type.

errorDescription

More detailed description of the error that occurred.

balance

Account balance in USD

Example Responses

{
    "errorId": 1,
    "errorCode": "ERROR_KEY_DOES_NOT_EXIST",
    "errorDescription": "The key you've provided does not exists."
}
{
    "balance": 0,
    "errorId": 0
}

Last updated