weather-history
Get historical daily weather data (temperature, precipitation, wind, sunshine) for any location from 1940 to recent days. Use for seasonal analysis, anomaly detection, and climate-context enrichment.
Instructions
Historical daily weather (temperature, precipitation, wind, sunshine) for any location from 1940 to ~5 days ago. Uses ERA5 reanalysis data. Accepts city name or lat,lng. Returns per-day values plus period summary stats. Useful for seasonal analysis, anomaly detection, and climate-context enrichment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | City name (e.g. 'Phoenix, AZ') or 'lat,lng' (e.g. '33.45,-112.07'). Defaults to 'New York, NY'. | |
| start_date | No | Start date YYYY-MM-DD (e.g. 2024-01-01). Earliest: 1940-01-01. Defaults to 30 days ago. | |
| end_date | No | End date YYYY-MM-DD (latest: ~5 days before today). Defaults to yesterday if omitted. | |
| vars | No | Comma-separated variable names to include. Defaults to temperature_2m_max, temperature_2m_min, temperature_2m_mean, precipitation_sum, wind_speed_10m_max, sunshine_duration. Valid options: apparent_temperature_max, apparent_temperature_mean, apparent_temperature_min, cloud_cover_mean, et0_fao_evapotranspiration, precipitation_hours, precipitation_sum, rain_sum, shortwave_radiation_sum, snowfall_sum, sunshine_duration, temperature_2m_max, temperature_2m_mean, temperature_2m_min, weather_code, wind_direction_10m_dominant, wind_gusts_10m_max, wind_speed_10m_max | |
| units | No | Unit system. 'metric' = °C / mm / km/h (default). 'imperial' = °F / inch / mph. |