Sunrise-Sunset

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

🌦 WeatherNEWchecked 2h 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.

HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: — · new
Uptime history
—%90 days
—%30 days
P50 · ms
P95 · ms
operationalpartialdownno data
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 · 3NewFULL DOCS ↗
Monitored path responding — GET /json?lat=5.6037&lng=-0.1870checked 2h 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 new. We re-probe it every sweep — the status badge and uptime chart above always show the latest.