Private BetaFound a bug or have feedback? Share it →

Sunrise / Sunset

Sunrise, sunset, solar noon, and twilight times for any coordinates and date. Free, no key required.

Healthy
WeatherNo upstream key required

Base URL

https://api.apiclearinghouse.com/v1/call/sunrise-sunset

Authenticate with X-Api-Key: chk_live_... header.

GET/times

Parameters

NameTypeRequiredDescription
latnumberrequiredLatitude (-90 to 90)
lngnumberrequiredLongitude (-180 to 180)
datestringoptionalDate in YYYY-MM-DD format (default: today)
tzidstringoptionalIANA timezone ID for result times (e.g. America/New_York)

Example Request

curl -s "https://api.apiclearinghouse.com/v1/call/sunrise-sunset/times?lat={lat}&lng={lng}&date={date}&tzid={tzid}" \
  -H "X-Api-Key: YOUR_API_KEY"

Example Response

{
  "status": "success",
  "data": {
    "status": "example",
    "sunset": "example",
    "sunrise": "example",
    "day_length": "example",
    "solar_noon": "example"
  }
}

Try it live

No setup required. Sign in and run Sunrise / Sunset directly from your browser.

Open in Explorer →

Rate Limits

Free10/min
Pro100/min
Elite500/min

Monthly limits also apply per plan.

Authentication

Pass your API key in the request header:

X-Api-Key: chk_live_...
Join the beta
← Back to catalog
sunrise-sunset API Documentation — API Clearinghouse