Smart Home Lighting Automation

Trigger lights and blinds based on actual sunrise and sunset, not fixed schedules.

Adaptiveto seasons
Energy savingsoptimized timing
Always accuratefor your location
The problem

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.

The solution

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.

Everything this unlocks.

Lights adapt to actual daylight year-round
Save energy with precise timing
Offset triggers (e.g., 30 min before sunset)
Works with any automation platform

Working code, ready to paste.

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);

Ship smart home lighting automation faster. One key, the Sunrise Sunset API, and 300+ more APIs.

Scaling up?

Volume pricing, custom SLAs, and dedicated support for high-traffic teams.

Contact sales