# National Weather Service API

Category: [Weather forecasts](https://free-web-services.com/web-services/geo/weather/)  
Page: https://free-web-services.com/web-services/geo/weather/national-weather-service.html  
Documentation: https://www.weather.gov/documentation/services-web-api

The National Weather Service API (api.weather.gov) gives official US weather data: forecasts for any point in 12-hour and hourly periods, active weather alerts, observations from weather stations, and the forecast grids behind them. Responses are JSON and GeoJSON. Free and no key needed; send a User-Agent that identifies your app. It replaces the old NDFD XML/SOAP service and covers the United States only.

- API key: Not needed
- Pricing: Free and no key needed; send a User-Agent that identifies your app.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, HTTP-GET
- Provider: weather.gov
- Last checked: Working on November 1st, 2026

Example request:

```sh
curl 'https://api.weather.gov/points/38.8894,-77.0352'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

