Zum Hauptinhalt springen
GET
Get usage
Die Abfrage kostet nichts. Ohne Parameter liefert sie den laufenden UTC-Monat bis heute, aufgeteilt nach Tag und Engine. Mit groupBy=key sehen Sie, welcher API-Schlüssel die Credits verbraucht hat. Was jedes Feld bedeutet, steht unter Credits und Limits.

Autorisierungen

Authorization
string
header
erforderlich

Your API key, sent as Authorization: Bearer <key>.

Abfrageparameter

from
string<date>

First UTC date, inclusive. Default: the first day of the current UTC month.

to
string<date>

Last UTC date, inclusive. Default: today (UTC). The range spans at most 366 days, from and to included.

groupBy
string
Standard:day,engine

How to split the rows: a comma-separated choice of day, engine and key. Default: day,engine.

Beispiele:

"engine"

"day,key"

Antwort

Credit and task totals for the range, and one row per combination of the chosen splits that had a charge.

success
boolean
erforderlich
data
object
erforderlich