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

The Offices API from Weather.gov — 8 operation(s) for offices.

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

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

8 operations 8 paths 14 schemas 8 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 Offices 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 8

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

Offices 8
GET
/offices/{officeId}
Weather.gov Returns Metadata About a NWS Forecast Office
office 1 param → 200default
GET
/offices/{officeId}/briefing
Weather.gov Returns Active Briefing for an NWS Office
office_briefing 1 param → 200default
GET
/offices/{officeId}/briefing/download/latest
Weather.gov Returns the Latest Briefing for an Office
office_briefing_download_latest 1 param → 302default
GET
/offices/{officeId}/briefing/download/{briefingId}
Weather.gov Returns a Briefing for an Office
office_briefing_download 2 params → 200default
GET
/offices/{officeId}/headlines/{headlineId}
Weather.gov Returns a Specific News Headline for a Given NWS Office
office_headline 2 params → 200default
GET
/offices/{officeId}/headlines
Weather.gov Returns a List of News Headlines for a Given NWS Office
office_headlines 1 param → 200default
GET
/offices/{officeId}/weatherstories
Weather.gov Returns Active Weather Stories for an NWS Office
office_weatherstory 1 param → 200default
GET
/offices/{officeId}/weatherstories/download/{imageId}
Weather.gov Returns the Image for a Weather Story
office_weatherstory_image 2 params → 200default

Schemas 14

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

BinaryFile
string
Office
object
16 properties
ProblemDetail
object
Detail about an error. This document conforms to RFC 7807 (Problem Details for HTTP APIs).
6 properties 6 required
NWSRegionalHQId
string
Three-letter identifier for a NWS Regional HQ.
OfficeWeatherStoryCollection
array
NWSConnectDocumentMetadata
object
Metadata for an NWS Connect document.
8 properties
NWSForecastOfficeId
string
Three-letter identifier for a NWS office.
NWSNationalHQId
string
Three-letter identifier for NWS National HQ.
OfficeBriefing
NWSOfficeId
OfficeHeadlineCollection
object
2 properties 2 required
OfficeWeatherStory
9 required
OfficeHeadline
object
11 properties
JsonLdContext

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

weather-gov-offices-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 Gridpoints API
Weather.gov Icons 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