APIs

Sunrise, Sunset & Golden Hour

When does the sun come up, when is golden hour, and how much daylight is left? For any place, today and for the next two weeks.

⚠ This tool does not work offline. It gets its data live from Sunrise-Sunset.org.

Had fun, or did this help? I’d appreciate any donation :) Not needed, but money buys temporary happiness at least lol

What it does

Pick a place and see today's sunrise and sunset, plus the times photographers plan around: the morning and evening golden hour (warm, soft light when the sun is low) and blue hour (the deep blue twilight just before sunrise and after sunset). You also get first light and last light (when the sky starts and stops brightening), solar noon, day length and how it's changing, and the moon's phase, rise and set. A table lists the same for the next 14 days.

All times are in the place's own time zone, and daylight saving changes are handled for you. The whole fortnight is fetched in a single request from Sunrise-Sunset.org and reused for a few hours.

Example

Chicago on October 31, 2026: first light 5:47 AM, sunrise 7:21 AM, morning golden hour 7:04 – 8:01 AM, sunset 5:45 PM, evening golden hour 5:06 – 6:03 PM, blue hour 6:03 – 6:14 PM, and 10 h 24 min of daylight. The next day, when the clocks go back, sunrise moves to 6:23 AM.

About the data source

Sunrise-Sunset.org is a free service that calculates sunrise, sunset, twilight, golden hour, blue hour and moon times for any coordinates using standard astronomical algorithms. Its API needs no key and asks for a visible link back (shown above) and for date ranges to be fetched in one request, which this page does. Place names are found with Open-Meteo's geocoding API, which is free for sites without ads.

Visit Sunrise-Sunset.org · API documentation · Terms of use · Every data source this site uses

Sunrise, Sunset & Golden Hour FAQ

What's the difference between first light and dawn?

First light is astronomical twilight, when the sky just begins to lighten. Dawn is civil twilight, when there's enough light to see clearly outdoors, about 30 minutes before sunrise.

Why does it say the sun doesn't set?

Near the poles, summer brings days when the sun never sets and winter days when it never rises. Those days show "up all day" or "down all day".