Skip to main content
GET
Build Cohorts

Authorizations

Authorization
string
header
required

An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

company:basic:read
stats:read

Headers

Api-Version-Date
string

Pins the request to a dated API version.

Example:

"2026-12-03-3"

Query Parameters

metrics
string
required

Comma-separated keys of 1 to 10 metrics. List the metrics with GET /stats.

mode
enum<string>

Whose figures to read. Each metric must have the mode. Defaults to owner, the account or user named.

Available options:
global,
owner,
partners,
platforms,
public
account_id
string

Account to read, prefixed biz_. Defaults to the account of your credential.

user_id
string

User to read, prefixed user_, for a metric that measures a user. Use it in place of account_id.

period
string

Period to read, up to now. Use a number of days such as 30d, or mtd, qtd or ytd. Defaults to 30d.

from
string

Start of the period, as an ISO 8601 date or timestamp. Use it with to in place of period.

to
string

End of the period, as an ISO 8601 date or timestamp. The period stops before this time.

anchor
string
required

Event that puts an owner in a cohort, such as first_network_volume_usd. Each metric must have the anchor in cohort_anchors.

Example:

"first_network_volume_usd"

interval
enum<string>
required

Length of each cohort and of each age. Each metric must have the interval for the anchor.

Available options:
day,
week,
month
Example:

"month"

ages
string

Comma-separated ages to return, 1 to 120 whole numbers that increase, such as 0,1,2,3,6. Defaults to every age the cohorts have reached.

Example:

"0,1,2,3,6"

Response

The cohorts, with a point for each age.

data
object
required