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

Yr alerts API

Weather alert endpoints

Yr alerts API is one of 5 APIs that Yr publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

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

This API exposes 6 operations across 6 paths, and defines 3 schemas. It is described by OpenAPI 3.0.3, at version 2.0.

Requests are made against a single base URL, https://api.met.no/weatherapi/locationforecast/2.0.

6 operations 6 paths 3 schemas 6 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
2.0
Base URL
https://api.met.no/weatherapi/locationforecast/2.0/
License
Terms of Service
Resource Areas
1

Paths & Operations 6

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

alerts 6

Weather alert endpoints

GET
/current
Get active weather alerts
getCurrentAlerts 8 params → 200204400401403404422429
GET
/all
Get all alerts from the last 30 days
getAllAlerts 8 params → 200204400429500
GET
/archive
Get archived historical alerts
getArchivedAlerts 7 params → 200400429500
GET
/test
Get active test alerts
getTestAlerts 1 param → 200204500
GET
/test_all
Get all test alerts from the last 30 days
getAllTestAlerts 1 param → 200204500
GET
/example
Get example alerts for development
getExampleAlerts 1 param → 200500

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are AlertProperties (16 properties), AlertFeature (3 properties), AlertCollection (2 properties). Each schema is shown below with its type and property counts.

AlertCollection
object
GeoJSON FeatureCollection of weather alert features. Each feature represents one alert with geographic and attribute data.
2 properties
AlertProperties
object
Properties of a weather alert
16 properties
AlertFeature
object
GeoJSON Feature representing a single weather alert
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

yr-no-alerts-api-openapi.yml Raw ↑

Other APIs Yr publishes across the network.

Frost API
Air Quality Forecast API
Yr data API
Yr metadata API