获取用户维度下按天统计的新增观众量
更新时间:2020-9-30
1. v2版本
接口描述
该接口用于获取用户维度下按天统计的新增观众量,请求参数和v1相同,返回数据中new_unique_visitor包含字段和v1有所不同。
请求地址
https://spark.bokecc.com/api/stats/uniquevisitor/user/daily/v2
请求方式
GET
请求参数
以下请求参数需要进行THQS权限认证, 权限认证方式请参考THQS认证方式。
名称 |
类型 |
必填 |
描述 |
userid |
String |
是 |
用户ID。 |
start_date |
String |
是 |
查询开始日期(含),格式:yyyy-MM-dd。 |
end_date |
String |
是 |
查询结束日期(含),日期不能大于今日,格式为yyyy-MM-dd。 注:end_date与start_date之间的差值最多为30。 |
请求示例
https://spark.bokecc.com/api/stats/uniquevisitor/user/daily/v2?end_date=2016-10-19&time=1671541750466&userid=CC443A6686737xxx&hash=D1AA030330E35BCD2665CD05BD652AC2&start_date=2016-10-18
返回数据
名称 |
类型 |
说明 |
new_unique_visitors |
Object |
新增观众量。 |
new_unique_visitors说明
名称 |
类型 |
说明 |
new_unique_visitor |
Array |
新增观众量信息。 |
new_unique_visitor说明
名称 |
类型 |
说明 |
date |
String |
表示天的时间字符串,格式:yyyy-MM-dd。 |
total |
Integer |
全终端新增观众量。 |
flash |
Integer |
Flash端新增观众量。 |
pc_h5 |
Integer |
H5-PC端新增观众量。 |
android |
Integer |
Android端新增观众量。 |
ios |
Integer |
iOS端新增观众量。 |
mobile_h5 |
Integer |
H5-移动端新增观众量。 |
返回示例
{
"new_unique_visitors": {
"new_unique_visitor": [
{
"date": "2016-10-18",
"total": 70000,
"flash": 10000,
"pc_h5": 20000,
"android": 10000,
"ios": 10000,
"mobile_h5": 20000
},
{
"date": "2016-10-19",
"total": 120000,
"flash": 20000,
"pc_h5": 30000,
"android": 20000,
"ios": 20000,
"mobile_h5": 30000
}
]
}
}
2. v1版本
接口描述
该接口用于获取用户维度下按天统计的新增观众量。
请求地址
https://spark.bokecc.com/api/stats/newuniquevisitor/user/daily
请求方式
GET
请求参数
以下请求参数需要进行THQS权限认证, 权限认证方式请参考THQS认证方式。
名称 |
类型 |
必填 |
描述 |
userid |
String |
是 |
用户ID。 |
start_date |
String |
是 |
查询开始日期(含),格式:yyyy-MM-dd。 |
end_date |
String |
是 |
查询结束日期(含),日期不能大于今日,格式为yyyy-MM-dd。 注:end_date与start_date之间的差值最多为30。 |
请求示例
https://spark.bokecc.com/api/stats/uniquevisitor/user/daily?end_date=2016-10-19&time=1671541750466&userid=CC443A6686737xxx&hash=D1AA030330E35BCD2665CD05BD652AC2&start_date=2016-10-18
返回数据
名称 |
类型 |
说明 |
new_unique_visitors |
Object |
新增观众量。 |
new_unique_visitors说明
名称 |
类型 |
说明 |
new_unique_visitor |
Array |
新增观众量信息。 |
new_unique_visitor说明
名称 |
类型 |
说明 |
date |
String |
表示天的日期时间。 |
total |
Integer |
总新增观众量。 |
pc |
Integer |
PC端新增观众量。 |
mobile |
Integer |
移动端新增观众量。 |
返回示例
{
"new_unique_visitors": {
"new_unique_visitor": [
{
"date": "2016-10-18",
"total": 30000,
"pc": 10000,
"mobile": 20000
},
{
"date": "2016-10-19",
"total": 40000,
"pc": 15000,
"mobile": 25000
}
]
}
}