Get Sun Times
astro_get_sun_timesGet sunrise, sunset, solar noon, dawn/dusk (civil), nautical dawn/dusk, astronomical dawn/dusk, golden hour, and day length for a location and date (or each day of a range if end_date is given).
Times are ISO UTC unless an IANA timezone is provided. At high latitudes some events may be null (e.g. no astronomical night in summer). Computed locally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in YYYY-MM-DD format. Defaults to today. | |
| end_date | No | Optional range end: one entry per day. | |
| latitude | Yes | Latitude in decimal degrees (-90 to 90). | |
| timezone | No | IANA timezone for output times (e.g. "America/New_York"). Defaults to UTC ISO timestamps. | |
| longitude | Yes | Longitude in decimal degrees (-180 to 180). | |
| response_format | No | Output format: "markdown" for a readable summary table, "json" for the complete structured payload. | markdown |