1.3.2.1 网站概况(趋势数据)
优质
小牛编辑
133浏览
2023-12-01
网站概况(趋势数据)
关键参数
报告 | method | metrics(指标, 数据单位) | 其他参数 |
---|---|---|---|
网站概况(趋势数据) | overview/getTimeTrendRpt | pv_count (浏览量PV) visitor_count (访客数UV) ip_count (IP 数) bounce_ratio (跳出率,%) avg_visit_time (平均访问时长,秒) trans_count (转化次数) | 无 |
示例
查询站点从20190101到20190105的浏览量、访客数、IP数
- 百度商业账号
请求
{
"header": {
"username": "zhangsan",
"password": "xxxxxxxx",
"token": "xxxxxxxx",
"account_type": 1
},
"body": {
"site_id": "xxxx",
"start_date": "20190101",
"end_date": "20190105",
"metrics": "pv_count,visitor_count,ip_count",
"method": "overview/getTimeTrendRpt"
}
}
响应
{
"header": {
"desc": "success",
"failures": [],
"oprs": 1,
"succ": 1,
"oprtime": 0,
"quota": 1,
"rquota": 49996,
"status": 0
},
"body": {
"data": [
{
"result": {
"items": [
[
[
"2019/01/01"
],
[
"2019/01/02"
],
[
"2019/01/03"
],
[
"2019/01/04"
],
[
"2019/01/05"
]
],
[
[
"--",
"--",
"--"
],
[
"--",
"--",
"--"
],
[
"--",
"--",
"--"
],
[
3,
1,
1
],
[
11,
6,
6
]
],
[],
[]
],
"timeSpan": [
"2019/01/01 - 2019/01/05"
],
"fields": [
"simple_date_title",
"pv_count",
"visitor_count",
"ip_count"
]
}
}
]
}
}
- 百度账号
请求
https://openapi.baidu.com/rest/2.0/tongji/report/getData?access_token=xxxxxxxx&site_id=xxxx&method=overview/getTimeTrendRpt&start_date=20190101&end_date=20190105&metrics=pv_count,visitor_count,ip_count
响应
{
"result": {
"items": [
[
[
"2019/01/01"
],
[
"2019/01/02"
],
[
"2019/01/03"
],
[
"2019/01/04"
],
[
"2019/01/05"
]
],
[
[
"--",
"--",
"--"
],
[
"--",
"--",
"--"
],
[
"--",
"--",
"--"
],
[
3,
1,
1
],
[
11,
6,
6
]
],
[],
[]
],
"timeSpan": [
"2019/01/01 - 2019/01/05"
],
"fields": [
"simple_date_title",
"pv_count",
"visitor_count",
"ip_count"
]
}
}