Sunrise-Sunset
Golden hour, civil twilight and day length for any point.
Returns sunrise, sunset and twilight times for any coordinates and date. No key required. Recently added to the directory — the NEW badge means it has under two weeks of monitoring history, so treat the early numbers gently.
GET https://api.sunrise-sunset.org/json?lat=5.6037&lng=-0.1870
{
"results": {
"sunrise": "5:58:11 AM",
"sunset": "6:07:42 PM",
"day_length": "12:09:31"
},
"status": "OK"
}curl "https://api.sunrise-sunset.org/json?lat=5.6037&lng=-0.1870"const res = await fetch("https://api.sunrise-sunset.org/json?lat=5.6037&lng=-0.1870");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://api.sunrise-sunset.org/json?lat=5.6037&lng=-0.1870")
print(res.json())/json?lat=5.6037&lng=-0.1870PROBEDGolden hour, civil twilight and day length for any point.
/json?limit=5Json — documented GET route.
/json?page=1Json — documented GET route.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
Sunrise-Sunset: common questions
Is Sunrise-Sunset free to use?
Yes — Sunrise-Sunset is a free weather API. Free tier: Unlimited, attribution requested. Whether the free tier allows commercial use is unclear — check the provider docs.
Does Sunrise-Sunset need an API key?
No — Sunrise-Sunset needs no API key or signup. You can call it straight away; rate limits still apply (No burst traffic).
Can I call Sunrise-Sunset from the browser?
Yes — Sunrise-Sunset returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.
Is Sunrise-Sunset up right now?
As of our last scheduled check, Sunrise-Sunset is new. We re-probe it every sweep — the status badge and uptime chart above always show the latest.