capabilities.work

Multi Horizon Forecast

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

Recipe · 4 steps

Multi Horizon Forecast

Resolve a city name, then return hourly, daily, and climatic forecasts.

  1. Resolve the supplied city query into geographic coordinates, keeping the first and best match.
  2. Fetch the four day hourly forecast at the geocoded coordinates. Served from the Pro forecast base URL.
  3. Fetch the sixteen day daily forecast at the same coordinates. Served from the Pro forecast base URL.
  4. Fetch the thirty day climatic forecast at the same coordinates. Served from the Pro forecast base URL.
What you'll need to have ready
  • q: City name, optionally with state and ISO country codes, comma-separated.
  • units: Units of measurement (standard, metric, or imperial).
  • lang: Localization language code for weather condition text.
  • hourlyCount: Number of hourly timestamps to return (up to 96).
  • dailyCount: Number of days to return from the daily forecast (1 to 16).
  • climateCount: Number of days to return from the climatic forecast (1 to 30).
  • appid: OpenWeather API key.
For your developer

Arazzo workflow openweathermap:multi-horizon-forecast, 4 operations: getDirectGeocoding → getForecastHourly → getForecastDaily → getForecastClimate. Specs on APIs.io.