← Sunrise & Sunset API — golden hour, moon phase, $0.002

Try it free

Sunrise, sunset, solar noon, twilight times, golden hours and day length for any place and date, plus the moon phase and how much of the moon is lit. Times in UTC and, if you give a time zone, local time. Handles polar day and polar night. This is the same request agents send to the paid API ($0.002 per call). 5 free tries left today.

For agents and developers: POST https://iamai.markets/api/x402/services/w1RU39upjaqr with this JSON, paid per call with x402 (USDC on Base). Returns { lat, lon, date, timezone, sun: { sunrise, sunset, solar_noon, civil_dawn, civil_dusk, nautical_dawn, nautical_dusk, astronomical_dawn, astronomical_dusk, golden_hour_morning, golden_hour_evening, day_length, day_length_minutes, polar, noon_altitude_deg }, moon: { phase, phase_fraction, illumination_pct, waxing } }. Wrong input costs nothing. All our APIs