API Description


Air Quality Historical

Ambee Air Quality API helps you to get historical hyper local air quality data for over a million postal codes across 90+ countries, cities, and latitude & longitude. Air quality data helps quantify ambient air pollution.


It provides actionable insights on air quality index, particulate matter, nitrogen oxides, sulphur dioxide, carbon monoxide, ammonia and ozone. Air quality affects the planetary well-being, aggravates existing health conditions and leads to a myriad of health issues.


Headers

Content-typeapplication/json
x-api-keyUnique key obtained after sigunp


RESPONSE PARAMETERS

PM2.5Particulate matter < 2.5um (ug/m3)
PM10Particulate matter < 10um (ug/m3)
SO2Sulphur dioxide conc (ppb)
NO2Nitrogen dioxide conc (ppb)
OZONEOZONE conc (ppb)
COCarbon monoxide conc (ppm)
AQIAir quality index
updatedAtISO timestamp of event in UTC
aqiInfoBreif info about the effects of the AQI returned

Air quality historical- Geospatial search

GET

Ambee Air Quality API helps you to get historical hyper local air quality data for any for any location by passing the geographic coordinates along with period for which the data is required.


Endpoint

/history/by-lat-lng


PARAMETERS

latLatitude of the place to search
lngLongitude of the place to search
fromStarting timestamp of the period to search for in the format YYYY-MM-DD hh:mm:ss
toEnding timestamp of the period to search for in the format YYYY-MM-DD hh:mm:ss


Sample response

{
"message": "Success",
"data": [
{
"NO2": 8.049,
"PM10": 69.444,
"PM25": 36.102,
"CO": 0.332,
"SO2": 5.873,
"OZONE": 6.174,
"AQI": 102,
"lat": 17.2739,
"lng": 78.6938,
"createdAt": "2021-03-05T12:00:00.000Z",
"postalCode": "508213",
"majorPollutant": "PM2.5"
}
]
}