Sunrise Sunset API
This API provides accurate: 1. sunrise and sunset times, 2. dawn and dusk times, 3. civil dawn and civil dusk, 4. astronomical dawn and astronomical dusk times for any date and any location. It works even in edge cases where there are multiple sunrise/sunset times for a given date (this happens in certain edge cases in polar regions, for example, at lat -77.85 and lon 166.77, on 26 Mar 2026,…
Sunrise Sunset API endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
1. Sun Times /api/sun-times |
Get Sun Times (sunrise, sunset, dawn, dusk, civil dawn/dusk, astronomical dawn/dusk) for a given date and location. |
| POST |
2. Elevations /api/elevations |
Get sun's elevations at an interval of every 36 seconds within the day, for the given day, and latitude and longitude. |
Sunrise Sunset API pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO | $10 / month | — |
|
| ULTRA Recommended | $50 / month | — |
|
| MEGA | $100 / month | — |
|