用户画像

功能介绍

获取本APP的用户画像报告

接口

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

请求参数

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

获取表格数据

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

指标

指标名描述适用接口
user_count_ratio用户占比,必须visit/attribute/f

本报告情况特殊,用户占比为必须提供的指标字段

示例

获取用户画像数据

请求

  1. https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey?access_token=[ACCESS_TOKEN]&key=[APP_KEY]&method=visit/attribute/f&start-date=20170513000000&end-date=20171108232359&metrics=user_count_ratio

响应

  1. {
  2. "status": 0,
  3. "msg": "",
  4. "data": {
  5. "sex": {
  6. "fields": [
  7. "user_count_ratio"
  8. ],
  9. "items": [
  10. [
  11. {
  12. "attributeId": "51673640596406272",
  13. "name": "男"
  14. },
  15. {
  16. "attributeId": "50566423797301248",
  17. "name": "女"
  18. }
  19. ],
  20. [
  21. [
  22. 49.3
  23. ],
  24. [
  25. 50.7
  26. ]
  27. ]
  28. ]
  29. },
  30. "age": {
  31. "fields": [
  32. "user_count_ratio"
  33. ],
  34. "items": [
  35. [
  36. {
  37. "attributeId": "13539008165231256741",
  38. "name": "18岁以下"
  39. },
  40. {
  41. "attributeId": "3615607858952929332",
  42. "name": "18-24岁"
  43. },
  44. {
  45. "attributeId": "3687662158750941236",
  46. "name": "25-34岁"
  47. },
  48. {
  49. "attributeId": "3759719757083836468",
  50. "name": "35-44岁"
  51. },
  52. {
  53. "attributeId": "3831777355416731700",
  54. "name": "45-54岁"
  55. },
  56. {
  57. "attributeId": "3903834953749626932",
  58. "name": "55-64岁"
  59. },
  60. {
  61. "attributeId": "13539004888154432677",
  62. "name": "65岁以上"
  63. }
  64. ],
  65. [
  66. [
  67. 2.11
  68. ],
  69. [
  70. 25.05
  71. ],
  72. [
  73. 33.58
  74. ],
  75. [
  76. 30.57
  77. ],
  78. [
  79. 8.27
  80. ],
  81. [
  82. 0.39
  83. ],
  84. [
  85. 0.04
  86. ]
  87. ]
  88. ]
  89. },
  90. "education": {
  91. "fields": [
  92. "user_count_ratio"
  93. ],
  94. "items": [
  95. [
  96. {
  97. "attributeId": "6212610757284954117",
  98. "name": "高中及以下"
  99. },
  100. {
  101. "attributeId": "6194038137185989840",
  102. "name": "本科及以上"
  103. },
  104. {
  105. "attributeId": "16476319065212752824",
  106. "name": "大专"
  107. }
  108. ],
  109. [
  110. [
  111. 91.11
  112. ],
  113. [
  114. 4.87
  115. ],
  116. [
  117. 4.03
  118. ]
  119. ]
  120. ]
  121. },
  122. "trade": {
  123. "fields": [
  124. "user_count_ratio"
  125. ],
  126. "items": [
  127. [
  128. {
  129. "attributeId": "16760592303311073922",
  130. "name": "教育"
  131. },
  132. {
  133. "attributeId": "1650661282335011983",
  134. "name": "医药卫生"
  135. },
  136. {
  137. "attributeId": "5242546831328739593",
  138. "name": "IT通信电子"
  139. },
  140. {
  141. "attributeId": "15462136471127292611",
  142. "name": "社会公共管理"
  143. },
  144. {
  145. "attributeId": "1828325869244650136",
  146. "name": "金融保险"
  147. },
  148. {
  149. "attributeId": "17545657129772755348",
  150. "name": "能源采矿化工"
  151. },
  152. {
  153. "attributeId": "6000180781703219560",
  154. "name": "建筑房地产"
  155. },
  156. {
  157. "attributeId": "16770756188798232253",
  158. "name": "汽车"
  159. },
  160. {
  161. "attributeId": "1991219557086516014",
  162. "name": "住宿旅游"
  163. },
  164. {
  165. "attributeId": "1981319425202935271",
  166. "name": "建材家居"
  167. }
  168. ],
  169. [
  170. [
  171. 31.41
  172. ],
  173. [
  174. 20.31
  175. ],
  176. [
  177. 7.77
  178. ],
  179. [
  180. 7.24
  181. ],
  182. [
  183. 6.43
  184. ],
  185. [
  186. 4.47
  187. ],
  188. [
  189. 3.62
  190. ],
  191. [
  192. 3.25
  193. ],
  194. [
  195. 2.69
  196. ],
  197. [
  198. 2.58
  199. ]
  200. ]
  201. ]
  202. },
  203. "interest": {
  204. "fields": [
  205. "user_count_ratio"
  206. ],
  207. "items": [
  208. [
  209. {
  210. "attributeId": "1817285150070878431",
  211. "name": "软件应用"
  212. },
  213. {
  214. "attributeId": "2013145566775166121",
  215. "name": "影视音乐"
  216. },
  217. {
  218. "attributeId": "16754716521762172846",
  219. "name": "资讯"
  220. },
  221. {
  222. "attributeId": "1916599189664044924",
  223. "name": "医疗健康"
  224. },
  225. {
  226. "attributeId": "1887137221346444591",
  227. "name": "教育培训"
  228. },
  229. {
  230. "attributeId": "16770756188798232253",
  231. "name": "汽车"
  232. },
  233. {
  234. "attributeId": "1915893612878190809",
  235. "name": "餐饮美食"
  236. },
  237. {
  238. "attributeId": "1789120295501967675",
  239. "name": "休闲爱好"
  240. },
  241. {
  242. "attributeId": "1777603404805939678",
  243. "name": "家电数码"
  244. },
  245. {
  246. "attributeId": "1926856852155349220",
  247. "name": "书籍阅读"
  248. }
  249. ],
  250. [
  251. [
  252. 11.7
  253. ],
  254. [
  255. 9.21
  256. ],
  257. [
  258. 8.49
  259. ],
  260. [
  261. 6.77
  262. ],
  263. [
  264. 5.57
  265. ],
  266. [
  267. 4.57
  268. ],
  269. [
  270. 4.42
  271. ],
  272. [
  273. 4.3
  274. ],
  275. [
  276. 3.99
  277. ],
  278. [
  279. 3.84
  280. ]
  281. ]
  282. ]
  283. }
  284. }
  285. }