Nws Get Observation History
nws_get_observation_historyGet a station's recent observation history, newest first — the trend behind the single latest reading nws_get_observations returns (is pressure falling, is the wind picking up). NWS keeps about the last 7 days per station, and a busy airport station reports as often as every 5 minutes, so a day can run past 100 observations: narrow with start (inclusive) and end (exclusive), and page back to older observations with nextCursor. Takes a station ID; use nws_find_stations to find one near a coordinate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Time to stop before (exclusive), in the same format as start. Omit to start from the most recent observation. | |
| limit | No | Observations per page (1-100), newest first. When a page fills the limit, pass its nextCursor back as cursor for older observations. | |
| start | No | Earliest observation time to include (inclusive), as an ISO 8601 date-time with seconds and an offset (e.g., "2026-09-30T00:00:00Z" or "2026-09-29T17:00:00-07:00"). Omit to reach back as far as NWS keeps, about 7 days. | |
| cursor | No | Opaque continuation token from a previous response's nextCursor. Omit for the first page. It carries that query's start, end, and limit, so those inputs apply to the first page only. Each page continues from just before the oldest observation of the one before it, so pages neither repeat nor skip an observation. | |
| station_id | Yes | Observation station ID (e.g., "KSEA"), case-insensitive. Use nws_find_stations to discover station IDs near a coordinate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The page limit this page filled, when truncated is true | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Number of observations returned in this page | |
| notice | No | Guidance when the window held no observations (NWS keeps about the last 7 days), or when this page filled the limit and older observations may remain. | |
| timeZone | No | Station time zone when known | |
| stationId | No | Observation station ID, uppercased | |
| truncated | No | True when this page filled the limit and older observations in the window may remain; continue with nextCursor. | |
| nextCursor | No | Opaque token for the next, older page — pass it back as cursor. Present only when this page filled the limit; omitted on the last page. | |
| stationName | No | Station name | |
| observations | No | Observations in the window, newest first |