Live test: data resample

This endpoint allows you to resample 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…

📘

Period parameter

Available resample periods are:

  • "nT": Every n minutes.
  • "nH": Every n hours.
  • "nD": Every n days.
  • "W": Every week end.
  • "M": Every month end.

📘

Optional parameters

  • If neither start nor end is included, the request uses 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 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

string
required

Time interval used to resample and aggregate the data. See the note above for supported values.

boolean

Controls how resampled data from multiple variables is returned.

true: returns a single time series with values from all variables combined per period.
false: returns a separate time series for each variable.

number

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

number

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

string

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

string

Controls the number of decimal places applied to aggregated values.

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