You need to enable JavaScript to run this app.
Growth Analysis (Privatization)

Growth Analysis (Privatization)

Copy page
Download PDF
Cohorts
Get the Specified Cohorts Information
Copy page
Download PDF
Get the Specified Cohorts Information

Request description

Path:/openapi/v1/{app_id}/cohorts/{cohort_id}
Method: GET
Content-type: application/json

Request parameters

Path-parameters:

Parameter

Type

Description

Required

cohort_id

int

cluster ID

true

Return parameters

Response:

{
    "code":200,
    "message":"success",
    "data":{
        "app_id":123,
        "cohort_id":1054321,
        "cohort_name":"分群展示名称", //Cohorts display name
        "cohort_status":1,
        "cohort_type":4,
        "count":3950,
        "creator":"10000123",
        "creator_time":1648446690,
        "description":"",
        "dsl_content":Object{...},
        "modify_time":1648538157,
        "modify_user":"10000123",
        "part_date":"",
        "refresh_rule":1,
        "status":1,
        "user_info":Object{...},
        "version":1
    }
}

Field meaning description:
Data is an array of JSON objects (if there is at most one), where the JSON keyfield indicates

Field

Type

Description

cohort_id

int

cluster ID

cohort_name

string

subgroup name

refresh_rule

int

group refresh rule
0: unsupported refresh
1: manual support manual refresh
2: daily refresh

count

int

Number of users in the cluster

Request example

Bc is the RangersClient created. For its initialization, please refer to the "OpenAPI SDK Instructions". SDKs in various languages provide similar interfaces
Call (Python):

#For example, app_id = 164314 cohort id = 1001076
res = bc.data_finder('/openapi/v1/164314/cohorts/1001076', method='get')
print(res.content)

Back to example

Return result:

{
    "code":200,
    "data":{
        "app_id":164314,
        "cohort_id":1591,
        "cohort_name":"一线活跃用户", // Active users in first tier cities
        "cohort_status":1,
        "cohort_type":4,
        "count":34259,
        "creator":"00000",
        "creator_time":1568202530,
        "description":"北上广深,30天内活跃过", // Users in Beijing, Shanghai, Guangzhou, and Shenzhen, that have been active in last 30 days
        "dsl_content":Object{...},
        "modify_time":1655270356,
        "modify_user":"00000",
        "part_date":"2022-06-15",
        "refresh_rule":2,
        "status":1,
        "user_info":Object{...},
        "version":10132
    },
    "message":"success"
}

Last updated: 2026.08.25 14:04:38