活跃用户
功能介绍
获取本APP的活跃用户报告数据
接口
https://openapi.baidu.com/rest/2.0/mtj/svc/app/getDataByKey
请求参数
此处仅列本接口特有参数,公共参数请参考报告级API说明
获取表格数据
参数名 | 参数类型 | 是否必须 | 描述 |
---|---|---|---|
method | string | 是 | activitydegree/a ; activitydegree/f |
metrics | string | 是 | 指标列表,指标间逗号分隔 |
指标
指标名 | 描述 | 适用接口 |
---|---|---|
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 |
示例
获取活跃用户报表数据
请求
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
响应
{
"status": 0,
"msg": "",
"data": {
"offset": 0,
"timeSpan": [
"2017/11/02 - 2017/11/08"
],
"fields": [
"simple_date_title",
"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"
],
"total": 7,
"sum": [
[
46903169,
2.49,
20.58,
149742884,
7.94,
227869856,
12.09,
1656993216,
87.91,
1598766103,
84.82,
1884863072
],
[]
],
"pageSum": [],
"items": [
[
[
"2017/11/08"
],
[
"2017/11/07"
],
[
"2017/11/06"
],
[
"2017/11/05"
],
[
"2017/11/04"
],
[
"2017/11/03"
],
[
"2017/11/02"
]
],
[
[
46903169,
2.49,
20.58,
149742884,
7.94,
227869856,
12.09,
1656993216,
87.91,
1598766103,
84.82,
1884863072
],
[
72700344,
3.86,
31.72,
153250704,
8.13,
229208931,
12.16,
1655184397,
87.84,
1597052847,
84.75,
1884393328
],
[
71689616,
3.81,
31.18,
153135303,
8.13,
229913258,
12.21,
1653347831,
87.79,
1595819287,
84.74,
1883261089
],
[
75675141,
4.02,
32.81,
152982280,
8.13,
230632135,
12.25,
1651520011,
87.75,
1594625110,
84.72,
1882152146
],
[
75034813,
3.99,
32.51,
153172716,
8.14,
230804422,
12.27,
1649980608,
87.73,
1593477419,
84.72,
1880785030
],
[
72409445,
3.85,
31.35,
153172771,
8.15,
230987414,
12.29,
1648379959,
87.71,
1592334192,
84.73,
1879367373
],
[
72014867,
3.83,
31.07,
152823673,
8.14,
231799893,
12.34,
1646369287,
87.66,
1591156058,
84.72,
1878169180
]
],
[],
[]
]
}
}