Weather Timeline
weather_timelineGet daily weather for a location — works for BOTH historical weather (past dates) and forecast (future or no dates). Use this for HISTORICAL weather and "weather on a past date" questions, e.g. "what was the weather in Paris on 2023-07-04" (location: "Paris", start_date: "2023-07-04"). Pass start_date alone for a single day, or start_date + end_date for a range (weather timeline). Returns per-day temp/min/max, humidity, precipitation, wind, and conditions. Example: weather_timeline({ location: "London", start_date: "2024-01-01", end_date: "2024-01-07" }).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Unit group: "metric" (°C, km/h — default), "us" (°F, mph), or "uk". | |
| _apiKey | No | Optional — your own Visual Crossing API key for higher limits; omit to use the shared Pipeworx key. | |
| end_date | No | Optional end date in YYYY-MM-DD format. Only used when start_date is also given; produces a date-range timeline. | |
| location | Yes | City name (e.g. "Paris", "New York, NY") or "lat,lon" (e.g. "48.8566,2.3522"). | |
| start_date | No | Optional start date in YYYY-MM-DD format. Past dates return HISTORICAL weather; future dates return forecast. Omit for the default 15-day forecast. |