# National Weather Service API

> Returns US forecasts, grid points, active alerts, observation stations and latest station observations.

Category: Travel, Maps & Weather. Region: US. 12 endpoints at `https://api.hoshime.com/v1/nws/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/nws
## GET /v1/nws/point

The NWS grid cell and forecast office of a point in the United States.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lat` | string | yes | Latitude inside the United States, -90 to 90. (e.g. 38.8894) |
| `lon` | string | yes | Longitude inside the United States, -180 to 180. (e.g. -77.0352) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `city` (string), `forecastUrl` (string), `gridColumn` (integer (int64)), `gridRow` (integer (int64)), `latitude` (number (double)), `longitude` (number (double)), `office` (string), `state` (string), `timeZone` (string)

```bash
curl "https://api.hoshime.com/v1/nws/point?lat=38.8894&lon=-77.0352" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nws/forecast

The forecast of a point in the United States, period by period.

Scope: `social:read` · Units: 1 · Cached: 30 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lat` | string | yes | Latitude inside the United States, -90 to 90. (e.g. 38.8894) |
| `lon` | string | yes | Longitude inside the United States, -180 to 180. (e.g. -77.0352) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `items` (Period[]), `items[].detailedForecast` (string), `items[].endAt` (string), `items[].isDaytime` (boolean), `items[].name` (string), `items[].number` (integer (int64)), `items[].precipitationChancePct` (integer (int64)), `items[].shortForecast` (string), `items[].startAt` (string), `items[].temperature` (integer (int64)), `items[].temperatureUnit` (string), `items[].windDirection` (string), `items[].windSpeed` (string), `point` (Point), `point.city` (string), `point.forecastUrl` (string), `point.gridColumn` (integer (int64)), `point.gridRow` (integer (int64)), `point.latitude` (number (double)), `point.longitude` (number (double)), `point.office` (string), `point.state` (string), `point.timeZone` (string), `updatedAt` (string)

```bash
curl "https://api.hoshime.com/v1/nws/forecast?lat=38.8894&lon=-77.0352" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nws/hourlyForecast

The hour-by-hour forecast of a point in the United States: temperature, rain chance, wind and humidity.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lat` | string | yes | Latitude inside the United States, -90 to 90. (e.g. 38.8894) |
| `lon` | string | yes | Longitude inside the United States, -180 to 180. (e.g. -77.0352) |
| `limit` | integer | no | Items per page, 1 to 156. (default 24; e.g. 24) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `dewpointCelsius` (number (double)), `endAt` (string), `isDaytime` (boolean), `number` (integer (int64)), `precipitationChancePct` (integer (int64)), `relativeHumidity` (integer (int64)), `shortForecast` (string), `startAt` (string), `temperature` (integer (int64)), `temperatureUnit` (string), `windDirection` (string), `windSpeed` (string)

```bash
curl "https://api.hoshime.com/v1/nws/hourlyForecast?lat=38.8894&lon=-77.0352&limit=24" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nws/alerts

Active watches, warnings and advisories of a US state or territory.

Scope: `social:read` · Units: 1 · Cached: 2 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `area` | string | yes | Two-letter state or territory code, such as CA or PR. (e.g. CA) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `areaDesc` (string), `certainty` (string), `description` (string), `effectiveAt` (string), `endsAt` (string), `event` (string), `expiresAt` (string), `headline` (string), `id` (string), `sender` (string), `sentAt` (string), `severity` (string), `urgency` (string)

```bash
curl "https://api.hoshime.com/v1/nws/alerts?area=CA" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nws/alertsAt

Active watches, warnings and advisories that cover a point in the United States.

Scope: `social:read` · Units: 1 · Cached: 2 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lat` | string | yes | Latitude inside the United States, -90 to 90. (e.g. 38.8894) |
| `lon` | string | yes | Longitude inside the United States, -180 to 180. (e.g. -77.0352) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `areaDesc` (string), `certainty` (string), `description` (string), `effectiveAt` (string), `endsAt` (string), `event` (string), `expiresAt` (string), `headline` (string), `id` (string), `sender` (string), `sentAt` (string), `severity` (string), `urgency` (string)

```bash
curl "https://api.hoshime.com/v1/nws/alertsAt?lat=38.8894&lon=-77.0352" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nws/stations

The weather observation stations of a state or territory, such as DC or PR.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `state` | string | yes | Two-letter state or territory code, such as CA or PR. (e.g. DC) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 5) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `elevationMeters` (number (double)), `id` (string), `latitude` (number (double)), `longitude` (number (double)), `name` (string), `timeZone` (string)

```bash
curl "https://api.hoshime.com/v1/nws/stations?state=DC&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nws/observation

The latest observation of one station: sky, temperature, wind, humidity, pressure and visibility.

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `station` | string | yes | Station identifier, such as KDCA. (e.g. KDCA) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `dewpointCelsius` (number (double)), `observedAt` (string), `pressurePa` (number (double)), `relativeHumidity` (number (double)), `station` (string), `temperatureCelsius` (number (double)), `text` (string), `visibilityMeters` (number (double)), `windDirectionDeg` (number (double)), `windSpeedKmh` (number (double))

```bash
curl "https://api.hoshime.com/v1/nws/observation?station=KDCA" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nws/observations

The recent observations of one weather station, newest first: the history of its temperature, wind, humidity and sky.

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `station` | string | yes | Station identifier, such as KDCA. (e.g. KDCA) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 5) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `dewpointCelsius` (number (double)), `observedAt` (string), `pressurePa` (number (double)), `relativeHumidity` (number (double)), `station` (string), `temperatureCelsius` (number (double)), `text` (string), `visibilityMeters` (number (double)), `windDirectionDeg` (number (double)), `windSpeedKmh` (number (double))

```bash
curl "https://api.hoshime.com/v1/nws/observations?station=KDCA&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nws/alertTypes

The names of every alert event the National Weather Service issues, such as Tornado Warning.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `name` (string)

```bash
curl "https://api.hoshime.com/v1/nws/alertTypes" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nws/zones

NWS forecast zones of a state or territory: public forecast zones, counties, fire zones or marine zones.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `area` | string | yes | Two-letter state or territory code, such as CA or PR. (e.g. DC) |
| `type` | string | no | Zone type: public, county, fire or forecast. (one of public, county, fire, forecast; default public; e.g. public) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `name` (string), `state` (string), `timeZone` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/nws/zones?area=DC&type=public" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nws/products

Recent text products of a forecast office, newest first: area forecast discussions by default.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `office` | string | yes | Three or four letter office code, such as LWX. (e.g. LWX) |
| `type` | string | no | Product code: AFD (area forecast discussion), AFM, HWO, NOW and others. (default AFD; e.g. AFD) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10; e.g. 3) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `issuedAt` (string), `issuingOffice` (string), `productCode` (string), `productName` (string), `wmoCollectiveId` (string)

```bash
curl "https://api.hoshime.com/v1/nws/products?office=LWX&type=AFD&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/nws/glossary

Meteorological terms of the National Weather Service glossary, with an optional text filter on the term or definition.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Text to find in a term or its definition, such as hurricane. (e.g. hurricane) |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 5) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `definition` (string), `term` (string)

```bash
curl "https://api.hoshime.com/v1/nws/glossary?query=hurricane&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
