HTTP/HTTPS
请求协议
接口大师 / 后台接口 / 获取接口流量统计
获取接口流量统计
接口地址:https://13520.site/api/admin.php?s=Admin.Index.GetDataFlow
接口描述: 获取接口流量统计
接口参数
参数名字 | 类型 | 是否必须 | 默认值 | 其他 | 说明 |
---|---|---|---|---|---|
access_token | 字符串 | 可选 | 访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口 | ||
start_time | 字符串 | 可选 | - | 开始时间 | |
end_time | 字符串 | 可选 | - | 结束时间 |
返回字段
返回结果 | 类型 | 说明 |
---|---|---|
ret | 整型 | 状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误 |
data | 对象或混合类型 | 业务数据,由各自接口指定,通常为对象 |
data.ret | 字符串 | 状态码 |
data.data | 字符串 | 流量统计数据 |
data.data[].time | 整型 | 时间 |
data.data[].ret | 整型 | 状态码的次数 |
msg | 字符串 | 提示信息,失败时的错误提示 |
在线测试
参数 | 是否必须 | 值 |
---|---|---|
service | 必须 | |
access_token | 可选 | |
start_time | 可选 | |
end_time | 可选 |
客户端请求示例
{
"ret": 200,
"data": [
{
"time": "2019-12-21 00:00:00",
"total": 0
},
{
"time": "2019-12-21 01:00:00",
"total": 0
},
{
"time": "2019-12-21 02:00:00",
"total": 0
},
{
"time": "2019-12-21 03:00:00",
"total": 0
},
{
"time": "2019-12-21 04:00:00",
"total": 0
},
{
"time": "2019-12-21 05:00:00",
"total": 0
},
{
"time": "2019-12-21 06:00:00",
"total": 0
},
{
"time": "2019-12-21 07:00:00",
"total": 0
},
{
"time": "2019-12-21 08:00:00",
"total": 0
},
{
"time": "2019-12-21 09:00:00",
"total": 0
},
{
"time": "2019-12-21 10:00:00",
"total": 0
},
{
"time": "2019-12-21 11:00:00",
"total": 0
},
{
"time": "2019-12-21 12:00:00",
"total": 0
},
{
"time": "2019-12-21 13:00:00",
"total": 0
},
{
"time": "2019-12-21 14:00:00",
"total": 0
},
{
"time": "2019-12-21 15:00:00",
"total": 0
},
{
"time": "2019-12-21 16:00:00",
"total": 0
},
{
"time": "2019-12-21 17:00:00",
"total": 0
},
{
"time": "2019-12-21 18:00:00",
"total": 0
},
{
"time": "2019-12-21 19:00:00",
"total": 0
},
{
"time": "2019-12-21 20:00:00",
"total": 0
},
{
"time": "2019-12-21 21:00:00",
"total": 0
},
{
"time": "2019-12-21 22:00:00",
"total": 0
},
{
"time": "2019-12-21 23:00:00",
"total": 0
},
{
"time": "2019-12-22 00:00:00",
"total": 0
},
{
"time": "2019-12-22 01:00:00",
"total": 0
},
{
"time": "2019-12-22 02:00:00",
"total": 0
},
{
"time": "2019-12-22 03:00:00",
"total": 0
},
{
"time": "2019-12-22 04:00:00",
"total": 0
},
{
"time": "2019-12-22 05:00:00",
"total": 0
},
{
"time": "2019-12-22 06:00:00",
"total": 0
},
{
"time": "2019-12-22 07:00:00",
"total": 0
},
{
"time": "2019-12-22 08:00:00",
"total": 0
},
{
"time": "2019-12-22 09:00:00",
"total": 0
},
{
"time": "2019-12-22 10:00:00",
"total": 0
},
{
"time": "2019-12-22 11:00:00",
"total": 0
},
{
"time": "2019-12-22 12:00:00",
"total": 0
},
{
"time": "2019-12-22 13:00:00",
"total": 0
},
{
"time": "2019-12-22 14:00:00",
"total": 0
},
{
"time": "2019-12-22 15:00:00",
"total": 0
},
{
"time": "2019-12-22 16:00:00",
"total": 0
},
{
"time": "2019-12-22 17:00:00",
"total": 0
},
{
"time": "2019-12-22 18:00:00",
"total": 0
},
{
"time": "2019-12-22 19:00:00",
"total": 0
},
{
"time": "2019-12-22 20:00:00",
"total": 0
},
{
"time": "2019-12-22 21:00:00",
"total": 0
},
{
"time": "2019-12-22 22:00:00",
"total": 0
},
{
"time": "2019-12-22 23:00:00",
"total": 0
},
{
"time": "2019-12-23 00:00:00",
"total": 0
},
{
"time": "2019-12-23 01:00:00",
"total": 0
},
{
"time": "2019-12-23 02:00:00",
"total": 0
},
{
"time": "2019-12-23 03:00:00",
"total": 0
},
{
"time": "2019-12-23 04:00:00",
"total": 0
},
{
"time": "2019-12-23 05:00:00",
"total": 0
},
{
"time": "2019-12-23 06:00:00",
"total": 0
},
{
"time": "2019-12-23 07:00:00",
"total": 0
},
{
"time": "2019-12-23 08:00:00",
"total": 0
},
{
"time": "2019-12-23 09:00:00",
"total": 0
},
{
"time": "2019-12-23 10:00:00",
"total": 0
},
{
"time": "2019-12-23 11:00:00",
"total": 0
},
{
"time": "2019-12-23 12:00:00",
"total": 0
},
{
"time": "2019-12-23 13:00:00",
"total": 0
},
{
"time": "2019-12-23 14:00:00",
"total": 0
},
{
"time": "2019-12-23 15:00:00",
"total": 0
},
{
"time": "2019-12-23 16:00:00",
"total": 0
},
{
"time": "2019-12-23 17:00:00",
"total": 0
},
{
"time": "2019-12-23 18:00:00",
"total": 0
},
{
"time": "2019-12-23 19:00:00",
"total": 0
},
{
"time": "2019-12-23 20:00:00",
"total": 0
},
{
"time": "2019-12-23 21:00:00",
"total": 0
},
{
"time": "2019-12-23 22:00:00",
"total": 0
},
{
"time": "2019-12-23 23:00:00",
"total": 0
},
{
"time": "2019-12-24 00:00:00",
"total": 0
},
{
"time": "2019-12-24 01:00:00",
"total": 0
},
{
"time": "2019-12-24 02:00:00",
"total": 0
},
{
"time": "2019-12-24 03:00:00",
"total": 0
},
{
"time": "2019-12-24 04:00:00",
"total": 0
},
{
"time": "2019-12-24 05:00:00",
"total": 0
},
{
"time": "2019-12-24 06:00:00",
"total": 0
},
{
"time": "2019-12-24 07:00:00",
"total": 0
},
{
"time": "2019-12-24 08:00:00",
"total": 0
},
{
"time": "2019-12-24 09:00:00",
"total": 0
},
{
"time": "2019-12-24 10:00:00",
"total": 0
},
{
"time": "2019-12-24 11:00:00",
"total": 0
},
{
"time": "2019-12-24 12:00:00",
"total": 0
},
{
"time": "2019-12-24 13:00:00",
"total": 0
},
{
"time": "2019-12-24 14:00:00",
"total": 0
},
{
"time": "2019-12-24 15:00:00",
"total": 0
},
{
"time": "2019-12-24 16:00:00",
"total": 0
},
{
"time": "2019-12-24 17:00:00",
"total": 0
},
{
"time": "2019-12-24 18:00:00",
"total": 0
},
{
"time": "2019-12-24 19:00:00",
"total": 0
},
{
"time": "2019-12-24 20:00:00",
"total": 0
},
{
"time": "2019-12-24 21:00:00",
"total": 0
},
{
"time": "2019-12-24 22:00:00",
"total": 0
},
{
"time": "2019-12-24 23:00:00",
"total": 0
},
{
"time": "2019-12-25 00:00:00",
"total": 0
},
{
"time": "2019-12-25 01:00:00",
"total": 0
},
{
"time": "2019-12-25 02:00:00",
"total": 0
},
{
"time": "2019-12-25 03:00:00",
"total": 0
},
{
"time": "2019-12-25 04:00:00",
"total": 0
},
{
"time": "2019-12-25 05:00:00",
"total": 0
},
{
"time": "2019-12-25 06:00:00",
"total": 0
},
{
"time": "2019-12-25 07:00:00",
"total": 0
},
{
"time": "2019-12-25 08:00:00",
"total": 0
},
{
"time": "2019-12-25 09:00:00",
"total": 0
},
{
"time": "2019-12-25 10:00:00",
"total": 0
},
{
"time": "2019-12-25 11:00:00",
"total": 0
},
{
"time": "2019-12-25 12:00:00",
"total": 0
},
{
"time": "2019-12-25 13:00:00",
"total": 0
},
{
"time": "2019-12-25 14:00:00",
"total": 0
},
{
"time": "2019-12-25 15:00:00",
"total": 0
},
{
"time": "2019-12-25 16:00:00",
"total": 0
},
{
"time": "2019-12-25 17:00:00",
"total": 0
},
{
"time": "2019-12-25 18:00:00",
"total": 0
},
{
"time": "2019-12-25 19:00:00",
"total": 0
},
{
"time": "2019-12-25 20:00:00",
"total": 0
},
{
"time": "2019-12-25 21:00:00",
"total": 0
},
{
"time": "2019-12-25 22:00:00",
"total": 0
},
{
"time": "2019-12-25 23:00:00",
"total": 0
},
{
"time": "2019-12-26 00:00:00",
"total": 0
},
{
"time": "2019-12-26 01:00:00",
"total": 0
},
{
"time": "2019-12-26 02:00:00",
"total": 0
},
{
"time": "2019-12-26 03:00:00",
"total": 0
},
{
"time": "2019-12-26 04:00:00",
"total": 0
},
{
"time": "2019-12-26 05:00:00",
"total": 0
},
{
"time": "2019-12-26 06:00:00",
"total": 0
},
{
"time": "2019-12-26 07:00:00",
"total": 0
},
{
"time": "2019-12-26 08:00:00",
"total": 0
},
{
"time": "2019-12-26 09:00:00",
"total": 0
},
{
"time": "2019-12-26 10:00:00",
"total": 0
},
{
"time": "2019-12-26 11:00:00",
"total": 0
},
{
"time": "2019-12-26 12:00:00",
"total": 0
},
{
"time": "2019-12-26 13:00:00",
"total": 0
},
{
"time": "2019-12-26 14:00:00",
"total": 0
},
{
"time": "2019-12-26 15:00:00",
"total": 0
},
{
"time": "2019-12-26 16:00:00",
"total": 0
},
{
"time": "2019-12-26 17:00:00",
"total": 0
},
{
"time": "2019-12-26 18:00:00",
"total": 0
},
{
"time": "2019-12-26 19:00:00",
"total": 0
},
{
"time": "2019-12-26 20:00:00",
"total": 0
},
{
"time": "2019-12-26 21:00:00",
"total": 1
},
{
"time": "2019-12-26 22:00:00",
"total": 0
},
{
"time": "2019-12-26 23:00:00",
"total": 0
},
{
"time": "2019-12-27 00:00:00",
"total": 0
},
{
"time": "2019-12-27 01:00:00",
"total": 0
},
{
"time": "2019-12-27 02:00:00",
"total": 0
},
{
"time": "2019-12-27 03:00:00",
"total": 0
},
{
"time": "2019-12-27 04:00:00",
"total": 0
},
{
"time": "2019-12-27 05:00:00",
"total": 0
},
{
"time": "2019-12-27 06:00:00",
"total": 0
},
{
"time": "2019-12-27 07:00:00",
"total": 2
},
{
"time": "2019-12-27 08:00:00",
"total": 0
},
{
"time": "2019-12-27 09:00:00",
"total": 0
},
{
"time": "2019-12-27 10:00:00",
"total": 0
},
{
"time": "2019-12-27 11:00:00",
"total": 0
},
{
"time": "2019-12-27 12:00:00",
"total": 0
},
{
"time": "2019-12-27 13:00:00",
"total": 0
},
{
"time": "2019-12-27 14:00:00",
"total": 1
},
{
"time": "2019-12-27 15:00:00",
"total": 13
},
{
"time": "2019-12-27 16:00:00",
"total": 9
},
{
"time": "2019-12-27 17:00:00",
"total": 9
},
{
"time": "2019-12-27 18:00:00",
"total": 0
},
{
"time": "2019-12-27 19:00:00",
"total": 0
},
{
"time": "2019-12-27 20:00:00",
"total": 0
},
{
"time": "2019-12-27 21:00:00",
"total": 0
},
{
"time": "2019-12-27 22:00:00",
"total": 0
},
{
"time": "2019-12-27 23:00:00",
"total": 0
},
{
"time": "2019-12-28 00:00:00",
"total": 0
},
{
"time": "2019-12-28 01:00:00",
"total": 0
},
{
"time": "2019-12-28 02:00:00",
"total": 0
},
{
"time": "2019-12-28 03:00:00",
"total": 0
},
{
"time": "2019-12-28 04:00:00",
"total": 0
},
{
"time": "2019-12-28 05:00:00",
"total": 0
},
{
"time": "2019-12-28 06:00:00",
"total": 0
},
{
"time": "2019-12-28 07:00:00",
"total": 0
},
{
"time": "2019-12-28 08:00:00",
"total": 0
},
{
"time": "2019-12-28 09:00:00",
"total": 0
},
{
"time": "2019-12-28 10:00:00",
"total": 0
},
{
"time": "2019-12-28 11:00:00",
"total": 0
},
{
"time": "2019-12-28 12:00:00",
"total": 0
},
{
"time": "2019-12-28 13:00:00",
"total": 0
},
{
"time": "2019-12-28 14:00:00",
"total": 0
},
{
"time": "2019-12-28 15:00:00",
"total": 0
},
{
"time": "2019-12-28 16:00:00",
"total": 0
},
{
"time": "2019-12-28 17:00:00",
"total": 0
},
{
"time": "2019-12-28 18:00:00",
"total": 0
},
{
"time": "2019-12-28 19:00:00",
"total": 0
},
{
"time": "2019-12-28 20:00:00",
"total": 0
},
{
"time": "2019-12-28 21:00:00",
"total": 0
},
{
"time": "2019-12-28 22:00:00",
"total": 0
},
{
"time": "2019-12-28 23:00:00",
"total": 0
}
],
"msg": ""
}
错误列表
错误状态码 | 错误描述信息 |
---|---|
400 | ret=400,客户端参数错误或非法请求 |
404 | 表示接口服务不存在 |
406 | ret=406,access_token令牌校验不通过 |
407 | ret=407,app_key权限不足,或未知应用 |
408 | ret=408,当前用户禁止使用,或用户未登录 |
500 | 表示服务端内部错误 |
本文档生成时间:2025-01-16 21:56:39