Overview
The US Weather API is the official National Weather Service (NWS) REST API provided by the US government, offering free and unlimited access to forecasts, alerts, and observation data for the United States. It requires no API key, making it the easiest way to add weather data to any US-focused application. Beginners can retrieve a 7-day forecast for any US location using just the geographic coordinates.
Beginner Tip
No API key or registration is needed. Use a two-step process: first get the grid point from coordinates, then fetch the forecast from the returned forecast URL.
Measurement Record
What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.
- Request
- GET https://api.weather.gov/points/39.7456,-97.0892
- Result
- HTTP 200 · application/geo+json · 3,928 bytes · compressed
- Response time
- 39 ms (median of 3) · fastest 28 ms
- Transport
- TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Let's Encrypt
- Browser CORS
- Allowed — Access-Control-Allow-Origin: *
- Served by
- nginx/1.28.3
- Recorded
- 2026-08-10
Fields Returned
Top-level fields present in the response we captured, with the type and value we actually received.
| Field | Type | Value received |
|---|---|---|
| @context | array | [1 item] |
| id | string (url) | https://api.weather.gov/points/39.7456,-97.0892 |
| type | string | Feature |
| geometry | object | {2 fields} |
| properties | object | {15 fields} |
Captured Response
Captured from a real request to https://api.weather.gov/points/39.7456,-97.0892 on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.
{
"@context": [
"https://geojson.org/geojson-ld/geojson-context.jsonld"
],
"id": "https://api.weather.gov/points/39.7456,-97.0892",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-97.0892
]
},
"properties": {
"@id": "https://api.weather.gov/points/39.7456,-97.0892",
"@type": "wx:Point",
"cwa": "TOP",
"type": "land",
"forecastOffice": "https://api.weather.gov/offices/TOP",
"gridId": "TOP",
"gridX": 32,
"gridY": 81,
"forecast": "https://api.weather.gov/gridpoints/TOP/32,81/forecast",
"forecastHourly": "https://api.weather.gov/gridpoints/TOP/32,81/forecast/hourly",
"forecastGridData": "https://api.weather.gov/gridpoints/TOP/32,81",
"observationStations": "https://api.weather.gov/gridpoints/TOP/32,81/stations",
"relativeLocation": {
"type": "Feature",
"geometry": {
"…": "(2 more fields)"
},
"properties": {
"…": "(4 more fields)"
}
},
"forecastZone": "https://api.weather.gov/zones/forecast/KSZ009",
"…": "(6 more fields)"
}
} Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://api.weather.gov/points/39.7456,-97.0892";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
How This API Fails
We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.
{
"correlationId": "f46f837",
"title": "Not Found",
"type": "https://api.weather.gov/problems/NotFound",
"status": 404,
"detail": "'/points/39.7456,-97.0892/apisscore-nonexistent-path' is not a valid resource path",
"instance": "https://api.weather.gov/requests/f46f837"
} Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Measured Score Breakdown
Live HTTP request to the API endpoint
Fully tested on Aug 10, 2026
Technical Specifications
Related Tags
Similar APIs
View All →7Timer!
⭐ Beginner's Pick7Timer!
AviationWeather
AviationWeather.gov is a free NOAA service that provides official aviation weather data including METARs, TAFs, PIREPs, and SIGMETs used by pilots and flight planners.
Hong Kong Obervatory
⭐ Beginner's PickThe Hong Kong Observatory Open Data API provides free access to weather observations, forecasts, earthquake reports, and climate data for Hong Kong and the surrounding region.
ODWeather
⭐ Beginner's PickODWeather is a free weather and webcam API from OceanDrivers that provides real-time marine and coastal weather data including wind, waves, and temperature.
QWeather
QWeather delivers accurate location-based weather data including real-time conditions, hourly and daily forecasts, air quality index, and severe weather warnings across global locations.