Skip to main content
GET
Account Usage
使用下方声明的范围与时间参数查询汇总用量。 控制台查询流程与逐笔记录请参阅用量日志。

请求规范

完整 OpenAPI 定义 有效请求与价格声明(包括认证和引用的 schema):

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

start_time
integer<int64>
必填

Window start as a Unix timestamp in seconds.

end_time
integer<int64>

Window end as a Unix timestamp in seconds. Defaults to the current time.

响应

Usage totals and per-day buckets over the window.

scope
string

Aggregation scope implied by the credential (e.g. key or account).

currency
string

ISO currency code (always USD).

start_time
integer<int64>

Echoed window start (Unix seconds).

end_time
integer<int64>

Echoed window end (Unix seconds).

bucket_width
string

Bucket granularity (e.g. 1d).

totals
object

Aggregate totals across the whole window.

buckets
object[]

Per-bucket usage, ordered by time.