Skip to main content
GET
针对给定的密钥 environment,返回按天拆分的请求次数明细——便于渲染用量趋势图。位于常规的 Scanova API 主机(qcg-api.scanova.io)上,使用您的仪表盘 OAuth 访问令牌进行身份验证。

请求

string
必填
sandboxlivezapiermcp 之一。选择要聚合哪些密钥的日志。
integer
默认值:"30"
要包含的过去天数,限定在 1365 范围内。

响应字段

响应是一个恰好包含 days 个条目的数组,每个日历日一个条目,最早的日期排在最前。
string
ISO 8601 日期(YYYY-MM-DD)。
integer
当天记录的请求总数。
integer
返回状态码低于 400 的请求数。
integer
返回状态码为 400 或以上的请求数。
没有流量的日期会被填充为零,而不是被省略,因此数组长度始终恰好等于 days,可以直接用于绘图,无需在客户端补齐缺口。

错误

environment 为必填项,校验规则与用量统计相同。非整数的 days 会返回:
400 Bad Request

相关内容

  • 用量统计 —— 同样的请求总数,以单一的滚动时间窗口数字呈现,而不是按天的序列。
  • 按端点统计用量 —— 同样的流量数据,按路由和方法拆分,而不是按天。
  • Management API 概览 —— 本端点据以聚合的 environment 取值(sandboxlivezapiermcp)。

授权

Authorization
string
header
必填

Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. management.scanova.io) — the same key sent to the regular API host will not authenticate.

查询参数

environment
string
必填
days
integer

响应

200

Per-day usage