Skip to main content
GET
Build Time Series

Autorisations

Authorization
string
header
requis

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

En-têtes

Api-Version-Date
string

Pins the request to a dated API version.

Exemple:

"2026-12-03"

Paramètres de requête

metrics
string
requis

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.

Options disponibles:
global,
owner,
partners,
platforms,
public
account_id
string

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

account_ids
string

Comma-separated accounts to read together, 1 to 50, each prefixed biz_. Use it in place of account_id.

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.

compare_to
enum<string>

Adds a second period. previous_period is the period of the same length before. previous_year is the same period one year before.

Options disponibles:
previous_period,
previous_year
breakdown_by
string

Property that splits the answer into one row for each value, such as source. Each metric must have the property. A property also filters the answer: pass its key with a comma-separated list of values.

window
string

Trailing span that each value includes, such as 30d. Each metric must have the window.

interval
enum<string>
requis

Length of each row of the series. Each metric must have the interval.

Options disponibles:
hour,
day,
week,
month,
year

Réponse

The time series, with one entry for each period.

data
object
requis