获取观众观看流水_V2

优质
小牛编辑
127浏览
2023-12-01

请求header

 POST /v2/activities/{频道id}/userRecordList
 Authorization:Bearer {ACCESS TOKEN}
 Content-Type:application/json

注:

请将上方的{ACCESS TOKEN}替换为您的ACCESS TOKEN

请将"{频道id}"替换您需要获取的频道id

{
     "start_time" : "2016-12-28 19:00:00",
     "end_time" : "2016-12-29 09:55:48",
     "perPage" : 10,
     "p" : 1,
     "filter_watch_time" : 1
 }

payload参数说明

参数参数说明参数类型是否必填备注
start_time指定开始时间datetime如:2016-12-20 10:00:00
end_time指定结束时间datetime如:2016-12-22 18:00:00
perPage每页结果数integer默认20,最大100
p页码integer默认1
filter_watch_time是否过滤未观看观众
1为是,0为否
integer默认0

返回

   {
       "total_num":2,
       "total_page":1,
       "page_num":1,
       "page_size":20,
       "results":[
           {
               "record_id":100,
               "assign_id":"第三方id",
               "user_id":"123",
               "outer_id": "",
               "nick":"浙江省网友",
               "addr":"浙江杭州",
               "online_time":"00:02:00",
               "watch_time":"00:01:00",
               "live_time":"00:01:00",
               "vod_time":"00:01:00",
               "phone":"13000000000",
               "first_login_time":"2018-03-15 15:33",
               "last_online_time":"2018-03-15 15:34",
               "device":"移动端",
               "browser":"QQ浏览器",
               "origin":"直接访问"
           },
           {
               "record_id":101,
               "assign_id":"第三方id",
               "user_id":"456",
               "outer_id": "",
               "nick":"江苏省网友",
               "addr":"江苏南京",
               "online_time":"00:06:00",
               "watch_time":"00:05:00",
               "live_time":"00:05:00",
               "vod_time":"00:05:00",
               "phone":"13000000000",
               "first_login_time":"2018-03-15 13:31",
               "last_online_time":"2018-03-15 13:36",
               "device":"电脑端",
               "browser":"谷歌浏览器",
               "origin":"直接访问"
           }
       ]
   }

返回参数说明

参数描述类型
total_num总数integer
total_page总页数integer
page_num当前页integer
page_size每页数量integer
record_id观众观看流水idinteger
user_id观众idstring
assign_id赋予观众idstring
outer_id外部账号idstring
nick观众昵称string
addr观众地址string
online_time在线时长datetime
watch_time观看时长datetime
live_time直播观看时长datetime
vod_time点播观看时长datetime
phone手机号string
first_login_time进入时间datetime
last_online_time离线时间datetime
device观看设备string
browser观看方式string
origin访问来源string