Skip to content

Readings

GET {baseURl}/v1/readings
Return a list of raw hardware readings in time descending order. The purpose of this API is for internal usage and special projects, therefore most of the clients' API keys won't have access to this API. Please use GET /measurements to retrieve air quality data.

Example: https://clarity-data-api.clarity.io/v1/readings

Headers

  • x-api-key: the API key string.
  • Accept-Encoding: encoding options, gzip is supported to compress data.
    We strongly recommend including it in the headers to reduce the response payload size.
    Example: Accept-Encoding: gzip

Request

query parameter description
code string The node ID (marked on the physical device). Only readings for the specified nodes will be returned.
Specify multiple items by using a comma-separated list.
startTime string Timestamp of earliest measurement desired. If provided, all measurements with time earlier than startTime will be filtered out. Date string is expected to be in ISO 8601 format.

Example: startTime=2019-01-01T00:00:00Z
endTime string Timestamp of the most recent measurement desired. If provided, all measurements with time later than endTime will be filtered out. Date string is expected to be in ISO 8601 format.
Default: UTC current time.

Example: endTime=2019-01-02T00:00:00Z
skip integer The number of records to skip.
Default: 0
limit integer The maximum number of measurements to be returned.
Default: 500
Min: 1
Max: 3,000 (20,000 if Accept-Encoding: gzip specified in the headers)

Example: limit=100
org string
optional
Find all readings from the given organization. If the API key provided identifies a user who has a role in more than one organization, then the org parameter specifies which org. If the parameter is not provided, then the default is to use the first org for that user.
Find the organization ID under the user profile section in Dashboard.
Example "myorgVD43"

Response

Example 200 Response

[
    {
        "_id": "5d82a14163070f050fdf08d1",
        "nodeStatus": {
            "inputPowerStatus": {
                "errorCode": 0,
                "current": 77,
                "voltage": 5.248760223388672
            },
            "chargingStatus": {
                "status": 0
            },
            "switchingIcStatus": {
                "isRegulated": true
            },
            "ec2xStatus": {
                "signalQuality": 31
            },
            "lastStateRevision": 0
        },
        "specNo2Reading": {
            "errorCode": 0,
            "vGas": 1022.7490234375,
            "no2Conc": 6.872159004211426,
            "vRef": 2047.62109375,
            "vTemperature": 1279.046875
        },
        "shtReading": {
            "errorCode": 0,
            "temperature": 35.598533630371094,
            "relHumidity": 41.960784912109375
        },
        "recId": "A0000001|48434",
        "ptPmsReading": {
            "errorCode": 0,
            "pm1MassConc": 0,
            "pm1NumConc": 0.20000000298023224,
            "pm2_5MassConc": 0,
            "pm2_5NumConc": 0.20000000298023224,
            "pm10MassConc": 0.9411764740943909,
            "pm10NumConc": 0.21882355213165283
        },
        "analog420Ch1Reading": {
            "errorCode": 0,
            "current": 15.87596321105957
        },
        "receivedAt": "2019-09-18T21:27:29.947Z",
        "deviceCode": "A0000001"
    }
]