Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Sunrise and Sunset times for forecasted days

Peter Haynes Jan 09, 2017 06:32PM MSK

I see it has been raised before that sunrise and sunset times are only available in current weather requests. (

As this issue was first raised in February 2015 I wondered if there was any progress?

I need sunrise times for days in the future and am going to be forced to change API if I can not get these.

As a free account user I appreciate all the work that has gone into the API but cannot commit to paying for an account when my application is ready for production without this functionality in place.

Up 0 rated Down
Maxim Gushcho Jan 10, 2017 02:51PM MSK OpenWeatherMap Agent


Thanks for raising this question again.
Based on the logic of our forecast data it is not correct to implement sunrise and sunset info for 5 day/3hours API.
This feature is more applicable for the 16 daily API.
We will consider this implementation in the next version of our API.
Also, monitor our news page to be aware about lattest updates.
Thanks for understanding and hope you stay in touch with us.

Up 0 rated Down
Andrey Sep 12, 2017 08:46AM MSK
Hello, I wonder if there was any progress with sunset and sunrise in 16days forecast?
Up 0 rated Down
Maxim Gushcho Sep 12, 2017 05:16PM MSK OpenWeatherMap Agent


Unfortunately, we did not implement this functionality so far.
The sunrise and sunset values are only provided in the current API service.

Up 1 rated Down
Mauro Bennici Nov 06, 2017 04:54PM MSK

it is quite odd that the sun data are exposed in forecast api in XML format and are absent in the same api in JSON format.
Up 0 rated Down
Maxim Gushcho Nov 07, 2017 08:27PM MSK OpenWeatherMap Agent


We will put all efforts to deploy this functionality as soon as possible.


Up 0 rated Down
Pawel Mar 04, 2018 09:07PM MSK
any updated on adding sunrise and sunset into the json forcast api?

Up 0 rated Down
Maxim Gushcho Mar 05, 2018 12:30PM MSK OpenWeatherMap Agent


We do have this in our roadmap. The exact dates can not be speciifed so far.


Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found