个体洞察

功能介绍

获取个体洞察报告数据,包括表格详情数据与趋势数据,所获取数据与 https://mtj.baidu.com 中报告数据一致

接口

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

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

获取表格数据

参数名参数类型是否必须描述
methodstringsample/a
sessionTypeint访客类型(0:近期访客,1:在线访客)

示例

获取个体洞察数据

请求

  1. https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey?access_token=[ACCESS_TOKEN]&key=[APPKEY]&method=sample/a

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "offset": 0,
  6. "fields": [
  7. "session_start_time",
  8. "sample_version",
  9. "sample_channel",
  10. "sample_area",
  11. "first_page",
  12. "last_page",
  13. "session_duration",
  14. "session_depth"
  15. ],
  16. "total": 300,
  17. "items": [
  18. [
  19. [
  20. {
  21. "start_time": "2017/11/08 12:54:11",
  22. "os_version": "iOS 10.2",
  23. "device": "iPhone 5s",
  24. "screen": "640*1136",
  25. "network": "WIFI",
  26. "pages": [
  27. {
  28. "duration": 0,
  29. "page": "logsHomePagePv",
  30. "alias": "2.0首页精彩推荐tab"
  31. },
  32. {
  33. "duration": 1,
  34. "page": "searchindex",
  35. "alias": "搜索页"
  36. },
  37. {
  38. "duration": 3,
  39. "page": "summary_view",
  40. "alias": "目录页"
  41. },
  42. {
  43. "duration": 3,
  44. "page": "summary_view",
  45. "alias": "目录页"
  46. },
  47. {
  48. "duration": 1,
  49. "page": "summary_view",
  50. "alias": "目录页"
  51. },
  52. {
  53. "duration": 4,
  54. "page": "searchindex",
  55. "alias": "搜索页"
  56. }
  57. ]
  58. }
  59. ],
  60. [
  61. {
  62. "start_time": "2017/11/08 12:53:10",
  63. "os_version": "iOS 10.2",
  64. "device": "iPhone 5s",
  65. "screen": "640*1136",
  66. "network": "WIFI",
  67. "pages": [
  68. {
  69. "duration": 0,
  70. "page": "logsHomePagePv",
  71. "alias": "2.0首页精彩推荐tab"
  72. },
  73. {
  74. "duration": 10,
  75. "page": "searchindex",
  76. "alias": "搜索页"
  77. },
  78. {
  79. "duration": 2,
  80. "page": "online_view",
  81. "alias": "在线词条页"
  82. },
  83. {
  84. "duration": 0,
  85. "page": "searchindex",
  86. "alias": "搜索页"
  87. },
  88. {
  89. "duration": 6,
  90. "page": "searchindex",
  91. "alias": "搜索页"
  92. }
  93. ]
  94. }
  95. ]
  96. ...
  97. ],
  98. [
  99. [
  100. "2.0.1",
  101. "1.2+AppStore",
  102. "广西",
  103. "2.0首页精彩推荐tab",
  104. "搜索页",
  105. "69",
  106. "6"
  107. ],
  108. [
  109. "2.0.1",
  110. "1.2+AppStore",
  111. "广西",
  112. "2.0首页精彩推荐tab",
  113. "搜索页",
  114. "47",
  115. "5"
  116. ],
  117. ...
  118. ]
  119. ]
  120. }
  121. }