Forecast
forecastGet a daily or hourly weather forecast for a location. Returns a list of forecast periods with conditions, temperatures, precipitation probability, and wind. Location can be "lat,lon" coordinates or a city name. Example: forecast({ location: "london", timestep: "1d", units: "metric" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Unit system: "metric" (default) or "imperial" | |
| _apiKey | No | Tomorrow.io API key (optional — get a free one at tomorrow.io; if omitted the platform key is used) | |
| location | Yes | Location to look up — either "lat,lon" coordinates (e.g. "40.71,-74.01") or a city name (e.g. "new york") | |
| timestep | No | Forecast granularity: "1d" daily (default) or "1h" hourly |