Live test: data aggregation

This endpoint allows you to aggregate data from one or more variables over a time range.

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

📘

Optional body parameters

  • If you include neither start nor end, the request uses the last 100 values of each variable.
  • If you send only start, values from that timestamp up to the current date are included.
  • If you send only end, values from the beginning of data collection up to that timestamp are included.
  • If the precision parameter is not defined, the number of displayed decimal places depends on the calculation.
Query Params
string

The token to authenticate the request. Supported but not recommended. It's recommended to use the X-Auth-Token header instead.

Body Params
variables
array of strings
required

An array of variable IDs.

variables*
string
required

The aggregation to be applied. Available options:

mean, min, max, count, sum

boolean
enum

true: Returns a single value.
false: Returns a value per variable (default).

Allowed:
number

Start timestamp (in milliseconds POSIX format). Values recorded at or after this time are returned.

number

Final timestamp (in milliseconds POSIX format). Values recorded at or before this time are returned.

string

Timezone in which the request timestamps are interpreted. For example, America/New_York, Africa/Bissau, America/Argentina/La_Rioja, etc.

integer

Controls the number of decimal places displayed in the response.

Responses
200

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