Skip to content

SunriseSunset.io API

Sunrise, sunset, dawn, dusk and golden hour in the local timezone of the coordinate.
Status
Working
API key
Not needed
Browser calls
Runs in the browser
Latency
191 ms

Build snapshot, not live. One verifier run on , from the machine that built this site. How we check

Example request

GEThttps://api.sunrisesunset.io/json?lat=38.907192&lng=-77.036873

Sent from your browser straight to api.sunrisesunset.io. No proxy: this site never sees the request or the answer.

Copy the request

Shell
curl -s 'https://api.sunrisesunset.io/json?lat=38.907192&lng=-77.036873'

Response stored by the verifier

This is what api.sunrisesunset.io answered when the verifier sent the request above on : HTTP 200, application/json. Arrays are cut to two items and long strings are shortened. It comes from the build snapshot.

application/json · stored
{
  "results": {
    "date": "2026-10-03",
    "sunrise": "7:05:07 AM",
    "sunset": "6:48:29 PM",
    "first_light": "5:36:30 AM",
    "last_light": "8:16:55 PM",
    "dawn": "6:38:31 AM",
    "dusk": "7:15:03 PM",
    "solar_noon": "12:57:06 PM",
    "golden_hour": "6:13:05 PM",
    "day_length": "11:43:21",
    "nautical_twilight_begin": "6:07:37 AM",
    "nautical_twilight_end": "7:45:53 PM",
    "timezone": "America/New_York",
    "utc_offset": -240
  },
  "status": "OK",
  "tzid": "America/New_York"
}

Availability

Up 1 of 1 day checked · 30-day window

What counts as up for this API: an answer within five seconds, a 2xx status, and the JSON body must contain the field "results".

Last check: — passed, HTTP 200 in 191 ms.

The check runs from our infrastructure, not from where you are. If you need certainty, send the request yourself above. How the verifier works.

Questions

Does the SunriseSunset.io API need an API key?

No. The sample request on this page was answered without a key, token or account.

Can I call the SunriseSunset.io API from the browser?

Yes. api.sunrisesunset.io answered our verifier with an Access-Control-Allow-Origin header on Oct 3, 2026, so a fetch call from a web page can read the response.

Is the SunriseSunset.io API working?

At the check on Oct 3, 2026 it returned HTTP 200 with the expected data in 191 ms. The status at the top of this page shows the most recent result we have.