WeatherAPI.com at https://api.weatherapi.com/v1 serves current weather, forecasts, history, air quality, and astronomy. q takes a city, coordinates, postal code, or IP.
Sign up at weatherapi.com and pass your key as key. In the examples it's written {{WEATHERAPI_KEY}}.
Full reference: https://www.weatherapi.com/docs/
aqi=yes adds air quality.
curl "https://api.weatherapi.com/v1/current.json?key={{WEATHERAPI_KEY}}&q=London&aqi=yes"
curl "https://api.weatherapi.com/v1/forecast.json?key={{WEATHERAPI_KEY}}&q=Boulder&days=3"
curl "https://api.weatherapi.com/v1/astronomy.json?key={{WEATHERAPI_KEY}}&q=Tokyo&dt=2026-09-23"