Skip to content

Getting data

To visualise data in simple graph forms, a web application is available. In case you need access to the raw values, the output api is there for you.

To get data, use the output API /api/values endpoint.


In this section, we suppose that you know how to add authentication headers to the request, so we won't explicitely write them down. See output api authentication if you get an unauthorized exception when running one of the codes below.


The /values endpoint supports two formats: JSON (default) and CSV.


JSON is the default format for value-related queries. Value endpoints support an optional query parameter, prettyprint=<true|false> that can be useful for debug. If set to true, the response body will be properly formatted. But note that formatted output takes more bytes, so the response will be heavier/slower.


To request CSV, use the Content-Type request header:

Content-Type: text/plain

Value endpoints support an optional parameter, headers=<true|false> (default false). If set to true, the CSV headers are included in the response.

Getting raw values

Raw values are accessed through the GET /values endpoint. You need to specify at least the object ids for which you want values as well as a timespan.

Query Parameters

  • ids: required (string)
    A comma-separated list of object ids
    Example: 1,344
  • from, to: required (string)
    Datetime in UTC following the format yyyy-MM-dd'T'hh:mm:ss. Seconds are optional. from should be less or equal to to. Both are inclusive.
    Example: 2016-12-31T16:10
  • withComments: (boolean - default: false)
    Whether or not to return comments for each value.


JSON: the return type is a json array with one entry for each object. An entry contains the object id, the unit and an array of values. Example:

        "objectId": 1,
        "unit": { "name": "volts", "symbol": "V", "type": "float" },
        "values": [
            { "timestamp": "2017-06-30T10:00:00.000", "value": "152" }

CSV: csv uses comma as field separator. By default, headers are not part of the response (use the parameter headers=true to get headers as well). Fields are: 1. object id 2. timestamp 3. value 4. (optional) comments




Getting values for objects 1 and 4889 for the 30 of June 2017 between 10:00 am and 10:01 am:

curl ""



Same parameters, but in CSV (with headers):

curl -H "Content-Type: text/plain" \



Getting aggregation values

Recall: not all objects have aggregation values (cf. here) and what statistics are computed depend on the unit of the object.

At the time, aggregations have two granularities:

  • GET /values/quarters: aggregations on a 15 minutes granularity window
  • GET /values/hours: aggregations on a 15 minutes granularity window

Query parameters and responses have the same format as the raw values endpoint.