Event metrics endpoints

Use this endpoint to retrieve event 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.

Event overview endpoint

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

GET request

Returns event 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

Tracker event endpoint

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

GET request

Returns event 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": true
            }
        ],
        "grouping": [
            "string"
        ],
        "attribution_type": "string",
        "utc_offset": "00:00",
        "attribution_source": "string"
    },
    "result_set": {
        "token": "string",
        "name": "string",
        "currency": "string",
        "trackers": [
            {
                "token": "string",
                "dates": [
                    {
                        "date": "2022-06-27",
                        "events": [
                            {
                                "token": "string",
                                "kpi_values": [
                                    12887
                                ]
                            }
                        ]
                    }
                ]
            },
            {
                "token": "string",
                "dates": [
                    {
                        "date": "2022-06-27",
                        "events": [
                            {
                                "token": "string",
                                "kpi_values": [
                                    2
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    }
}
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
  • revenue_events
  • revenue

Parameter values

OS names

Device types