WeatherKit airQuality mystery

When I fetch weather for my location and print the raw Weather response to the console, airQualityAvailability is set to available in availability. And alongside currentWeather, dailyForecast, hourlyForecast, and minuteForecast, there is also an airQuality object that contains a lot of information.

I cannot figure out how to access this data through dot notation on the Weather response, and I cannot find any mention of air quality data in the documentation.

How can I access this AQI information? Or is it planned but not yet officially accessible?

Best, Michael

Answered by vfrisina in 718073022

Air quality is not one of the documented data sets in either the REST API or the native framework. It is probably best not to rely on it being there.

I have also been wondering about this, furthermore, I am also not able to get uvIndex to work either. Sorry I don't have a fix, just sharing that I too am experiencing this issue.

Where are you seeing this? Is this using the REST API?

Air quality is not one of the documented data sets in either the REST API or the native framework. It is probably best not to rely on it being there.

WeatherKit airQuality mystery
 
 
Q