Skip to the page

REST API

Stats

Stats: 2 endpoints of the REST API.

GET/stats/summary

Get the environment counters

Clicks, unique clicks, installs, attributed installs (deterministic matches only), first opens, re-engagements and events of the last 7 or 30 project-local days, with a zero-filled daily series. Read from the rollups, so the newest minutes may be missing (see freshness).

Secret key scope (any of): analytics:read

Parameters

FieldTypeDescription
range (query)"7d" | "30d"

The last 7 or 30 project-local days, today included. Default 7d.

Responses

200 The counters.

FieldTypeDescription
rangerequired"7d" | "30d"
fromrequiredstring (date)

First day of the range (project-local).

torequiredstring (date)

Last day of the range, today (project-local).

timezonerequiredstring

IANA zone that defines a day.

totalsrequiredobject
totals.clicksrequiredinteger

Non-bot clicks.

totals.unique_clicksrequiredinteger

Visitors, counted once per link and day (approximate by design).

totals.installsrequiredinteger

New installs: first opens that are not reinstalls.

totals.attributed_installsrequiredinteger

New installs credited to a link by a deterministic match (probabilistic matches excluded).

totals.first_opensrequiredinteger

Every first app open, reinstalls included.

totals.reengagementsrequiredinteger

Opens of an already installed app through a link.

totals.eventsrequiredinteger

Custom events received.

seriesrequiredobject[]

One point per day, zero-filled.

series[].clicksrequiredinteger

Non-bot clicks.

series[].unique_clicksrequiredinteger

Visitors, counted once per link and day (approximate by design).

series[].installsrequiredinteger

New installs: first opens that are not reinstalls.

series[].attributed_installsrequiredinteger

New installs credited to a link by a deterministic match (probabilistic matches excluded).

series[].first_opensrequiredinteger

Every first app open, reinstalls included.

series[].reengagementsrequiredinteger

Opens of an already installed app through a link.

series[].eventsrequiredinteger

Custom events received.

series[].dayrequiredstring (date)

Project-local calendar day.

freshnessrequiredobject
freshness.as_ofrequiredstring (date-time) | null

When the rollups last wrote data for this scope; null when there is none.

freshness.caught_uprequiredboolean

True when the rollups wrote within the last 10 minutes.

Example

Bash