Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Weather.gov Gridpoints API

The Gridpoints API from Weather.gov — 4 operation(s) for gridpoints.

Weather.gov Gridpoints API is one of 13 APIs that Weather.gov publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Gridpoints. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 4 operations across 4 paths, and defines 31 schemas. It is described by OpenAPI 3.1.2, at version 3.8.1.

Requests are made against a single base URL, https://api.weather.gov.

4 operations 4 paths 31 schemas 4 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.2
API Version
3.8.1
Base URL
https://api.weather.gov
Authentication
API Key, API Key
Resource Areas
1

Authentication & Security 2

Weather.gov Gridpoints API declares 2 security schemes for authenticating requests. An API key is passed in the header as User-Agent (userAgent). An API key is passed in the header as API-Key (apiKeyAuth). By default, every request must be authenticated.

  • userAgent — We require that all consumers of the API include a User-Agent header in requests. This is due to a high number of scripts exhibiting abusive behavior (intentio…
  • apiKeyAuth — We are testing including a more traditional API Key system on certain endpoints. This is due to a large change in the weather.gov site. The API remains open an…

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 4 GET. Each is listed below with its method, path, parameters, and response codes.

Gridpoints 4
GET
/gridpoints/{wfo}/{x},{y}
Weather.gov Returns Raw Numerical Forecast Data for a 2.5km Grid Area
gridpoint 3 params → 200default
GET
/gridpoints/{wfo}/{x},{y}/forecast
Weather.gov Returns a Textual Forecast for a 2.5km Grid Area
gridpoint_forecast 5 params → 200default
GET
/gridpoints/{wfo}/{x},{y}/forecast/hourly
Weather.gov Returns a Textual Hourly Forecast for a 2.5km Grid Area
gridpoint_forecast_hourly 5 params → 200default
GET
/gridpoints/{wfo}/{x},{y}/stations
Weather.gov Returns a List of Observation Stations Usable for a Given 2.5km Grid Area
gridpoint_stations 4 params → 200default

Schemas 31

The contract defines 31 schemas that model the data the API accepts and returns. The most detailed are GridpointHourlyForecastPeriod (17 properties), Gridpoint12hForecastPeriod (15 properties), ObservationStation (15 properties), Gridpoint (13 properties). Each schema is shown below with its type and property counts.

QuantitativeValue
object
A structured value representing a measurement and its unit of measure. This object is a slightly modified version of the schema.org definition at https://schem…
5 properties
GeoJsonFeature
object
A GeoJSON feature. Please refer to IETF RFC 7946 for information on the GeoJSON format.
5 properties 3 required
ProblemDetail
object
Detail about an error. This document conforms to RFC 7807 (Problem Details for HTTP APIs).
6 properties 6 required
GeoJsonGeometry
A GeoJSON geometry object. Please refer to IETF RFC 7946 for information on the GeoJSON format.
Gridpoint12hForecast
object
A multi-day forecast for a 2.5km grid square.
9 properties
GeoJsonFeatureCollection
object
A GeoJSON feature collection. Please refer to IETF RFC 7946 for information on the GeoJSON format.
3 properties 2 required
GridpointHourlyForecastGeoJson
GeoJsonCoordinate
array
A GeoJSON coordinate. Please refer to IETF RFC 7946 for information on the GeoJSON format.
GeoJsonBoundingBox
array
A GeoJSON bounding box. Please refer to IETF RFC 7946 for information on the GeoJSON format.
ObservationStationCollectionGeoJson
GridpointQuantitativeValueLayer
object
A gridpoint layer consisting of quantitative values (numeric values with associated units of measure).
2 properties 1 required
GridpointJsonLd
GridpointHourlyForecastJsonLd
GridpointHourlyForecast
object
An hourly forecast for a 2.5km grid square.
9 properties
UnitOfMeasure
string
A string denoting a unit of measure, expressed in the format "{unit}" or "{namespace}:{unit}". Units with the namespace "wmo" or "wmoUnit" are defined in the W…
ISO8601Interval
A time interval in ISO 8601 format. This can be one of: 1. Start and end time 2. Start time and duration 3. Duration and end time The string "NOW" can also be…
GeometryString
stringnull
A geometry represented in Well-Known Text (WKT) format.
Gridpoint
object
Raw forecast data for a 2.5km grid square. This is a list of all potential data layers that may appear. Some layers may not be present in all areas. temperatur…
13 properties
Gridpoint12hForecastJsonLd
PaginationInfo
object
Links for retrieving more data from paged data sets
1 property 1 required
GeoJsonLineString
array
A GeoJSON line string. Please refer to IETF RFC 7946 for information on the GeoJSON format.
GridpointGeoJson
NWSForecastOfficeId
string
Three-letter identifier for a NWS office.
ObservationStation
object
15 properties
ObservationStationCollectionJsonLd
object
4 properties
Gridpoint12hForecastPeriod
object
An object containing forecast information for a specific time period (generally 12-hour or 1-hour).
15 properties
GridpointHourlyForecastPeriod
object
An object containing forecast information for a specific time period (generally 12-hour or 1-hour).
17 properties
GeoJsonPolygon
array
A GeoJSON polygon. Please refer to IETF RFC 7946 for information on the GeoJSON format.
Gridpoint12hForecastGeoJson
GridpointForecastUnits
string
Denotes the units used in the textual portions of the forecast.
JsonLdContext

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

weather-gov-gridpoints-api-openapi.yml Raw ↑

Other APIs Weather.gov publishes across the network.

Weather.gov Alerts API
Weather.gov Aviation API
Weather.gov Glossary API
Weather.gov Icons API
Weather.gov Offices API
Weather.gov Points API
Weather.gov Products API
Weather.gov Radar API
Weather.gov Radio API
Weather.gov Stations API
Weather.gov Thumbnails API
Weather.gov Zones API