I started yesterday using the weatherkitrestapi and it was working fine to get weather data from past days, now when I try to get t historical weather conditions for a specified date range, it only returns data from today. Any Idea? The url that was working until yesterday was this https://weatherkit.apple.com/api/v1/weather/es_ES/40.49356/-3.56676/?dataSets=forecastHourly&dailyStart=2023-04-01T00:00:00Z&dailyEnd=2023-04-02T00:00:01Z&timezone=Europe/Madrid
weatherkitrestapi stopped working
I see the same with US locations; it's not honoring the DailyStart and DailyEnd anymore. No matter what param you ask for it gives back the next 24 hrs, instead of up to 10 days. It worked fine until 9 AM PDT 4/12.
dailyStart and dailyEnd control the bounds of the daily forecast. hourlyStart and hourlyEnd control the bounds of the hourly forecast. These are separate to allow using different bounds for each, such as getting an hourly forecast for the next 24 hours plus a daily forecast for the next 10 days all in one call rather than splitting it across two calls.
Changing the query to
https://weatherkit.apple.com/api/v1/weather/es_ES/40.49356/-3.56676/?dataSets=forecastHourly&hourlyStart=2023-04-01T00:00:00Z&hourlyEnd=2023-04-02T00:00:01Z&timezone=Europe/Madrid
gives the data you expect.