capabilities.work

Air Quality By City

A 3-step recipe with OpenWeatherMap. We can help you get access.

Recipe · 3 steps

Air Quality By City

Resolve a city name to coordinates, then return current and forecast air quality.

  1. Resolve the supplied city query into geographic coordinates, keeping the first and best match.
  2. Fetch current air pollution at the geocoded coordinates, including the Air Quality Index and pollutant concentrations.
  3. 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.