渠道分析

功能介绍

获取本APP的渠道分析报告相关数据

接口

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

请求参数

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

获取表格数据

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

指标

指标名描述适用接口
new_user_count_channel本渠道新用户channel/a
brand_new_user_count_channel新用户channel/a,channel/f
session_count_channel启动次数channel/a,channel/f
user_count_channel启动用户channel/a,channel/f
average_session_time_channel平均使用时长channel/a,channel/f

对于channel/f的请求,其channel参数必填;对于channel/a的请求,其channel参数无效

示例

获取活跃留存用户数报表

请求

  1. https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey?access_token=[ACCESS_TOKEN]&key=[APP_KEY]&method=channel/a&start-date=20170101000000&end-date=20170101232359&metrics=new_user_count_channel,brand_new_user_count_channel,session_count_channel,user_count_channel,average_session_time_channel

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "offset": 0,
  6. "timeSpan": [
  7. "2017/11/02 - 2017/11/08"
  8. ],
  9. "fields": [
  10. "channel_title",
  11. "new_user_count_channel",
  12. "brand_new_user_count_channel",
  13. "session_count_channel",
  14. "user_count_channel",
  15. "average_session_time_channel"
  16. ],
  17. "total": 4929,
  18. "sum": [
  19. [
  20. "--",
  21. "--",
  22. "--",
  23. "--",
  24. "--"
  25. ],
  26. []
  27. ],
  28. "pageSum": [],
  29. "items": [
  30. [
  31. [
  32. {
  33. "channelId": "0",
  34. "channelName": "未知",
  35. "channelOriginalName": "未知"
  36. }
  37. ],
  38. [
  39. {
  40. "channelId": "3760840152507167029",
  41. "channelName": "1014517c",
  42. "channelOriginalName": "1014517c"
  43. }
  44. ],
  45. [
  46. {
  47. "channelId": "3544385895416215857",
  48. "channelName": "1001190c",
  49. "channelOriginalName": "1001190c"
  50. }
  51. ],
  52. [
  53. {
  54. "channelId": "3544385895449964599",
  55. "channelName": "1001703e",
  56. "channelOriginalName": "1001703e"
  57. }
  58. ],
  59. [
  60. {
  61. "channelId": "3760840152473350454",
  62. "channelName": "1014613a",
  63. "channelOriginalName": "1014613a"
  64. }
  65. ],
  66. [
  67. {
  68. "channelId": "3472328301344928056",
  69. "channelName": "1000813a",
  70. "channelOriginalName": "1000813a"
  71. }
  72. ],
  73. [
  74. {
  75. "channelId": "3688782558469305144",
  76. "channelName": "1013838c",
  77. "channelOriginalName": "1013838c"
  78. }
  79. ],
  80. [
  81. {
  82. "channelId": "3832616271702407221",
  83. "channelName": "1005584k",
  84. "channelOriginalName": "1005584k"
  85. }
  86. ],
  87. [
  88. {
  89. "channelId": "4048789053883101750",
  90. "channelName": "1008621o",
  91. "channelOriginalName": "1008621o"
  92. }
  93. ],
  94. [
  95. {
  96. "channelId": "4121128122696742456",
  97. "channelName": "1019866c",
  98. "channelOriginalName": "1019866c"
  99. }
  100. ],
  101. [
  102. {
  103. "channelId": "3688782558586548535",
  104. "channelName": "1013715j",
  105. "channelOriginalName": "1013715j"
  106. }
  107. ],
  108. [
  109. {
  110. "channelId": "3544385895668332593",
  111. "channelName": "1001187r",
  112. "channelOriginalName": "1001187r"
  113. }
  114. ],
  115. [
  116. {
  117. "channelId": "3616443489421046576",
  118. "channelName": "1002037a",
  119. "channelOriginalName": "1002037a"
  120. }
  121. ],
  122. [
  123. {
  124. "channelId": "3544385895684714809",
  125. "channelName": "1001911s",
  126. "channelOriginalName": "1001911s"
  127. }
  128. ],
  129. [
  130. {
  131. "channelId": "3472328301412430901",
  132. "channelName": "1000549e",
  133. "channelOriginalName": "1000549e"
  134. }
  135. ],
  136. [
  137. {
  138. "channelId": "4121128122764046649",
  139. "channelName": "1019919g",
  140. "channelOriginalName": "1019919g"
  141. }
  142. ],
  143. [
  144. {
  145. "channelId": "3472331625649483824",
  146. "channelName": "7300001a",
  147. "channelOriginalName": "7300001a"
  148. }
  149. ],
  150. [
  151. {
  152. "channelId": "3760840152507102006",
  153. "channelName": "1014636c",
  154. "channelOriginalName": "1014636c"
  155. }
  156. ],
  157. [
  158. {
  159. "channelId": "3544667370628395314",
  160. "channelName": "1011219q",
  161. "channelOriginalName": "1011219q"
  162. }
  163. ],
  164. [
  165. {
  166. "channelId": "3472328301445723957",
  167. "channelName": "1000575g",
  168. "channelOriginalName": "1000575g"
  169. }
  170. ]
  171. ],
  172. [
  173. [
  174. 1949978,
  175. 1106446,
  176. 147418202,
  177. 11733805,
  178. 431
  179. ],
  180. [
  181. 1134808,
  182. 902017,
  183. 483053345,
  184. 23385672,
  185. 468
  186. ],
  187. [
  188. 1088982,
  189. 962801,
  190. 396880080,
  191. 23018203,
  192. 492
  193. ],
  194. [
  195. 806754,
  196. 704276,
  197. 377068535,
  198. 23341185,
  199. 486
  200. ],
  201. [
  202. 437432,
  203. 354576,
  204. 131962955,
  205. 7613394,
  206. 532
  207. ],
  208. [
  209. 427706,
  210. 163273,
  211. 518722430,
  212. 18862837,
  213. 546
  214. ],
  215. [
  216. 335137,
  217. 49583,
  218. 113120110,
  219. 4349517,
  220. 503
  221. ],
  222. [
  223. 317241,
  224. 158743,
  225. 59104997,
  226. 3406924,
  227. 475
  228. ],
  229. [
  230. 262066,
  231. 170328,
  232. 16858931,
  233. 1204850,
  234. 473
  235. ],
  236. [
  237. 231638,
  238. 157078,
  239. 5120643,
  240. 549916,
  241. 427
  242. ],
  243. [
  244. 219537,
  245. 163285,
  246. 34209254,
  247. 2678207,
  248. 287
  249. ],
  250. [
  251. 183010,
  252. 116534,
  253. 9525835,
  254. 1026436,
  255. 371
  256. ],
  257. [
  258. 171443,
  259. 91364,
  260. 42868358,
  261. 2156976,
  262. 496
  263. ],
  264. [
  265. 168923,
  266. 131490,
  267. 65903924,
  268. 3600865,
  269. 558
  270. ],
  271. [
  272. 157526,
  273. 100436,
  274. 30923638,
  275. 2065781,
  276. 522
  277. ],
  278. [
  279. 115639,
  280. 81609,
  281. 4651194,
  282. 389945,
  283. 433
  284. ],
  285. [
  286. 114432,
  287. 75919,
  288. 9664902,
  289. 800368,
  290. 418
  291. ],
  292. [
  293. 108397,
  294. 49902,
  295. 55884375,
  296. 2734584,
  297. 532
  298. ],
  299. [
  300. 105540,
  301. 49343,
  302. 15349286,
  303. 740647,
  304. 507
  305. ],
  306. [
  307. 102606,
  308. 49536,
  309. 27002912,
  310. 1354335,
  311. 488
  312. ]
  313. ],
  314. [],
  315. []
  316. ]
  317. }
  318. }