Air Quality By City
A 3-step recipe with OpenWeatherMap. We can help you get access.
Recipe · 3 steps
Air Quality By City
with OpenWeatherMap
Resolve a city name to coordinates, then return current and forecast air quality.
- Resolve the supplied city query into geographic coordinates, keeping the first and best match.
- Fetch current air pollution at the geocoded coordinates, including the Air Quality Index and pollutant concentrations.
- Fetch the hourly air pollution forecast for the next five days at the same coordinates.
What you'll need to have ready
- q: City name, optionally with state and ISO country codes, comma-separated.
- limit: Maximum number of geocoding matches to return (1 to 5).
- appid: OpenWeather API key.
For your developer
Arazzo workflow openweathermap:air-quality-by-city, 3 operations: getDirectGeocoding → getCurrentAirPollution → getAirPollutionForecast. Specs on APIs.io.