https://developer.apple.com/documentation/weatherkitrestapi
I created the start of a Python wrapper for WeatherKit, if anyone is interested in helping with that effort:
https://github.com/davecom/PyWeatherKit