Calculate precise sunrise and sunset times along with civil, nautical, and astronomical twilight for any location and date. Get golden hour timing for photography, dawn and dusk times for outdoor activities, and solar noon for architectural planning.
{
"status": "ok",
"error": null,
"data": {
"solarNoon": "2025-12-16T12:14:40.51Z",
"sunrise": "2025-12-16T07:24:56.165Z",
"sunset": "2025-12-16T17:04:24.854Z",
"sunriseEnd": "2025-12-16T07:27:58.828Z",
"sunsetStart": "2025-12-16T17:01:22.192Z",
"dawn": "2025-12-16T06:56:02.774Z",
"dusk": "2025-12-16T17:33:18.245Z",
"nauticalDawn": "2025-12-16T06:23:38.134Z",
"nauticalDusk": "2025-12-16T18:05:42.886Z",
"nightEnd": "2025-12-16T05:52:07.048Z",
"night": "2025-12-16T18:37:13.971Z",
"goldenHourEnd": "2025-12-16T08:05:08.406Z",
"goldenHour": "2025-12-16T16:24:12.613Z"
}
}






Calculate precise sunrise and sunset times along with civil, nautical, and astronomical twilight for any location and date. Get golden hour timing for photography, dawn and dusk times for outdoor activities, and solar noon for architectural planning.
A single authenticated GET with the location you care about — no SDK required.
GET /v1/sunrisesunset?query=… x-api-key: your_key
Each request pulls from multiple upstream sources and computes the derived fields for you.
One structured object, typically under 200 ms — ready to render.
{ solarNoon, sunrise, sunset, … }
Real applications shipping on this endpoint today — each with the numbers that made it worth wiring up.
See every use caseOur API provides exact golden hour start and end times for any location and date. Plan shoots days or weeks in advance, set alerts, and arrive with confidence knowing exactly when the magic light begins.
Query our API daily to get exact sunrise and sunset times for your location. Schedule your smart home triggers dynamically so lights always respond to actual daylight conditions.
Get precise daylight hours for any location and date. Calculate available hiking time, plan outdoor weddings around sunset, or schedule beach activities during optimal sun hours.
Copy a working request, or install a typed SDK. Same endpoint, same key.
const res = await fetch("https://api.apiverve.com/v1/sunrisesunset?lat=36.72016&lon=-4.42034&date=01-16-2026", {
headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);Every related API ships with your key — no separate plans, no extra keys, one bill.
See pricingReady-made recipes for Zapier, Make, and n8n — trigger on an event, and the data lands where your team works.
The same key unlocks every other APIVerve endpoint — reach for them when you need them.
Browse the catalog