1.3.2.4 趋势分析
优质
小牛编辑
131浏览
2023-12-01
趋势分析
关键参数
报告 | method | metrics(指标, 数据单位) | 其他参数 |
---|---|---|---|
趋势分析 | trend/time/a | pv_count (浏览量(PV)) pv_ratio (浏览量占比,%) visit_count (访问次数) visitor_count (访客数(UV)) new_visitor_count (新访客数) new_visitor_ratio (新访客比率,%) ip_count (IP 数) bounce_ratio (跳出率,%) avg_visit_time (平均访问时长,秒) avg_visit_pages (平均访问页数) trans_count (转化次数) trans_ratio (转化率,%) avg_trans_cost (平均转化成本,元) income (收益,元) profit (利润,元) roi (投资回报率,%) | gran(时间粒度) source(来源类型) clientDevice(设备类型) area(地域) visitor(访客类型) |
示例
查询站点从20190101到20190105的浏览量、平均访问时长,其中过滤条件要求设备为PC电脑、来源为直接访问、地点为中国境内。
- 百度商业账号
请求
{
"header": {
"username": "zhangsan",
"password": "xxxxxxxx",
"token": "xxxxxxxx",
"account_type": 1
},
"body": {
"site_id": "xxxx",
"start_date": "20190101",
"end_date": "20190105",
"metrics": "pv_count,avg_visit_time",
"method": "trend/time/a",
"gran": "day",
"source": "through",
"clientDevice": "pc",
"area": "china"
}
}
响应
{
"header": {
"desc": "success",
"failures": [],
"oprs": 1,
"succ": 1,
"oprtime": 0,
"quota": 1,
"rquota": 49951,
"status": 0
},
"body": {
"data": [
{
"result": {
"total": 24,
"items": [
[
[
"23:00 - 23:59"
],
[
"22:00 - 22:59"
],
[
"21:00 - 21:59"
],
[
"20:00 - 20:59"
],
[
"19:00 - 19:59"
],
[
"18:00 - 18:59"
],
[
"17:00 - 17:59"
],
[
"16:00 - 16:59"
],
[
"15:00 - 15:59"
],
[
"14:00 - 14:59"
],
[
"13:00 - 13:59"
],
[
"12:00 - 12:59"
],
[
"11:00 - 11:59"
],
[
"10:00 - 10:59"
],
[
"09:00 - 09:59"
],
[
"08:00 - 08:59"
],
[
"07:00 - 07:59"
],
[
"06:00 - 06:59"
],
[
"05:00 - 05:59"
],
[
"04:00 - 04:59"
],
[
"03:00 - 03:59"
],
[
"02:00 - 02:59"
],
[
"01:00 - 01:59"
],
[
"00:00 - 00:59"
]
],
[
[
3,
8
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
3,
421
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
8,
110
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
],
[
"--",
"--"
]
],
[],
[]
],
"timeSpan": [
"2019/01/01 - 2019/01/05"
],
"sum": [
[
14,
140
],
[]
],
"offset": 0,
"pageSum": [
[
14,
140
],
[],
[]
],
"fields": [
"simple_date_title",
"pv_count",
"avg_visit_time"
]
}
}
]
}
}
- 百度账号
请求
https://openapi.baidu.com/rest/2.0/tongji/report/getData?access_token=xxxxxxxx&site_id=xxxx&method=trend/time/a&start_date=20190101&end_date=20190105&metrics=pv_count,avg_visit_time&gran=day&source=through&clientDevice=pc&area=china
响应
略