Trigger lights and blinds based on actual sunrise and sunset, not fixed schedules.
Fixed-schedule home automation doesn't adapt to changing day length. Lights turn on too early in summer and too late in winter, wasting energy and missing the mark on comfort.
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.
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);