Forecast with Astronomy
A 3-step recipe with WeatherAPI. We can help you get access.
Recipe · 3 steps
Forecast with Astronomy
with WeatherAPI
Search a location, fetch its forecast, and add astronomy for a date.
- Resolve the free-text query into the best matching location.
- Retrieve a multi-day forecast for the resolved location, including the embedded daily astronomy block.
- 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.