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 Aviation API

The Aviation API from Weather.gov — 7 operation(s) for aviation.

Weather.gov Aviation 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 Aviation. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

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

7 operations 7 paths 22 schemas 7 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 Aviation 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 7

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

Aviation 7
GET
/aviation/cwsus/{cwsuId}
Weather.gov Returns Metadata About a Center Weather Service Unit
cwsu 1 param → 200default
GET
/aviation/cwsus/{cwsuId}/cwas
Weather.gov Returns a List of Center Weather Advisories from a CWSU
cwas 1 param → 200default
GET
/aviation/cwsus/{cwsuId}/cwas/{date}/{sequence}
Weather.gov Returns a List of Center Weather Advisories from a CWSU
cwa 3 params → 200default
GET
/aviation/sigmets
Weather.gov Returns a List of SIGMET/AIRMETs
sigmetQuery 5 params → 200default
GET
/aviation/sigmets/{atsu}
Weather.gov Returns a List of SIGMET/AIRMETs for the Specified ATSU
sigmetsByATSU 1 param → 200default
GET
/aviation/sigmets/{atsu}/{date}
Weather.gov Returns a List of SIGMET/AIRMETs for the Specified ATSU for the Specified Date
sigmetsByATSUByDate 2 params → 200default
GET
/aviation/sigmets/{atsu}/{date}/{time}
Weather.gov Returns a Specific SIGMET/AIRMET
sigmet 3 params → 200default

Schemas 22

The contract defines 22 schemas that model the data the API accepts and returns. The most detailed are Office (16 properties), Sigmet (8 properties), CenterWeatherAdvisory (8 properties), ProblemDetail (6 properties). Each schema is shown below with its type and property counts.

SigmetSequenceNumber
string
Office
object
16 properties
SigmetGeoJson
Sigmet
object
8 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.
CenterWeatherServiceUnitJsonLd
GeoJsonFeatureCollection
object
A GeoJSON feature collection. Please refer to IETF RFC 7946 for information on the GeoJSON format.
3 properties 2 required
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.
ATSUIdentifier
string
ATSU Identifier
Time
string
A time (in HHMM format). This is always specified in UTC (Zulu) time.
GeoJsonLineString
array
A GeoJSON line string. Please refer to IETF RFC 7946 for information on the GeoJSON format.
CenterWeatherAdvisoryGeoJson
NWSCenterWeatherServiceUnitId
string
Three-letter identifier for a Center Weather Service Unit (CWSU).
Date
string
Date (in YYYY-MM-DD format).
GeoJsonPolygon
array
A GeoJSON polygon. Please refer to IETF RFC 7946 for information on the GeoJSON format.
CenterWeatherAdvisory
object
8 properties
CenterWeatherAdvisoryCollectionGeoJson
SigmetCollectionGeoJson
JsonLdContext

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

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

Other APIs Weather.gov publishes across the network.

Weather.gov Alerts API
Weather.gov Glossary API
Weather.gov Gridpoints 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