页面路径

功能介绍

获取页面路径报告数据,包括表格详情数据与趋势数据,所获取数据与 https://mtj.baidu.com 中报告数据一致

接口

  1. https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey

此处仅列本接口特有参数,公共参数请参考报告级API说明

参数名参数类型是否必须描述
methodstringvisit/path/flow

示例

获取页面路径数据

请求

  1. 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

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "page": {
  6. "id": "130722*******719220",
  7. "name": "搜索页",
  8. "pv_count": 5944,
  9. "average_stay_time": 21,
  10. "bounce_ratio": 20.66,
  11. "exit_count": "1228"
  12. },
  13. "list": [
  14. {
  15. "id": "1307222942698719220",
  16. "name": "搜索页"
  17. },
  18. {
  19. "id": "3832653999733786092",
  20. "name": "2.0首页精彩推荐tab"
  21. }
  22. ],
  23. "down_page": [
  24. {
  25. "fields": [
  26. "visit_next_page_title",
  27. "next_alias_title",
  28. "next_count",
  29. "next_ratio"
  30. ],
  31. "items": [
  32. [
  33. {
  34. "id": "1331578830572162377",
  35. "name": "在线词条页"
  36. },
  37. "1986",
  38. 33.41
  39. ],
  40. [
  41. {
  42. "id": "18265901616402187450",
  43. "name": "2.0搜索结果页"
  44. },
  45. "1118",
  46. 18.81
  47. ]
  48. ]
  49. },
  50. {
  51. "fields": [
  52. "visit_next_page_title",
  53. "next_alias_title",
  54. "next_count",
  55. "next_ratio"
  56. ],
  57. "items": [
  58. [
  59. {
  60. "id": "1307222942698719220",
  61. "name": "搜索页"
  62. },
  63. "1617",
  64. 21.98
  65. ],
  66. [
  67. {
  68. "id": "387133791190689752",
  69. "name": "图片页(不含翻页)"
  70. },
  71. "123",
  72. 1.67
  73. ]
  74. ]
  75. }
  76. ]
  77. }
  78. }