GETNo Auth·CORS Ready·Verified 2026-12-02
Sunrise-Sunset Solar Times
Exact UTC sunrise, sunset, solar noon, and civil/nautical twilight timestamps for any latitude, longitude, and date.
Live JSON Playground & Client Code
GETSunrise-Sunset Solar Times
https://api.sunrise-sunset.org/json?lat=36.7201600&lng=-4.4203400&formatted=0// Click "Send Live Request" to call this endpoint live from your browser:
// GET https://api.sunrise-sunset.org/json?lat=36.7201600&lng=-4.4203400&formatted=0
// Auth: No Auth | CORS: CORS Ready
// Rate limit: Open fair-use · attribution requestedLimit: Open fair-use · attribution requestedCommercial: Yes (Attribution)
Production Integration Checklist
- Zero-auth endpoint: call directly with no signup, API key, or secrets management.
- Browser CORS is enabled. Avoid unnecessary custom headers to skip extra OPTIONS preflight latency.
- Documented rate limit: "Open fair-use · attribution requested". Always pair requests with an 8s timeout and shared HTTP caching to avoid 429 errors.
- Commercial license note: Yes (Attribution). Verify attribution wording in official docs before production launch.