NeuroCaptcha

getSpendingStats

Spending of the account by hour or by minute in the Anti-Captcha format: number of solved tasks and money.

Esta seção é exibida em inglês.

Nesta página
Endpoint
POST https://neurocaptcha.com/getSpendingStats

Spending of the whole account (all keys) in time buckets: solved tasks and the money charged for them. Test tasks are counted with zero money.

Request#

clientKey
stringobrigatório
Your API key.
date
integer
Start of the period, Unix time. Default — the start of the current day (UTC), or of the current hour for scope: "hour".
scope
string
day (default) — 24 hourly buckets; hour — 60 one-minute buckets.
softId
integer
Only tasks created with this softId.

Example#

import requests

response = requests.post("https://neurocaptcha.com/getSpendingStats", json={
    "clientKey": "YOUR_API_KEY",
    "date": 1793318400,
    "scope": "day",
}, timeout=30)
print(response.json())

Response#

Success (2 of 24 buckets shown)
{
  "errorId": 0,
  "data": [
    {
      "dateFrom": 1793318400,
      "dateTill": 1793321999,
      "volume": 120,
      "money": 0.072
    },
    {
      "dateFrom": 1793322000,
      "dateTill": 1793325599,
      "volume": 0,
      "money": 0
    }
  ]
}
dateFrom
integer
Start of the bucket, Unix time.
dateTill
integer
End of the bucket (inclusive), Unix time.
volume
integer
Tasks solved in the bucket.
money
number
Money spent, USD.