NWS US Hourly Weather Forecast
Retrieve hourly weather forecast periods for a National Weather Service forecast grid. Supply a grid and an office. Sample fields include coordinates. Feed the data into a location-based weather dashboard.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
NWS US Hourly Weather Forecast
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
@context(string | object)[]@versionstring@vocabstringgeostringunitstringwxstring
geometryobjectcoordinatesnumber[][][]typestring
propertiesobjectelevationobjectunitCodestringvaluenumber
forecastGeneratorstringgeneratedAtstringperiodsobject[]detailedForecaststringdewpointobjectunitCodestringvaluenumber
endTimestringiconstringisDaytimebooleannamestringnumberintegerprobabilityOfPrecipitationobjectunitCodestringvalueinteger
relativeHumidityobjectunitCodestringvalueinteger
shortForecaststringstartTimestringtemperatureintegertemperatureTrendnulltemperatureUnitstringwindDirectionstringwindSpeedstring
unitsstringupdateTimestringvalidTimesstring
typestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
"@context"?: Array<string | {
"@version"?: string;
"@vocab"?: string;
geo?: string;
unit?: string;
wx?: string;
}>;
geometry?: {
coordinates?: Array<Array<Array<number>>>;
type?: string;
};
properties?: {
elevation?: {
unitCode?: string;
value?: number;
};
forecastGenerator?: string;
generatedAt?: string;
periods?: Array<{
detailedForecast?: string;
dewpoint?: {
unitCode?: string;
value?: number;
};
endTime?: string;
icon?: string;
isDaytime?: boolean;
name?: string;
number?: number;
probabilityOfPrecipitation?: {
unitCode?: string;
value?: number;
};
relativeHumidity?: {
unitCode?: string;
value?: number;
};
shortForecast?: string;
startTime?: string;
temperature?: number;
temperatureTrend?: null;
temperatureUnit?: string;
windDirection?: string;
windSpeed?: string;
}>;
units?: string;
updateTime?: string;
validTimes?: string;
};
type?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
nwsCurrent NWS US Hourly Weather Forecast · GET · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/nws/hourly/{office}/{grid}- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/nws/hourly/LWX/97%2C71' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
grid | URL path parameterspath | string | Yes | Grid coordinates as one comma-separated path segment, such as 97,71. minLength: 1 · maxLength: 16 |
office | URL path parameterspath | string | Yes | NWS forecast office identifier, such as LWX. minLength: 1 · maxLength: 3 |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"@context": [
"https://geojson.org/geojson-ld/geojson-context.jsonld",
{
"@version": "1.1",
"@vocab": "https://api.weather.gov/ontology#",
"geo": "http://www.opengis.net/ont/geosparql#",
"unit": "http://codes.wmo.int/common/unit/",
"wx": "https://api.weather.gov/ontology#"
}
],
"geometry": {
"coordinates": [
[
[
-77.0125,
38.8759
],
[
-77.0088,
38.8979
],
[
-77.037,
38.9008
],
[
-77.0408,
38.8788
],
[
-77.0125,
38.8759
]
]
],
"type": "Polygon"
},
"properties": {
"elevation": {
"unitCode": "wmoUnit:m",
"value": 6.096
},
"forecastGenerator": "HourlyForecastGenerator",
"generatedAt": "2026-11-03T14:37:44+00:00",
"periods": [
{
"detailedForecast": "",
"dewpoint": {
"unitCode": "wmoUnit:degC",
"value": 10
},
"endTime": "2026-11-03T10:00:00-05:00",
"icon": "https://api.weather.gov/icons/land/day/sct?size=small",
"isDaytime": true,
"name": "",
"number": 1,
"probabilityOfPrecipitation": {
"unitCode": "wmoUnit:percent",
"value": 1
},
"relativeHumidity": {
"unitCode": "wmoUnit:percent",
"value": 80
},
"shortForecast": "Mostly Sunny",
"startTime": "2026-11-03T09:00:00-05:00",
"temperature": 56,
"temperatureTrend": null,
"temperatureUnit": "F",
"windDirection": "S",
"windSpeed": "3 mph"
},
{
"detailedForecast": "",
"dewpoint": {
"unitCode": "wmoUnit:degC",
"value": 10.555555555555555
},
"endTime": "2026-11-03T11:00:00-05:00",
"icon": "https://api.weather.gov/icons/land/day/few?size=small",
"isDaytime": true,
"name": "",
"number": 2,
"probabilityOfPrecipitation": {
"unitCode": "wmoUnit:percent",
"value": 2
},
"relativeHumidity": {
"unitCode": "wmoUnit:percent",
"value": 70
},
"shortForecast": "Sunny",
"startTime": "2026-11-03T10:00:00-05:00",
"temperature": 61,
"temperatureTrend": null,
"temperatureUnit": "F",
"windDirection": "S",
"windSpeed": "5 mph"
}
],
"units": "us",
"updateTime": "2026-11-03T11:53:28+00:00",
"validTimes": "2026-11-03T05:00:00+00:00/P7DT20H"
},
"type": "Feature"
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# NWS US Hourly Weather Forecast
Retrieve hourly weather forecast periods for a National Weather Service forecast grid. Supply a grid and an office. Sample fields include coordinates. Feed the data into a location-based weather dashboard.
Documentation: https://openany.si/apis/fd4d1f3f-e99c-4d1f-bd9a-87a3f067a3b1
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/nws/hourly/{office}/{grid}
Price: $0 / call
Provider: nws
Contract revision: 4
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/nws/hourly/LWX/97%2C71' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "NWS US Hourly Weather Forecast",
"endpoint": "https://api.openany.si/v1/agent-apis/nws/hourly/{office}/{grid}",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Grid coordinates as one comma-separated path segment, such as 97,71.",
"location": "path",
"max_length": 16,
"min_length": 1,
"name": "grid",
"nullable": false,
"required": true,
"type": "string"
},
{
"description": "NWS forecast office identifier, such as LWX.",
"location": "path",
"max_length": 3,
"min_length": 1,
"name": "office",
"nullable": false,
"required": true,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example (source abbreviated)",
"request": {
"body": null,
"headers": {},
"path": {
"grid": "97,71",
"office": "LWX"
},
"query": {}
},
"response_body": {
"@context": [
"https://geojson.org/geojson-ld/geojson-context.jsonld",
{
"@version": "1.1",
"@vocab": "https://api.weather.gov/ontology#",
"geo": "http://www.opengis.net/ont/geosparql#",
"unit": "http://codes.wmo.int/common/unit/",
"wx": "https://api.weather.gov/ontology#"
}
],
"geometry": {
"coordinates": [
[
[
-77.0125,
38.8759
],
[
-77.0088,
38.8979
],
[
-77.037,
38.9008
],
[
-77.0408,
38.8788
],
[
-77.0125,
38.8759
]
]
],
"type": "Polygon"
},
"properties": {
"elevation": {
"unitCode": "wmoUnit:m",
"value": 6.096
},
"forecastGenerator": "HourlyForecastGenerator",
"generatedAt": "2026-11-03T14:37:44+00:00",
"periods": [
{
"detailedForecast": "",
"dewpoint": {
"unitCode": "wmoUnit:degC",
"value": 10
},
"endTime": "2026-11-03T10:00:00-05:00",
"icon": "https://api.weather.gov/icons/land/day/sct?size=small",
"isDaytime": true,
"name": "",
"number": 1,
"probabilityOfPrecipitation": {
"unitCode": "wmoUnit:percent",
"value": 1
},
"relativeHumidity": {
"unitCode": "wmoUnit:percent",
"value": 80
},
"shortForecast": "Mostly Sunny",
"startTime": "2026-11-03T09:00:00-05:00",
"temperature": 56,
"temperatureTrend": null,
"temperatureUnit": "F",
"windDirection": "S",
"windSpeed": "3 mph"
},
{
"detailedForecast": "",
"dewpoint": {
"unitCode": "wmoUnit:degC",
"value": 10.555555555555555
},
"endTime": "2026-11-03T11:00:00-05:00",
"icon": "https://api.weather.gov/icons/land/day/few?size=small",
"isDaytime": true,
"name": "",
"number": 2,
"probabilityOfPrecipitation": {
"unitCode": "wmoUnit:percent",
"value": 2
},
"relativeHumidity": {
"unitCode": "wmoUnit:percent",
"value": 70
},
"shortForecast": "Sunny",
"startTime": "2026-11-03T10:00:00-05:00",
"temperature": 61,
"temperatureTrend": null,
"temperatureUnit": "F",
"windDirection": "S",
"windSpeed": "5 mph"
}
],
"units": "us",
"updateTime": "2026-11-03T11:53:28+00:00",
"validTimes": "2026-11-03T05:00:00+00:00/P7DT20H"
},
"type": "Feature"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example (source abbreviated)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 2
Review these request fields before running. Keep the published provider and request method unchanged.
grid- Grid coordinates as one comma-separated path segment, such as 97,71.
office- NWS forecast office identifier, such as LWX.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/nws/hourly/LWX/97%2C71' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "@context": [ "https://geojson.org/geojson-ld/geojson-context.jsonld", { "@version": "1.1", "@vocab": "https://api.weather.gov/ontology#", "geo": "http://www.opengis.net/ont/geosparql#", "unit": "http://codes.wmo.int/common/unit/", "wx": "https://api.weather.gov/ontology#" } ], "geometry": { "coordinates": [ [ [ -77.0125, 38.8759 ], [ -77.0088, 38.8979 ], [ -77.037, 38.9008 ], [ -77.0408, 38.8788 ], [ -77.0125, 38.8759 ] ] ], "type": "Polygon" }, "properties": { "elevation": { "unitCode": "wmoUnit:m", "value": 6.096 }, "forecastGenerator": "HourlyForecastGenerator", "generatedAt": "2026-11-03T14:37:44+00:00", "periods": [ { "detailedForecast": "", "dewpoint": { "unitCode": "wmoUnit:degC", "value": 10 }, "endTime": "2026-11-03T10:00:00-05:00", "icon": "https://api.weather.gov/icons/land/day/sct?size=small", "isDaytime": true, "name": "", "number": 1, "probabilityOfPrecipitation": { "unitCode": "wmoUnit:percent", "value": 1 }, "relativeHumidity": { "unitCode": "wmoUnit:percent", "value": 80 }, "shortForecast": "Mostly Sunny", "startTime": "2026-11-03T09:00:00-05:00", "temperature": 56, "temperatureTrend": null, "temperatureUnit": "F", "windDirection": "S", "windSpeed": "3 mph" }, { "detailedForecast": "", "dewpoint": { "unitCode": "wmoUnit:degC", "value": 10.555555555555555 }, "endTime": "2026-11-03T11:00:00-05:00", "icon": "https://api.weather.gov/icons/land/day/few?size=small", "isDaytime": true, "name": "", "number": 2, "probabilityOfPrecipitation": { "unitCode": "wmoUnit:percent", "value": 2 }, "relativeHumidity": { "unitCode": "wmoUnit:percent", "value": 70 }, "shortForecast": "Sunny", "startTime": "2026-11-03T10:00:00-05:00", "temperature": 61, "temperatureTrend": null, "temperatureUnit": "F", "windDirection": "S", "windSpeed": "5 mph" } ], "units": "us", "updateTime": "2026-11-03T11:53:28+00:00", "validTimes": "2026-11-03T05:00:00+00:00/P7DT20H" }, "type": "Feature" }