2026-03-17 03:32:40 +00:00
|
|
|
# weatherapi
|
|
|
|
|
|
2026-03-27 22:39:17 -05:00
|
|
|
A small HTTP API that serves a variety of weather-related endpoints.
|
|
|
|
|
|
|
|
|
|
## Endpoints
|
|
|
|
|
|
|
|
|
|
- `GET /observations`
|
|
|
|
|
- `GET /conditions/current`
|
|
|
|
|
- `GET /alerts/active`
|
2026-03-28 17:36:35 -05:00
|
|
|
- `GET /discussion`
|
2026-03-27 22:39:17 -05:00
|
|
|
- `GET /forecast/hourly`
|
|
|
|
|
- `GET /forecast/hourly/today`
|
|
|
|
|
- `GET /forecast/hourly/tomorrow`
|
|
|
|
|
- `GET /forecast/narrative`
|
|
|
|
|
- `GET /forecast/narrative/today`
|
|
|
|
|
- `GET /forecast/narrative/tomorrow`
|
|
|
|
|
|
|
|
|
|
## Query Parameters
|
|
|
|
|
|
|
|
|
|
Shared weather query parameters:
|
|
|
|
|
|
|
|
|
|
- `format` (`json`, `xml`, `text`)
|
|
|
|
|
- `units` (`metric`, `us`)
|
|
|
|
|
|
|
|
|
|
Forecast endpoint query parameters:
|
|
|
|
|
|
|
|
|
|
- `precision` (`0`-`2`)
|
2026-03-28 17:36:35 -05:00
|
|
|
|
|
|
|
|
Forecast and discussion endpoint query parameters:
|
|
|
|
|
|
2026-03-27 22:39:17 -05:00
|
|
|
- `tz` / `TZ` (IANA timezone, US abbreviation, or UTC offset)
|