Sunrise-Sunset

Golden hour, civil twilight and day length for any point.

🌦 WeatherHEALTHYchecked 8h ago
AUTH NONECORS ✓AGENT ✓HTTPS ✓COMMERCIAL ?

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.

99HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: 99 · healthy
Uptime history
99.44%90 days
100%30 days
126P50 · ms
822P95 · ms
operationalpartialdownno data
Response time · last 48 checks
Fastest 25 ms, slowest 311 ms, most recent 103 ms.
Live response samplecaptured by our last successful check
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"
}
Call itcurl · fetch · python
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())
Endpoints · 3HealthyFULL DOCS ↗
Monitored path responding — GET /json?lat=5.6037&lng=-0.1870126 mschecked 8h ago
GET/json?lat=5.6037&lng=-0.1870PROBED

Golden hour, civil twilight and day length for any point.

GET/json?limit=5

Json — documented GET route.

GET/json?page=1

Json — documented GET route.

Machine-readable spec

We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.

Response-shape history

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 healthy with 99.44% uptime over 90 days and a 126 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.