导出报表数据——分群
1.用户细查
POST _SJK_API_PATH_/api-v2/segment/user_profile
请求参数:
字段 | 格式 | 说明 | 是否必需 | 示例 |
---|---|---|---|---|
access_token | string | 通过oauth认证获取的token | 是 | |
platform_id | int | 平台id | 否 | web:1 H5:2 IOS:3 Android:4 微信小程序:5 |
cookie | string | GeekDataID | 是 | |
time_range | array | 查询的时间范围 | 是 | time_range[]=2019-08-06&time_range[]=2019-08-12 需要有起始时间和结束时间2个值且结束时间不能小于起始时间 |
调用示例:
curl -d 'access_token=1234567890123456789012345678901234567890&cookie=02b0e5bd51e186b5&time_range[]=2019-08-10&time_range[]=2019-08-10' http://qixin.test.geekdata.com/api-v2/segment/user_profile
Response:
{
"status": 0,
"msg": {
"msg": "success",
"desc": ""
},
"data": [
[
[
"2019-08-10",
"57"
]
],
[
[
"2019-08-10 11:05:00",
"\u70b9\u51fb",
null,
"https:\/\/www.geekdata.com\/solution\/role06.html",
"1",
"-",
"PC",
"Windows",
"Chrome",
"1920x1080",
"\u767e\u5ea6\u641c\u7d22",
"\u5317\u4eac"
],
[
"2019-08-10 11:05:00",
"\u70b9\u51fb",
null,
"https:\/\/www.geekdata.com\/solution\/role06.html",
"1",
"-",
"PC",
"Windows",
"Chrome",
"1920x1080",
"\u767e\u5ea6\u641c\u7d22",
"\u5317\u4eac"
]
],
[
{
"id": "228",
"name": "7\u65e5\u5185\u767b\u5f55"
},
{
"id": "137",
"name": "7\u65e5\u5185\u6ce8\u518c"
},
{
"id": "294",
"name": "\u76f4\u63a5\u8bbf\u95ee\u5ba2\u6237"
},
{
"id": "159",
"name": "\u767b\u5f553\u6b21\u4ee5\u4e0a"
}
]
]
}
字段介绍:[[[日期1,总事件量],[日期2,总事件量]..],[事件发生时间,事件名称,事件参数,url,访问平台,平台版本,设备类型,操作系统,浏览器,分辨率,来访渠道,来访地区],..],[{分群id1,分群名称1},..]]
第一个数组为时间范围内每一天日期、总事件量;第二个数组是每次事件发生的明细;第三个数组为该用户都属于那几个分群
2.分群用户明细
POST _SJK_API_PATH_/api-v2/segment/segment_user_list
请求参数:
字段 | 格式 | 说明 | 是否必需 | 示例 |
---|---|---|---|---|
access_token | string | 通过oauth认证获取的token | 是 | |
segment_id | int | 自定义分群id | 是 | 可通过 base/segments 获取 |
调用示例:
curl -d 'access_token=_TOKEN_&segment_id=228' https://a.geekdata.com/api-v2/segment/segment_user_list
Response:
{
"status": 0,
"msg": {
"msg": "success",
"desc": ""
},
"data": [
[
"02b0e5bd51e186b5",
"109909",
"2019-08-10 11:04:57",
"\u56de\u8bbf\u8bbf\u5ba2",
"\u6ce8\u518c\u7528\u6237",
"\u641c\u7d22\u5f15\u64ce",
"\u767e\u5ea6\u641c\u7d22",
"\u5317\u4eac",
"\u5317\u4eac"
],
[
"09583a87351d2b1d",
"109871",
"2019-08-07 11:56:35",
"\u56de\u8bbf\u8bbf\u5ba2",
"\u6ce8\u518c\u7528\u6237",
"\u76f4\u63a5\u8bbf\u95ee",
"\u76f4\u63a5\u8bbf\u95ee",
"\u6c5f\u82cf",
"\u5e38\u5dde"
]
]
}
字段介绍:[GeekDataID,用户ID,最近访问时间,访客类型,注册类型,渠道类型,渠道名称,所在省份,所在城市]