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