getSpendingStats: retrieve account spending stats

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

Method: POST
Content-type: application-json

Request properties

dateIntegerNoUnix timestamp of the hour from which we grab the 24 hour stats.
queueStringNoYou can find the name of the queue in the AntiCaptcha statistics. If it's not provided, totals are calculated for all queues. Examples:
"English ImageToText"
"Recaptcha Proxyless"
softIdIntegerNoThe ID of your app from the Developer Center
ipStringNoFilter 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

errorIdIntegerError identifier.
0 - no errors, operation completed successfully.
>0 - error identifier. Error code with short description are available in errorCode and errorDescription properties.
errorDescriptionStringShort description of the error
Records of the following structure:
  • dateFrom: UTC seconds of beginning of record period
  • dateTill: UTC seconds of end of record period
  • volume: number of tasks
  • money: funds spent on tasks

Response example

JSON with no errors
JSON with an error