---
title: "National Weather Service: Get the hourly NWS forecast for a…"
description: "Hour-by-hour National Weather Service forecast for a US point, up to 156 hours: temperature, dewpoint, humidity, wind and rain chance."
url: https://perceptlayer.com/apis/weather-gov/hourly-forecast
---

[APIs](https://perceptlayer.com/apis) / [National Weather Service](https://perceptlayer.com/apis/weather-gov) / Get the hourly NWS forecast for a US point

# National Weather Service: Get the hourly NWS forecast for a US point

Hour-by-hour National Weather Service forecast for a US point, up to 156 hours: temperature, dewpoint, humidity, wind and rain chance.

GET `/v1/weather-gov/hourly-forecast`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `lat` | number | Required | Any Latitude, such as 47.6062. US and its territories only. |
| `lon` | number | Required | Any Longitude, such as -122.3321. |
| `hours` | integer | Optional | Any Hours to return, 1 to 156. Default 48. |
| `units` | string | Optional | us, si us (Fahrenheit, mph) or si (Celsius, km/h). Default us. |

## Example request

National Weather Service

GET /v1/weather-gov/hourly-forecast?lat=47.6062&lon=-122.3321&hours=24 

```
{
  "success": true,
  "data": {
    "location": {
      "latitude": 47.6062,
      "longitude": -122.3321,
      "city": "Seattle",
      "state": "WA",
      "time_zone": "America/Los_Angeles",
      "grid_id": "SEW",
      "grid_x": 125,
      "grid_y": 68,
      "forecast_zone": "WAZ315",
      "county_zone": "WAC033",
      "radar_station": "KATX"
    },
    "units": "us",
    "generated_at": "2026-12-06T09:09:20+00:00",
    "updated_at": "2026-12-06T08:33:43+00:00",
    "elevation_m": 73.152,
    "count": 24,
    "periods": [
      {
        "number": 1,
        "start_time": "2026-12-06T01:00:00-08:00",
        "end_time": "2026-12-06T02:00:00-08:00",
        "is_daytime": false,
        "temperature": 43,
        "temperature_unit": "F",
        "precipitation_probability": 1,
        "wind_speed": "2 mph",
        "wind_direction": "ESE",
        "short_forecast": "Cloudy",
        "icon_url": "https://api.weather.gov/icons/land/night/ovc?size=small",
        "dewpoint_c": 3.888888888888889,
        "relative_humidity": 84
      },
      {
        "number": 2,
        "start_time": "2026-12-06T02:00:00-08:00",
        "end_time": "2026-12-06T03:00:00-08:00",
        "is_daytime": false,
        "temperature": 43,
        "temperature_unit": "F",
        "precipitation_probability": 1,
        "wind_speed": "2 mph",
        "wind_direction": "SE",
        "short_forecast": "Cloudy",
        "icon_url": "https://api.weather.gov/icons/land/night/ovc?size=small",
        "dewpoint_c": 3.3333333333333335,
        "relative_humidity": 83
      },
      {
        "number": 3,
        "start_time": "2026-12-06T03:00:00-08:00",
        "end_time": "2026-12-06T04:00:00-08:00",
        "is_daytime": false,
        "temperature": 42,
        "temperature_unit": "F",
        "precipitation_probability": 1,
        "wind_speed": "2 mph",
        "wind_direction": "SE",
        "short_forecast": "Cloudy",
        "icon_url": "https://api.weather.gov/icons/land/night/ovc?size=small",
        "dewpoint_c": 2.7777777777777777,
        "relative_humidity": 83
      }
    ]
  },
  "meta": {
    "request_id": "req_f0aab38e927d4d20b46a5b3c2d9de11b",
    "credits_charged": 1,
    "credits_remaining": 435
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/weather-gov?try=hourly-forecast#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 6 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `location` | object |
| `units` | string |
| `generated_at` | string |
| `updated_at` | string |
| `elevation_m` | number |
| `periods` | object\[\] |
