接口调用统计报表查询
API路径
/services/v4/rest/enterprise/apiCallReport
请求方法
GET
请求参数
字段 | 类型 | 是否必选 | 说明 | 示例 |
---|---|---|---|---|
dateOption | string | 否 | 查询时间区间选项,可选值: today, yesterday, last1Day, thisWeek, last1Week, thisMonth, last1Month | thisMonth |
startTs | long | 否 | 查询起始时间 | 1748767084000 |
endTs | long | 否 | 查询结束时间 | 1751359084000 |
参数补充说明:
dateOption 有传值的情况下,优先根据 dateOption 对应的时间区间进行查询;
dateOption 无传值的情况下,必须指定 startTs 和 endTs, startTs 不能大于当前时间, 区间范围不能超过1个月
调用样例
https://${host}http://services/v4/rest/enterprise/apiCallReport?dateOption=last1Month&startTs=1748767084000&endTs=1751359084000
JSON示例
{
"error_code": 0,
"success": true,
"message": "",
"data": {
"startTs": 1748767084000, // 统计的起始时间
"endTs": 1751359084000, // 统计的结束时间
"report": [
{
"date": "20250617", // 按日分组
"url": "/services/v4/rest/enterprise/standard_info", // 调用接口路径
"callCount": 7, // 调用的接口次数
"usedCharge": 7 // 接口调用消耗的额度(有些接口一次调用会扣除多个额度的)
},
{
"date": "20250616",
"url": "/services/v4/rest/enterprise/standard_info",
"callCount": 32,
"usedCharge": 32
},
{
"date": "20250613",
"url": "/services/v4/rest/enterprise/legalPersonRelatedEnterprise",
"callCount": 8,
"usedCharge": 8
},
{
"date": "20250606",
"url": "/services/v4/rest/enterprise/legalPersonRelatedEnterprise",
"callCount": 23,
"usedCharge": 23
},
{
"date": "20250605",
"url": "/services/v4/rest/enterprise/relatedEnterprise",
"callCount": 5,
"usedCharge": 5
},
{
"date": "20250605",
"url": "/services/v4/rest/enterprise/legalPersonRelatedEnterprise",
"callCount": 1,
"usedCharge": 1
}
]
}
}
返回错误代码以及处理方式
code | 处理方式 | 说明 |
---|---|---|
406 | 修改参数 | 参数不合法 |
错误代码参考 错误码定义 |
文档更新时间: 2025-08-13 16:57 作者:李星亮