获取用户自定义ID小时维度的流量详情数据
更新时间:2025-4-17
接口描述
该接口用于获取用户自定义ID小时维度的流量详情数据(仅能查询2018年10月16日及以后的数据)。
由于数据量较大,因此不存在播放数据的时间点,不再返回数据。
请求地址
https://spark.bokecc.com/api/traffic/user/custom/detail/hourly
请求方式
GET
请求参数
以下请求参数需要进行THQS权限认证, 权限认证方式请参考THQS认证方式。
名称 |
类型 |
必填 |
描述 |
userid |
String |
是 |
用户ID。 |
customid |
String |
是 |
自定义ID。 |
date |
String |
是 |
查询日期,格式:yyyy-MM-dd。 注:查询日期不能小于2018年10月16日,不能大于当前日期。 |
请求示例
https://spark.bokecc.com/api/traffic/user/custom/detail/hourly?date=2018-10-16&time=1673319895210&customid=0123456&userid=xxxxxx&hash=DE14DF78598F739196B19C7970DA66AB
返回数据
名称 |
类型 |
说明 |
traffics |
Object |
流量。 |
traffics说明
名称 |
类型 |
说明 |
traffic |
Array |
流量数据。 |
traffic说明
名称 |
类型 |
说明 |
time |
String |
统计小时时间,格式HH:mm:ss |
details |
Array |
流量详情数据 |
details说明
名称 |
类型 |
说明 |
videoId |
String |
视频ID |
pc |
Long |
pc端流量,单位:B。 |
mobile |
Long |
移动端流量,单位:B。 |
返回示例
{
"traffics": {
"traffic": [
{
"details": [
{
"videoId": "xxx",
"pc": 0,
"mobile": 21405342
},
{
"videoId": "xxx",
"pc": 214053,
"mobile": 5342
}
],
"time": "09:00:00"
},
{
"details": [
{
"videoId": "xxx",
"pc": 0,
"mobile": 243166069
}
],
"time": "18:00:00"
}
]
}
}