メインコンテンツへスキップ
GET
Get usage
取得にクレジットはかかりません。パラメータなしで呼ぶと、今月(UTC)の今日までの使用量を日とエンジンで分けて返します。groupBy=key を加えると、どのAPIキーがクレジットを使ったかが分かります。各フィールドの意味はクレジットと上限にあります。

承認

Authorization
string
header
必須

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

クエリパラメータ

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
デフォルト:day,engine

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

例:

"engine"

"day,key"

レスポンス

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

success
boolean
必須
data
object
必須