Path:/openapi/v1/{app_id}/user_analysis/queries/<query_id>
Method: GET
Content-type: application/json
无
Response:
{ "code": 200, "message": "success", "data": { "query_result": { "profiles": [ { "user_id_type": "user_unique_id", "show_user_id": "278145", "stat_standard_id": "95a3de81-61ce-454e-90f0-7b7b1144c148", "user_id": "278145", "device_id": "9223372036854775807", "web_id": "7049540563264423427", } ], "total": 323, "result_length": 323, "page": 0, "page_size": 1000 }, "show_option": { "query_type": "analysis", "profile_names": [ ], "profile_sort": [], "limit": 1000, "id_types": [ "ssid", "user_unique_id", "device_id", "web_id" ], "analysis": { "dsl": {省略} } } } }
Field | Type | Description |
---|---|---|
query_result | object | 用户列表的查询id |
query_result.total | int | 用户列表的总数 |
query_result.result_length | int | 本次查询结果的总数,与limit有关,当limit为1000时最多为1000 |
query_result.profiles | list | 用户列表的详情,list中每个元素代表一个用户,返回用户id信息、用户属性等字段 |
page | int | 分页页码,默认为0 |
page_size | int | 分页页数,默认为20,不能超过查询的limit,最多为1000 |
show_option | object | 返回了创建该query_id时的基本信息 |
bc
为创建的 RangersClient, 其初始化请参考使用说明, 各语言的 SDK 都提供了类似的接口
调用(Python)::
res = bc.data_finder('/openapi/v1/12345/user_analysis/queries/za9fa417b308a1c8e01') print(res.content)
返回结果:
{ "code": 200, "message": "success", "data": { "query_result": { "profiles": [ { "user_id_type": "user_unique_id", "show_user_id": "278145", "stat_standard_id": "95a3de81-61ce-454e-90f0-7b7b1144c148", "user_id": "278145", "device_id": "9223372036854775807", "web_id": "7049540563264423427", } ], "total": 323, "result_length": 323, "page": 0, "page_size": 1000 }, "show_option": { "query_type": "analysis", "profile_names": [ ], "profile_sort": [], "limit": 1000, "id_types": [ "ssid", "user_unique_id", "device_id", "web_id" ], "analysis": { "dsl": {省略} } } } }