Sunrise, sunset and twilight times
Sunrise, sunset, solar noon, day length and civil, nautical and astronomical twilight for any latitude and longitude on any date.
No API key needed to call
- Source
- Sunrise-Sunset.org API
- Licence and terms
- Free with attribution
- Coverage
- worldwide
- Refresh cadence
- Answers are shared and cached for 21600 seconds.
Questions you can ask
Operations
Sun times at a point and date
Answers: when does the sun rise and set (UTC), when is solar noon, how long is the day and when do civil, nautical and astronomical twilight start and end at this latitude and longitude on this date?
| lat | required, string, Latitude, -90 to 90. |
|---|---|
| lon | required, string, Longitude, -180 to 180. |
| date | optional, string, Day, YYYY-MM-DD. Defaults to today (UTC). |
Example: When is sunrise and sunset in Malaga on 4 December 2026?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"sun_times","operation":"sun_times_for_point","params":{"lat":"36.72","lon":"-4.42","date":"2026-12-04"}}}Over HTTP
curl '/v1/connectors/sun_times/sun_times_for_point?lat=36.72&lon=-4.42&date=2026-12-04'Source notice
Source: Sunrise-Sunset.org. "The API is free to use : no sign up or API key required. We do require attribution : display a visible link to sunrise-sunset.org in the app or page where you show the data." (sunrise-sunset.org/api).