capabilities.work

Forecast with Astronomy

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

Recipe · 3 steps

Forecast with Astronomy

Search a location, fetch its forecast, and add astronomy for a date.

  1. Resolve the free-text query into the best matching location.
  2. Retrieve a multi-day forecast for the resolved location, including the embedded daily astronomy block.
  3. Add sunrise, sunset, moonrise, moonset, and moon phase detail for the resolved location on the requested date.
What you'll need to have ready
  • query: Partial city name, postcode, or coordinates to search for.
  • days: Number of forecast days to return (1-14, plan dependent).
  • date: Date in yyyy-MM-dd format for the astronomy lookup.
For your developer

Arazzo workflow weatherapi:forecast-with-astronomy, 3 operations: searchLocations → getForecast → getAstronomy. Specs on APIs.io.