Getting Historical Data

Get historical data in JSON format

GET https://<host>/api/historical-data/json

Note: You must ensure that your tag names are URL encoded before being sent. For example, a space character would be replaced by the character sequence %20.

Query Parameters

Headers

{
  "data": {
    "temperature": {
      "t": [1640113400000, 1640113410000, 1640113420000],
      "v": [76.3, 78.2, 79.1],
      // "min": [...], // will be included if includeMin=true
      // "max": [...], // will be included if includeMax = true
      // "aggregatedValues: [...], // may be included for enum tags
    },
    "pressure": {
      "t": [1640113400000, 1640113410000, 1640113420000],
      "v": [29.3, 29.8, 30.1],
      // "min": [...], // will be included if includeMin=true
      // "max": [...], // will be included if includeMax = true
      // "aggregatedValues: [...], // may be included for enum tags
    }
  }
}

Last updated