Data Aggregation

Aggregate data from one or multiple variables within a specified time range. Supports multiple aggregation functions and optional timezone and precision settings.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Alternative authentication token (use instead of X-Auth-Token header)

Body Params
variables
array of strings
required

List of variable IDs to aggregate

variables*
string
enum
required

Aggregation function to apply. raw returns the last raw dot rather than an aggregate, and average is an alias of mean. There is no variance or standard-deviation function here: both are rejected with HTTP 400. This endpoint does not share a function set with GET /variables/{variable_id}/statistics/{aggregation}/....

boolean
Defaults to true

Whether to join results into a single dataframe across all requested variables. Defaults to true when omitted.

int64

Start of time range as POSIX timestamp in milliseconds

int64

End of time range as POSIX timestamp in milliseconds

integer
≥ 0

Maximum number of data points per variable to feed into the aggregation. It truncates the input series before aggregating, so it materially changes the answer. 0 means no limit; the minimum accepted value is 0. When neither start nor end is supplied, the last 100 points per variable are used.

string

Timezone for the aggregation (IANA timezone name)

integer

Number of decimal places for result values

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json