India Historical + Forecast — Weather data API providing current conditions, forecasts, and historical weather data for Maharashtra cities with free and paid tiers
import requests
# OpenWeatherMap API
api_key = 'YOUR_API_KEY' # Register at openweathermap.org
url = f'https://api.openweathermap.org/data/2.5/weather?q=Mumbai&appid={api_key}'
print('OpenWeatherMap: https://openweathermap.org/')| Field | Type | Description |
|---|---|---|
| city | string | City name |
| temp | float | Current temperature in Celsius |
| humidity | float | Humidity percentage |
| weather | string | Weather condition description |