Passer au contenu principal
GET
Get usage
La lecture ne coûte rien. Sans paramètre, elle renvoie le mois UTC en cours jusqu’à aujourd’hui, ventilé par jour et par moteur. Ajoutez groupBy=key pour voir quelle clé d’API a dépensé les crédits. Le sens de chaque champ figure dans Crédits et limites.

Autorisations

Authorization
string
header
requis

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

Paramètres de requête

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
défaut:day,engine

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

Exemples:

"engine"

"day,key"

Réponse

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

success
boolean
requis
data
object
requis