Air quality and weather data
AirVisual provides air quality and weather data, including current conditions and forecasts.
import requests
api_key = 'YOUR_API_KEY'
city = 'London'
state = 'England'
country = 'UK'
url = f'https://api.airvisual.com/v2/city?city={city}&state={state}&country={country}&key={api_key}'
response = requests.get(url)
data = response.json()
print(data)Last 50 checks (10 min intervals)