# NWS Hourly Forecast API

Get NWS Hourly Forecast data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Nws, configure supported query parameters and filters, and retrieve structured data including forecast generation time, source update time, forecast-period start, forecast-period end, and forecast temperature to build an hourly weather view, support local planning, and show forecast freshness.

Documentation: https://openany.si/market/apis/nws/nws-us-hourly-weather-forecast/
API ID: fd4d1f3f-e99c-4d1f-bd9a-87a3f067a3b1
Provider: nws
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/nws/hourly/{office}/{grid}
Page update time: 2026-12-03T02:36:40.371Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:36:40.371Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "NWS Hourly Forecast API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "grid": {
          "type": "string",
          "description": "Grid coordinates as one comma-separated path segment, such as 97,71.",
          "minLength": 1,
          "maxLength": 16
        },
        "office": {
          "type": "string",
          "description": "NWS forecast office identifier, such as LWX.",
          "minLength": 1,
          "maxLength": 3
        }
      },
      "required": [
        "grid",
        "office"
      ]
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "@context": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "object",
            "properties": {
              "@version": {
                "type": "string"
              },
              "@vocab": {
                "type": "string"
              },
              "geo": {
                "type": "string"
              },
              "unit": {
                "type": "string"
              },
              "wx": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    "geometry": {
      "type": "object",
      "properties": {
        "coordinates": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "number"
              }
            }
          }
        },
        "type": {
          "type": "string"
        }
      }
    },
    "properties": {
      "type": "object",
      "properties": {
        "elevation": {
          "type": "object",
          "properties": {
            "unitCode": {
              "type": "string"
            },
            "value": {
              "type": "number"
            }
          }
        },
        "forecastGenerator": {
          "type": "string"
        },
        "generatedAt": {
          "type": "string"
        },
        "periods": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "detailedForecast": {
                "type": "string"
              },
              "dewpoint": {
                "type": "object",
                "properties": {
                  "unitCode": {
                    "type": "string"
                  },
                  "value": {
                    "type": "number"
                  }
                }
              },
              "endTime": {
                "type": "string"
              },
              "icon": {
                "type": "string"
              },
              "isDaytime": {
                "type": "boolean"
              },
              "name": {
                "type": "string"
              },
              "number": {
                "type": "integer"
              },
              "probabilityOfPrecipitation": {
                "type": "object",
                "properties": {
                  "unitCode": {
                    "type": "string"
                  },
                  "value": {
                    "type": "integer"
                  }
                }
              },
              "relativeHumidity": {
                "type": "object",
                "properties": {
                  "unitCode": {
                    "type": "string"
                  },
                  "value": {
                    "type": "integer"
                  }
                }
              },
              "shortForecast": {
                "type": "string"
              },
              "startTime": {
                "type": "string"
              },
              "temperature": {
                "type": "integer"
              },
              "temperatureTrend": {
                "type": "null"
              },
              "temperatureUnit": {
                "type": "string"
              },
              "windDirection": {
                "type": "string"
              },
              "windSpeed": {
                "type": "string"
              }
            }
          }
        },
        "units": {
          "type": "string"
        },
        "updateTime": {
          "type": "string"
        },
        "validTimes": {
          "type": "string"
        }
      }
    },
    "type": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```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'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "@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
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
