Free APIGeo & WeatherNo keyOfficial
Sunrise-Sunset
Free, keyless sunrise, sunset, solar noon and twilight times for any coordinate
The Sunrise-Sunset API returns sunrise, sunset, solar noon, day length and civil/nautical/astronomical twilight times for a latitude/longitude on a given date. It is completely free with no signup or API key, returning JSON with UTC times by default.
Free tier
Free, no key, no signup. Attribution link required.Rate limits
No numeric limit published; policy asks you not to exceed reasonable request volume.Auth
No keyBase URL
https://api.sunrise-sunset.orgWhat you'd build with it
- Trigger automations at local sunrise/sunset (lights, posts, jobs)
- Show golden-hour / daylight info in a location tool
- Compute day length for energy, agriculture or photography logic
- Gate behavior on civil twilight without bundling an astronomy lib
Key endpoints
- GET
/jsonSun times for lat/lng on an optional date - GET
/json?lat=..&lng=..&date=..&tzid=..Localized sun times with timezone and date
Members
Members get the runnable recipe
Sign in free to copy the example request, see a sample response, and read the gotchas.
Tags
sunastronomygeodatetime