User Login

AirVisual Pro API returned JSON format

To access your monitor's data using your AirVisual Pro's Device API, you can use your AirVisual Pro's device API link. See how to access this here:

Access the AirVisual Pro's Device API

Simply paste the link into your web browser and hit 'Enter' to access your monitor's data.

The Device API will return response in JSON format. To understand what the API response means, please refer to our global air quality API Documentation page which includes most definitions:

AirVisual API documentation

Note: in the Pro's returned JSON, the abbreviation 'co' refers to CO2, or carbon dioxide (as measured by the device sensor), NOT carbon monoxide (CO).

See below for explanation of the 'hourly' data returned from the Pro, which is not explained in the above documentation, for AirVisual's public outdoor air pollution API:


"hourly": [

   {

    "p2_sum": 119, //total PM2.5 concentration within 1 hour

    "p2_count": 4, //number of measurements taken within 1 hour

    "p1_sum": 130, //total PM10 concentration within 1 hour

    "p1_count": 4, //number of measurements taken within 1 hour

    "co_sum": 1809, //total CO2 concentration within 1 hour

    "co_count": 4, //number of measurements taken within 1 hour

    "hm_sum": 95,

    "hm_count": 4,

    "tp_sum": 20.24477,

    "tp_count": 4,

    "ts": "2017-12-08T02:00:00.000Z",

    "outdoor_station": { //refer to the documentation link above

     "ts": "2017-12-06T15:00:00.000Z",

     "aqius": 41,

     "mainus": "p2",

     "aqicn": 14,

     "maincn": "p2",

     "p2": {

      "conc": 10,

      "aqius": 41,

      "aqicn": 14

     },

     "api_id": "4395"

    },

    "outdoor_weather": {

     "ts": "2017-12-06T15:00:00.000Z",

     "tp": 4,

     "pr": 1025,

     "hu": 29,

     "ws": 0,

     "wd": 327,

     "ic": "01n"

    }

   },

Return to AirVisual Knowledge Base

The number one air cleaning solution for your home.

Lorem ipsum Donec ipsum consectetur metus a conubia velit lacinia viverra consectetur vehicula Donec tincidunt lorem.

TALK TO AN EXPERT
Article Resources

Article Resources

Search

search-normal