Skip to main content
GET
Build Report

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"

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.

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.

Available options:
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.

aggregation
enum<string>

How each metric becomes one value over the period. Defaults to the first aggregation of each metric.

Available options:
sum,
average,
last
interval
string

Interval that aggregation=average divides by, such as day. Required with average. Not used with other aggregations.

order
string

Metric that ranks the rows, by its value in the first period. Defaults to the first metric.

direction
enum<string>

Direction of the ranking. Defaults to desc.

Available options:
desc,
asc
first
integer
default:20

Number of results to return from the start of the range.

Required range: x <= 1000
after
string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

Response

The report, with one entry for each period.

data
object
required
page_info
object
required