跳转到主要内容
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
必填