International Air Quality API Guide
Version 2
Current conditions/forecast endpoints
Observational endpoints (raw data)
Version 1 (deprecated)
Current conditions/forecast endpoints
Current air quality conditions by location key
Note: this endpoint supports all AccuWeather locations. The pollutants request parameter is only available with the premium option.
https://{{api} or {apidev}}.accuweather.com/airquality/{version}/currentconditions/{locationKey}?apikey={your key}&pollutants={boolean}&language={language} |
Examples
https://api.accuweather.com/airquality/v2/currentconditions/201655?apikey={your key}&language=en-us |
https://api.accuweather.com/airquality/v2/currentconditions/201655?apikey={your key}&pollutants=true&language=en-us |
Hourly air quality forecasts by location key
Note: this endpoint supports all AccuWeather locations. The pollutants request parameter is only available with the premium option.
https://{{api} or {apidev}}.accuweather.com/airquality/{version}/forecasts/hourly/{hour#}hour/{locationKey}?apikey={your key}&pollutants={boolean}&language={language} |
Examples
Note: to change the forecast time span, change the 12 in "12hour" in the example below to the desired number of hours. Available time spans are 1, 12, 24, 48, 72, and 96 hours.
https://api.accuweather.com/airquality/v2/forecasts/hourly/12hour/201655?apikey={your key}&language=en-us |
https://api.accuweather.com/airquality/v2/forecasts/hourly/12hour/201655?apikey={your key}&pollutants=true&language=en-us |
Daily air quality forecasts by location key
Note: this endpoint supports all AccuWeather locations.
https://{{api} or {{apidev}}.accuweather.com/airquality/{version}/forecasts/daily/{day#}day/{locationKey}?apikey={your key}&language={language} |
Example
Note: to change the forecast time span, change the 3 in "3day" in the example below to the desired number of days. Available time spans are 1, 2, 3, 4, 5, 6, and 7 days.
https://api.accuweather.com/airquality/v2/forecasts/daily/3day/201655?apikey={your key}&language=en-us |
Observational endpoints
Note: these endpoints return the same data as V1, except formatted for V2. These endpoints support China and South Korea only.
Current air quality observation by location key
https://{{api} or {{apidev}}.accuweather.com/airquality/{version}/observations/{locationKey}{.{format}}?apikey={your key} |
Example
https://api.accuweather.com/airquality/v2/observations/101924?apikey={your key} |
Past day air quality observation by location key
https://{{api} or {{apidev}}.accuweather.com/airquality/{version}/observations/1day/{locationKey}{.{format}}?apikey={your key} |
Example
https://api.accuweather.com/airquality/v2/observations/1day/101924?apikey={your key} |
Version 1 (deprecated)
As applicable, additional specialized air quality content can be made available though the premium air quality endpoints, under specific business terms.
Current air quality by location key (standard)
https://{{api} or {{apidev}}.accuweather.com/airquality/{version}/global/observations/{locationKey}{.{format}}?apikey={your key} |
Example
https://api.accuweather.com/airquality/v1/global/observations/102244.json?apikey={your key} |
Past day air quality by location key (standard)
https://{{api} or {{apidev}}.accuweather.com/airquality/{version}/global/observations/1day/{locationKey}{.{format}}?apikey={your key} |
Example
https://api.accuweather.com/airquality/v1/global/observations/1day/226081.json?apikey={your key} |
Current air quality by location key (premium)
https://{{api} or {{apidev}}.accuweather.com/airquality/{version}/observations/{locationKey}{.{format}}?apikey={your key} |
Example
https://api.accuweather.com/airquality/v1/observations/102244.json?apikey={your key} |
Past day air quality by location key (premium)
https://{{api} or {{apidev}}.accuweather.com/airquality/{version}/observations/1day/{locationKey}{.{format}}?apikey={your key} |
Example
https://api.accuweather.com/airquality/v1/observations/1day/102244.json?apikey={your key} |