播放比例统计

1、获取用户维度下按天统计的播放比例,该接口提供多天的数据查询,返回为汇总结果。地址为:

a. https://spark.bokecc.com/api/stats/attention/user/daily

需要传递以下参数:

参数 说明
userid 用户 id,不可为空
start_date 查询开始日期(含),格式为yyyy-MM-dd,不可为空
end_date 查询结束日期(含),日期不能大于今日,格式为yyyy-MM-dd,不可为空 注:end_date与start_date之间的差值最多为30

返回数据attentions包含如下字段:

字段名 说明
attention 播放比例信息

attention包含如下字段:

字段名 说明
section 视频播放比例分布区间
pc 所属区间产生的PC端观众量
mobile 所属区间产生的移动端观众量

JSON格式的返回信息如下:

{
    "attentions":{
        "attention":[
            {
                "section":"[0-10)",     
                "pc":10000,
                "mobile":8000
            },
            …
            {
                "section":"[90-100]",     
                "pc":9000,
                "mobile":4000
            }
        ]
    }
}

b: https://spark.bokecc.com/api/stats/attention/user/daily/v2

入参和接口a保持一致,返回值中attention包含字段和接口a有所不同,具体如下:

返回数据attention包含如下字段:

字段名 说明
section 播放比例分布区间,表示播完百分比。
flash Flash端播放量
pc_h5 H5-PC端播放量
android Android端播放量
ios iOS端播放量
mobile_h5 H5-移动端播放量

JSON格式的返回信息如下:

{
    "attentions":{
        “attention":[
            {
                “section”:”[0-10]”,  
                “flash”:10000,   
                “pc_h5”:10000,
                “android”:10000,
                “ios”:10000,
                “mobile_h5":8000
            },
            …
            {
                “section”:”[90-100]”,     
                “flash”:10000,   
                “pc_h5”:10000,
                “android”:10000,
                “ios”:10000,
                “mobile_h5":8000
            }
        ]
    }
}

2、获取视频维度下按天统计的播放比例,该接口提供多天的数据查询,返回为汇总结果。地址为:

a. https://spark.bokecc.com/api/stats/attention/video/daily

需要传递以下参数:

参数 说明
userid 用户id,不可为空
videoid 视频id,不可为空
start_date 查询开始日期(含),格式为yyyy-MM-dd,不可为空
end_date 查询结束日期(含),日期不能大于今日,格式为yyyy-MM-dd,不可为空 注:end_date与start_date之间的差值最多为30

返回数据attentions包含如下字段:

字段名 说明
attention 观众量信息

attention包含如下字段:

字段名 说明
section 视频播放比例分布区间
pc 所属区间产生的PC端观众量
mobile 所属区间产生的移动端观众量

JSON格式的返回信息如下:

{
    "attentions":{
        "attention":[
            {
                "section":"[0-10)",     
                "pc":10000,
                "mobile":8000
            },
            …
            {
                "section":"[90-100]",     
                "pc":9000,
                "mobile":4000
            }
        ]
    }
}

b: https://spark.bokecc.com/api/stats/attention/video/daily/v2

入参和接口a保持一致,返回值中attention包含字段和接口a有所不同,具体如下:

返回数据attention包含如下字段:

字段名 说明
section 播放比例分布区间,表示播完百分比。
flash Flash端播放量
pc_h5 H5-PC端播放量
android Android端播放量
ios iOS端播放量
mobile_h5 H5-移动端播放量

JSON格式的返回信息如下:

{
    "attentions":{
        “attention":[
            {
                “section”:”[0-10]”,  
                “flash”:10000,   
                “pc_h5”:10000,
                “android”:10000,
                “ios”:10000,
                “mobile_h5":8000
            },
            …
            {
                “section”:”[90-100]”,     
                “flash”:10000,   
                “pc_h5”:10000,
                “android”:10000,
                “ios”:10000,
                “mobile_h5":8000
            }
        ]
    }
}

results matching ""

    No results matching ""