Free APIs › Weather & Geography › Sunrise-Sunset
No keyCORS ✓B · 84

Sunrise-Sunset

Sunrise, sunset, solar noon and day length for any place and date.

StatusLive · verified 23 Oct 2026 · 1534 ms
AuthenticationNone — call it right now
Browser CORSYes — works from front-end code
Free limitsFree, no key
Official docs ↗ ▶ Open the playground

▶ Live playground

This runs in your browser, straight against the real API. Edit the URL and experiment — break nothing, learn everything.

Press Run to call Sunrise-Sunset live.

📸 Real response, captured by us

Not a mockup — this is what Sunrise-Sunset actually returned when we verified it on 23 Oct 2026 (in 1534 ms).

{
  "results": {
    "sunrise": "2026-10-23T01:18:57+00:00",
    "sunset": "2026-10-23T12:25:40+00:00",
    "solar_noon": "2026-10-23T06:52:18+00:00",
    "day_length": 40003,
    "civil_twilight_begin": "2026-10-23T00:53:43+00:00",
    "civil_twilight_end": "2026-10-23T12:50:53+00:00",
    "nautical_twilight_begin": "2026-10-23T00:24:39+00:00",
    "nautical_twilight_end": "2026-10-23T13:19:58+00:00",
    "astronomical_twilight_begin": "2026-10-22T23:55:46+00:00",
    "astronomical_twilight_end": "2026-10-23T13:48:50+00:00"
  },
  "status": "OK",
  "tzid": "UTC"
}

💻 Copy-paste code

Three ways to call Sunrise-Sunset — pick your weapon.

// Sunrise-Sunset — no build step, no library. Just fetch.
const res = await fetch("https://api.sunrise-sunset.org/json?lat=33.56&lng=73.01&formatted=0");
const data = await res.json();
console.log(data);

🏅 Own this API?

Add the live-verified badge to your docs or repo — it only ever displays the status from our latest check.

<a href="https://freeapis.akclnt.com/api/sunrise-sunset/"><img src="https://freeapis.akclnt.com/badge/sunrise-sunset.svg" alt="Sunrise-Sunset — live-verified free API on AKCLNT Free APIs"></a>

📜 Full check history & uptime · Status as JSON · Health score: B · 84/100

🔔 Watch this API — a quiet feed that only speaks the week its status changes (down, recovered, reclassified). How it works

Similar free APIs

Open-Meteo

No keyCORS ✓B · 84

Free weather forecast, current conditions and historical data for any coordinates. No key, no signup.

Live · verified 23 Oct 2026 · 1458 ms📁 Weather & Geography · Free for non-commercial use, ~10k calls/day

OpenWeatherMap

Free keyCORS ✓C · 55

The classic weather API — current weather, forecasts and maps for any city on Earth.

Free key required📁 Weather & Geography · Free tier: 1,000 calls/day
Done