Query an aggregated metric. Returns data grouped by period with optional breakdowns.
Required permissions:
stats:readA company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Metric resource using : as separator (e.g., 'receipts:gross_revenue', 'members:new_users').
Time granularity (daily, weekly, monthly).
Columns to break down the metric by.
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
Key-value pairs to filter the data.
Start of time range (unix timestamp).
"2023-12-01T05:00:00.401Z"
End of time range (unix timestamp).
"2023-12-01T05:00:00.401Z"
Scope query to a specific company.
"biz_xxxxxxxxxxxxxx"
Scope query to a specific user.
"user_xxxxxxxxxxxxx"
A successful response
Result from a stats query (raw, metric, or SQL).
Column names in the order they appear in each data row.
Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
Array of data rows, where each row is an array of values matching the columns order.
Debug information including engine and SQL.
The node path that was queried.
Pagination information.
The typename of this object
"Result"