skypeek: sunrise, sunset, twilight and moon phase
sun_moon_timesGet sunrise, sunset, solar noon, day length, twilight, moonrise, moonset, moon phase, illumination and distance for a coordinate and local date, with optional time zone.
Instructions
skypeek: Get sunrise, sunset, twilight, moonrise and moon phase for a place and date. For satellite passes use satellite_passes. Returns sunrise, sunset, solar noon, day length and civil / nautical / astronomical twilight, plus moonrise, moonset, moon phase, illumination and distance, for a point and a local date, in a time zone you choose. Computed locally (Meeus series; no upstream call): sun and twilight times within about 1 minute, moonrise and moonset within about 3 minutes; sea-level horizon, terrain and weather not modelled. A bad date or time zone is a 422 (not charged). Typically under 0.2 s. Price: USD 0.001. Free: 5 skypeek calls per IP per UTC day. Docs: https://tanod.dev/learn/sunrise-sunset-moon-phase-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | IANA time zone for the date and the output (such as Asia/Manila); default UTC. | |
| lat | Yes | Latitude in degrees (-90 to 90). | |
| lon | Yes | Longitude in degrees (-180 to 180). | |
| date | No | Local date YYYY-MM-DD (1900-2100); default today. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | ||
| lat | No | ||
| lon | No | ||
| sun | No | ||
| date | No | ||
| moon | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| method | No | ||
| accuracy | No |