获取指定时间范围内,企业整体的 MCP 使用排行。
statistics
GET /openapi/v1/statistics/mcp
|
参数 |
类型 |
是否必填 |
默认值 |
描述 |
|---|---|---|---|---|
|
|
string |
是 |
- |
开始日期。格式:YYYY-MM-DD。 |
|
|
string |
是 |
- |
结束日期。格式:YYYY-MM-DD。 |
|
|
string |
否 |
|
时区。需使用 IANA 时区名称。 |
|
|
int |
否 |
|
指定返回使用量排行前 |
|
参数 |
类型 |
描述 |
|---|---|---|
|
|
array |
MCP 使用排行列表。 |
mcp_list 数组包含以下参数:
|
参数 |
类型 |
描述 |
|---|---|---|
|
|
string |
MCP 的名称。 |
|
|
int64 |
该 MCP 被使用的次数。 |
curl -X GET "https://{domain}/openapi/v1/statistics/mcp?start_date=2026-01-01&end_date=2026-01-31" \
-H "Authorization: Bearer {access_token}"
{
"code": 0,
"message": "success",
"request_id": "req_abc123xyz",
"data": {
"mcp_list": [
{
"name": "github-mcp",
"use_count": 1500
}
]
}
}