SunriseSunset.io
FreeLiveLast verified 28 Sept 2026
Sunrise, sunset, twilight, golden and blue hour, moonrise and moon phase for any coordinates and date range.
Example request
curl -s 'https://api.sunrisesunset.io/json?lat=38.907192&lng=-77.036873&date=2026-06-21'
Free tier, in plain English
Free with no key or signup for personal and commercial use, provided you show a visible link back to sunrisesunset.io. An optional key is available for higher limits.
Alternatives in Astronomy
7Timer!GFS-based multi-day forecasts by coordinate, including sky seeing and transparency for stargazing.FreeAstronomyAPISun, Moon and planet positions and events for any place and date, plus rendered star charts and moon images.FreeCycleCalcsComputed sun, moon, planet, and eclipse data for any location and date, no key needed.FreemiumMoon APIMoon phase name, illumination, age, moonrise and moonset, lunar position and next full or new moon.FreemiumMoonloraMoon phase, illumination, moon sign, and moonrise/moonset data for 1900–2100.Free
All 8 Astronomy APIs →