Astronomy Data
weather.weatherapi.astronomyRetrieve sunrise, sunset, moonrise, moonset times and moon phase for any location and date. Get moon illumination percentage and phase name.
Instructions
Get sunrise, sunset, moonrise, moonset times and moon phase for any location and date. Returns moon illumination percentage and phase name (WeatherAPI.com)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Location query — city name, coordinates, or zip code | |
| date | No | Date for astronomy data (YYYY-MM-DD, default today) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. | |
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. |