Weather Forecast
weather_forecastGet weather forecasts for up to 16 days with daily, hourly, or minutely precision. Specify location by city, coordinates, or IP address.
Instructions
Get weather forecast for up to 16 days with daily, hourly, or minutely precision. Use EITHER 'forecast_days' OR 'start_date'+'end_date' to define the range, not both. Only current or future dates are allowed. Provide at least one of: 'location', lat+long, or 'ip'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | IPv4 or IPv6 address. Required if 'location' and lat/long are not provided. | |
| lat | No | Latitude (-90 to 90). Must be paired with 'long'. | |
| long | No | Longitude (-180 to 180). Must be paired with 'lat'. | |
| end_date | No | End date for forecast range (YYYY-MM-DD). Current or future dates only. Must be paired with 'start_date'. Max 16-day range. | |
| location | No | Target location — city name, place name, or full address (e.g. "London", "Paris, France", "1600 Amphitheatre Parkway, Mountain View, CA"). | |
| precision | No | Forecast granularity: 'daily' (default), 'hourly', or 'minutely'. | daily |
| time_zone | No | Timezone for returned timestamps (tz database name, e.g. 'America/New_York'). Defaults to the resolved location's timezone. | |
| start_date | No | Start date for forecast range (YYYY-MM-DD). Current or future dates only. Must be paired with 'end_date'. Max 16-day range. | |
| forecast_days | No | Number of forecast days (1–16). Defaults to 7 if neither this nor start_date/end_date is provided. Do NOT combine with start_date/end_date. |