获取用户维度下按天统计的观众量
更新时间:2020-9-30
1. v2版本
接口描述
该接口用于获取用户维度下按天统计的观众量,请求参数和v1相同,返回数据中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=1671539406317&userid=CC443A6686737xxx&hash=34CE3426FCBAB09508E3BF08B3AA4172&start_date=2016-10-18
返回数据
名称 | 类型 | 说明 |
---|---|---|
unique_visitors | Object | 观众量。 |
unique_visitors说明
名称 | 类型 | 说明 |
---|---|---|
unique_visitor | Array | 观众量信息。 |
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-移动端观众量。 |
返回示例
{
"unique_visitors": {
"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/uniquevisitor/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=1671539406317&userid=CC443A6686737xxx&hash=34CE3426FCBAB09508E3BF08B3AA4172&start_date=2016-10-18
返回数据
名称 | 类型 | 说明 |
---|---|---|
unique_visitors | Object | 观众量。 |
unique_visitors说明
名称 | 类型 | 说明 |
---|---|---|
unique_visitor | Array | 观众量信息。 |
unique_visitor说明
名称 | 类型 | 说明 |
---|---|---|
date | String | 表示天的日期时间。 |
total | Integer | 总观众量。 |
pc | Integer | PC端观众量。 |
mobile | Integer | 移动端观众量。 |
返回示例
{
"unique_visitors": {
"unique_visitor": [
{
"date": "2016-10-18",
"total": 30000,
"pc": 10000,
"mobile": 20000
},
{
"date": "2016-10-19",
"total": 40000,
"pc": 15000,
"mobile": 25000
}
]
}
}