活跃用户

功能介绍

获取本APP的活跃用户报告数据

接口

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

请求参数

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

获取表格数据

参数名参数类型是否必须描述
methodstringactivitydegree/a ; activitydegree/f
metricsstring指标列表,指标间逗号分隔

指标

指标名描述适用接口
user_count启动用户activitydegree/a,activitydegree/f
daily_activity_degree日活跃度activitydegree/a
day_month_activity_degree日活/月活activitydegree/a,activitydegree/f
weekly_user_count周活跃用户activitydegree/a
weekly_activity_degree周活跃度activitydegree/a
monthly_user_count月活跃用户activitydegree/a
monthly_activity_degree月活跃度activitydegree/a
monthly_silent_user_count月沉默用户activitydegree/a
monthly_silence_ratio月沉默率activitydegree/a
lost_user_count流失用户activitydegree/a
lost_ratio流失率activitydegree/a
accumulative_user_count累计启动用户activitydegree/a,activitydegree/f

示例

获取活跃用户报表数据

请求

  1. https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey?access_token=[ACCESS_TOKEN]&key=[APP_KEY]&method=activitydegree/a&start-date=20170101000000&end-date=20170101232359&metrics=user_count,daily_activity_degree,day_month_activity_degree,weekly_user_count,weekly_activity_degree,monthly_user_count,monthly_activity_degree,monthly_silent_user_count,monthly_silence_ratio,lost_user_count,lost_ratio,accumulative_user_count

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "offset": 0,
  6. "timeSpan": [
  7. "2017/11/02 - 2017/11/08"
  8. ],
  9. "fields": [
  10. "simple_date_title",
  11. "user_count",
  12. "daily_activity_degree",
  13. "day_month_activity_degree",
  14. "weekly_user_count",
  15. "weekly_activity_degree",
  16. "monthly_user_count",
  17. "monthly_activity_degree",
  18. "monthly_silent_user_count",
  19. "monthly_silence_ratio",
  20. "lost_user_count",
  21. "lost_ratio",
  22. "accumulative_user_count"
  23. ],
  24. "total": 7,
  25. "sum": [
  26. [
  27. 46903169,
  28. 2.49,
  29. 20.58,
  30. 149742884,
  31. 7.94,
  32. 227869856,
  33. 12.09,
  34. 1656993216,
  35. 87.91,
  36. 1598766103,
  37. 84.82,
  38. 1884863072
  39. ],
  40. []
  41. ],
  42. "pageSum": [],
  43. "items": [
  44. [
  45. [
  46. "2017/11/08"
  47. ],
  48. [
  49. "2017/11/07"
  50. ],
  51. [
  52. "2017/11/06"
  53. ],
  54. [
  55. "2017/11/05"
  56. ],
  57. [
  58. "2017/11/04"
  59. ],
  60. [
  61. "2017/11/03"
  62. ],
  63. [
  64. "2017/11/02"
  65. ]
  66. ],
  67. [
  68. [
  69. 46903169,
  70. 2.49,
  71. 20.58,
  72. 149742884,
  73. 7.94,
  74. 227869856,
  75. 12.09,
  76. 1656993216,
  77. 87.91,
  78. 1598766103,
  79. 84.82,
  80. 1884863072
  81. ],
  82. [
  83. 72700344,
  84. 3.86,
  85. 31.72,
  86. 153250704,
  87. 8.13,
  88. 229208931,
  89. 12.16,
  90. 1655184397,
  91. 87.84,
  92. 1597052847,
  93. 84.75,
  94. 1884393328
  95. ],
  96. [
  97. 71689616,
  98. 3.81,
  99. 31.18,
  100. 153135303,
  101. 8.13,
  102. 229913258,
  103. 12.21,
  104. 1653347831,
  105. 87.79,
  106. 1595819287,
  107. 84.74,
  108. 1883261089
  109. ],
  110. [
  111. 75675141,
  112. 4.02,
  113. 32.81,
  114. 152982280,
  115. 8.13,
  116. 230632135,
  117. 12.25,
  118. 1651520011,
  119. 87.75,
  120. 1594625110,
  121. 84.72,
  122. 1882152146
  123. ],
  124. [
  125. 75034813,
  126. 3.99,
  127. 32.51,
  128. 153172716,
  129. 8.14,
  130. 230804422,
  131. 12.27,
  132. 1649980608,
  133. 87.73,
  134. 1593477419,
  135. 84.72,
  136. 1880785030
  137. ],
  138. [
  139. 72409445,
  140. 3.85,
  141. 31.35,
  142. 153172771,
  143. 8.15,
  144. 230987414,
  145. 12.29,
  146. 1648379959,
  147. 87.71,
  148. 1592334192,
  149. 84.73,
  150. 1879367373
  151. ],
  152. [
  153. 72014867,
  154. 3.83,
  155. 31.07,
  156. 152823673,
  157. 8.14,
  158. 231799893,
  159. 12.34,
  160. 1646369287,
  161. 87.66,
  162. 1591156058,
  163. 84.72,
  164. 1878169180
  165. ]
  166. ],
  167. [],
  168. []
  169. ]
  170. }
  171. }