You need to enable JavaScript to run this app.
Growth Analysis DataFinder

Growth Analysis DataFinder

Copy page
Download PDF
Cohorts
Refresh Cohorts
Copy page
Download PDF
Refresh Cohorts

Instructions for use

Note: Refresh grouping is resource intensive, and frequent calls to this interface may result in slower queries.

Request description

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

Request parameters

Path-parameters:

Parameter

Type

Is it required?

Sample value

Describe

cohort_id

int

Yes

6

grouping id

Return parameters

Response:

{
    "code": 200,
    "message": "success",
    "data": {
        "count": 9289,
        "refresh_time": "2022-07-11",
        "refresh_timestamp": 1657534754,
        "status": 1
    }
}

Field meaning description

Field

Type

Description

count

int

Number of people in the cluster after refresh

refresh_time

string

Refresh completion date

refresh_timestamp

int

10-Digit timestamp of the time the refresh completed

status

int

refresh status
0: Refreshing
1: Success
2: Error
4: Timeout
5: Clustering to be calculated

Request example

Bc for the creation of RangersClient, its initialization please refer to Instructions for use the language SDK provides a similar interface.
Call (Python):

# for example, app_id= 164314 cohort_id = 6

resp = bc.data_finder("/openapi/v1/164314/cohorts/6/refresh")
print(resp.json()["data"])

Back to example

Return result:

{
    "code": 200,
    "message": "success",
    "data": {
        "count": 9289,
        "refresh_time": "2022-07-11",
        "refresh_timestamp": 1657534754,
        "status": 1
    }
}
Last updated: 2026.08.26 19:23:41