Historical Weather
weather_historicalGet historical weather and astronomy data for any past date back to 1940. Returns daily or hourly details for a given location using city name, coordinates, or IP address.
Instructions
Get historical weather data for a specific past date (back to 1940). Returns daily or hourly weather + astronomy for the given date. Only past dates are allowed — current or future dates are rejected. Provide at least one of: 'location', lat+long, or 'ip'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Target date in YYYY-MM-DD format. Must be a past date (back to 1940). | |
| location | No | Target location — city name, place name, or full address (e.g. "London", "Paris, France", "1600 Amphitheatre Parkway, Mountain View, CA"). | |
| lat | No | Latitude (-90 to 90). Must be paired with 'long'. | |
| long | No | Longitude (-180 to 180). Must be paired with 'lat'. | |
| ip | No | IPv4 or IPv6 address. Required if 'location' and lat/long are not provided. | |
| precision | No | Data granularity: 'daily' (default) or 'hourly'. | daily |
| time_zone | No | Timezone for returned timestamps (tz database name, e.g. 'America/New_York'). Defaults to the resolved location's timezone. |