v1

latestSwagger 2.02026-07-132137180.4 KB
Current Air Quality

Returns current air quality conditions - Given a geolocation.

Returns current air quality conditions.

get/current/airquality

Query parameters

latnumber double

Latitude component of location.

lonnumber double

Longitude component of location.

citystring string

City search.. Example - &city=Raleigh,NC or &city=Berlin,DE or city=Paris&country=FR

postal_codestring string

Postal Code. Example: 28546

countrystring string

Country Code (2 letter) - to be used with postal_code.

keystring string required

Your registered API key.

Response

Current air quality conditions

city_namestring

Nearest city name

state_codestring

State Abbreviation

country_codestring

Country Abbreviation

latnumber

Latitude

lonnumber

Longitude

timezonestring

Local IANA time zone

Example response

{
  "city_name": "Raleigh",
  "state_code": "NC",
  "country_code": "US",
  "lat": 38.25,
  "lon": -78,
  "timezone": "America/New_York",
  "data": [
    {
      "aqi": 100,
      "co": 72.3664,
      "so2": 50,
      "no2": 25,
      "o3": 2,
      "pm25": 230,
      "pm10": 150,
      "pollen_level_grass": 1,
      "pollen_level_tree": 1,
      "pollen_level_weed": 1,
      "predominant_pollen_type": "Trees"
    }
  ]
}