WeatherKit historical

is using /api/v1/weather/{language}/{latitude}/{longitude} the correct way to retrieve historical weather data for a location? e.g. getting hourly weather data for Seattle from 2016-03-04 to 2016-03-11?

https://developer.apple.com/documentation/weatherkitrestapi/get-api-v1-weather-language-latitude-longitude

this is pointed out in the API docs as being the method to pull hourly weather data for a specific location. It doesn't indicate wether it is for current weather or historical

Answered by in 827529022

That is the correct endpoint to use for historical data. You would just specify the start and end times for the forecast you want or currentAsOf for a snapshot in time.

Note, however, that WeatherKit provides historical weather back to 2022-08-01 so the dates you gave are not available.

Accepted Answer

That is the correct endpoint to use for historical data. You would just specify the start and end times for the forecast you want or currentAsOf for a snapshot in time.

Note, however, that WeatherKit provides historical weather back to 2022-08-01 so the dates you gave are not available.

WeatherKit historical
 
 
Q