Live test: data aggregation

This endpoint allows you to aggregate data from one or multiple variables in a range of time.

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

📘

Optional body params

  • If neither start nor end are included, the request will use the last 100 values of each variable.
  • If only start is sent, values from that timestamp up to the current date are included.
  • If only end is sent, 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 will depend 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