WeatherKit now returning {"reason": "EXPIRED"}

I've been using the weather kit API for months now without issue, but all of a sudden API queries return the response {"reason": "EXPIRED"}. The code around this area hasn't changed since June and the credentials haven't changed. The JWT is refreshed frequently (well within expiration). Have looked at the generated JWT in jwt.io and Payload and Header details correct and jwt.io reports JWT as "signature verified".

Is the JWT a red herring and its something else?

Here's an example URL:

https://weatherkit.apple.com/api/v1/weather/en_AU/-37.37834963844341/144.76238003519637?dailyStart=2024-12-12T13:00:00Z&dailyEnd=2024-12-13T13:00:00Z&timeZone=Australia/Melbourne&dataSets=forecastDaily

Would appreciate any insights you may have.

Answered by in 817986022

Thank you for raising this issue. The WeatherKit team is investigating it now.

Just want to +1 this - we have the same error.

We have a set of long-running production jobs that pull from weatherkit, and as of ~2024-12-12 21:00 UTC they started returning 401 {"reason": "EXPIRED"} - same issue as you're facing.

We've tried everything, and can't find a way to contact someone in support either. Our feedback assistant case is still unanswered

Accepted Answer

Thank you for raising this issue. The WeatherKit team is investigating it now.

Can confirm that working for us again as well. Thanks for fixing the issue WeatherKit team.

WeatherKit now returning {"reason": "EXPIRED"}
 
 
Q