Cohort metrics endpoints

Use this endpoint to retrieve cohort metrics for your app.

Before you begin

To use this endpoint, you need an Adjust API token. Follow the instructions in the authentication guide to get your token.

Cohort overview endpoint

https://api.adjust.com/kpis/v1/{app_token}/cohorts

GET request

Returns cohort metrics associated with an app. Metrics are returned in a kpi_values array in the same order as the metrics in your request.

The endpoint returns JSON by default. You can return CSV by adding the following header to your call:

Accept: text/csv

Parameters

Example

Multiple apps cohort endpoint

https://api.adjust.com/kpis/v1/{app_tokens}/cohorts

GET request

Returns cohort metrics associated with multiple apps. Metrics are returned in a kpi_values array in the same order as the metrics in your request.

The endpoint returns JSON by default. You can return CSV by adding the following header to your call:

Accept: text/csv

Parameters

Example

Tracker cohort endpoint

https://api.adjust.com/kpis/v1/{app_token}/trackers/{tracker_token}/cohorts

GET request

Returns cohort metrics associated with a specific tracker. Metrics are returned in a kpi_values array in the same position the KPIs in your request.

The endpoint returns JSON by default. You can return CSV by adding the following header to your call:

Accept: text/csv

Parameters

Example

Response format

JSON
CSV
{
    "result_parameters": {
        "kpis": [
            "string"
        ],
        "start_date": "2022-07-01",
        "end_date": "2022-07-28",
        "sandbox": false,
        "countries": [
            "string"
        ],
        "events": [
            {
                "name": "string",
                "token": "string"
            }
        ],
        "trackers": [
            {
                "token": "string",
                "name": "string",
                "has_subtrackers": false
            }
        ],
        "grouping": [
            "string"
        ],
        "period": "string",
        "attribution_type": "string",
        "utc_offset": "00:00",
        "day_def": "string",
        "attribution_source": "string"
    },
    "result_set": {
        "token": "string",
        "name": "string",
        "currency": "string",
        "apps": [ // Returned when querying multiple apps
            {
                "token": "string",
                "name": "string",
                "currency": "string",
                "periods": [
                    {
                        "period": "0",
                        "kpi_values": [
                            3
                        ]
                    }
                ]
            },
        "trackers": [ // Returned when querying a single app
            {
                "token": "string",
                "dates": [
                    {
                        "date": "2022-06-27",
                        "events": [
                            {
                                "token": "string",
                                "periods": [
                                    {
                                        "period": "string",
                                        "kpi_values": [
                                            1
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
}
Error codeDescription
400 Bad RequestMalformed request passed by the client.
401 UnauthorizedAuthentication failed.
403 ForbiddenClient doesn't have access to information such as KPIs, selected time period, or cohort period in the request.
404 Not FoundRequest data not found.
499 Client closed requestThe transaction closed before all information was returned by the server.

Default parameters

ParameterDefault values
kpis
  • retention_rate

Parameter values

OS names

Device types