Documentation menu

getSpendingStats: retrieve account spending stats

This method grabs account spendings and task volumes statistics for 24 hour period.

Method: POST
Content-type: application-json

Request properties

Property Type Required Purpose
clientKey String Yes
date Integer No Unix timestamp of the hour from which we grab the 24 hour stats.
queue String No Name of the queue, can be found in AntiCaptcha statistics. If not provided, the totals of all queues are calculated.
"English ImageToText"
"Recaptcha Proxyless"
softId Integer No ID of your app from Developers Center
ip String No Filter statistics by IP address you used for your API calls

Request example

          curl -i -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -X POST -d '{
    "queue":"Recaptcha Proxyless"

Response structure

Property Type Purpose
errorId Integer Error identifier.
0 - no errors, the operation completed successfully.
>1 - error identifier. Error code and short description transferred in errorCode and errorDescription properties.
errorCode String
errorDescription String Short description of the error
data Array
Records of the following structure:
  • dateFrom : UTC seconds of beginning of record period
  • dateTill : UTC seconds of end of record period
  • volume : amount of tasks
  • money : funds spent on tasks

Response example

JSON with no errors
JSON with an error
    "errorId": 1,
    "errorCode": "ERROR_KEY_DOES_NOT_EXIST",
    "errorDescription": "Account authorization key not found in the system"