页面路径
优质
小牛编辑
137浏览
2023-12-01
功能介绍
获取页面路径报告数据,包括表格详情数据与趋势数据,所获取数据与 https://mtj.baidu.com 中报告数据一致
接口
https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey
此处仅列本接口特有参数,公共参数请参考报告级API说明
参数名 | 参数类型 | 是否必须 | 描述 |
---|---|---|---|
method | string | 是 | visit/path/flow |
示例
获取页面路径数据
请求
https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey?access_token=[ACCESS_TOKEN]&key=[APPKEY]&method=visit/path/flow&start-date=20171107000000&end-date=20171108232359
响应
{
"status": 0,
"msg": "",
"data": {
"page": {
"id": "130722*******719220",
"name": "搜索页",
"pv_count": 5944,
"average_stay_time": 21,
"bounce_ratio": 20.66,
"exit_count": "1228"
},
"list": [
{
"id": "1307222942698719220",
"name": "搜索页"
},
{
"id": "3832653999733786092",
"name": "2.0首页精彩推荐tab"
}
],
"down_page": [
{
"fields": [
"visit_next_page_title",
"next_alias_title",
"next_count",
"next_ratio"
],
"items": [
[
{
"id": "1331578830572162377",
"name": "在线词条页"
},
"1986",
33.41
],
[
{
"id": "18265901616402187450",
"name": "2.0搜索结果页"
},
"1118",
18.81
]
]
},
{
"fields": [
"visit_next_page_title",
"next_alias_title",
"next_count",
"next_ratio"
],
"items": [
[
{
"id": "1307222942698719220",
"name": "搜索页"
},
"1617",
21.98
],
[
{
"id": "387133791190689752",
"name": "图片页(不含翻页)"
},
"123",
1.67
]
]
}
]
}
}