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

National Weather Service Points API

The Points API from National Weather Service — 3 operation(s) for points.

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

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

This API exposes 3 operations across 3 paths, and defines 19 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.

3 operations 3 paths 19 schemas 3 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

National Weather Service Points 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 3

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

Points 3
GET
/points/{latitude},{longitude}
Returns metadata about a given latitude/longitude point
point 2 params → 200default
GET
/points/{latitude},{longitude}/radio
Returns NOAA Weather Radio broadcast script for a latitude/longitude point
point_radio 2 params → 200default
GET
/points/{latitude},{longitude}/stationsdeprecated
Returns a list of observation stations for a given point
point_stations 2 params → 301default

Schemas 19

The contract defines 19 schemas that model the data the API accepts and returns. The most detailed are Point (22 properties), AstronomicalData (9 properties), ProblemDetail (6 properties), QuantitativeValue (5 properties). Each schema is shown below with its type and property counts.

GeoJsonGeometry
A GeoJSON geometry object. Please refer to IETF RFC 7946 for information on the GeoJSON format.
Point
object
22 properties
JsonLdContext
GeometryString
stringnull
A geometry represented in Well-Known Text (WKT) format.
GeoJsonFeature
object
A GeoJSON feature. Please refer to IETF RFC 7946 for information on the GeoJSON format.
5 properties 3 required
GeoJsonCoordinate
array
A GeoJSON coordinate. Please refer to IETF RFC 7946 for information on the GeoJSON format.
GeoJsonLineString
array
A GeoJSON line string. Please refer to IETF RFC 7946 for information on the GeoJSON format.
NWSForecastOfficeId
string
Three-letter identifier for a NWS office.
ProblemDetail
object
Detail about an error. This document conforms to RFC 7807 (Problem Details for HTTP APIs).
6 properties 6 required
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…
GeoJsonPolygon
array
A GeoJSON polygon. Please refer to IETF RFC 7946 for information on the GeoJSON format.
RelativeLocation
object
4 properties
RelativeLocationJsonLd
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
RelativeLocationGeoJson
PointJsonLd
AstronomicalData
object
An object representing sunrise, sunset, and twilight information for a location.
9 properties
PointGeoJson
GeoJsonBoundingBox
array
A GeoJSON bounding box. Please refer to IETF RFC 7946 for information on the GeoJSON format.

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

national-weather-service-points-api-openapi.yml Raw ↑

Other APIs National Weather Service publishes across the network.

National Weather Service Alerts API
National Weather Service Aviation API
National Weather Service Glossary API
National Weather Service Gridpoints API
National Weather Service Icons API
National Weather Service Offices API
National Weather Service Products API
National Weather Service Radar API
National Weather Service Radio API
National Weather Service Stations API
National Weather Service Thumbnails API
National Weather Service Zones API