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

Forecast data endpoints

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

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

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

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

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

data 8

Forecast data endpoints

GET
/compact
Compact weather forecast
getCompactForecast 3 params → 200204400401403404422429
GET
/complete
Complete weather forecast with percentiles
getCompleteForecast 3 params → 200204400401403404422429
GET
/classic
Classic XML weather forecast (legacy)
getClassicForecast 3 params → 200204400401403404429500
GET
/coverage
Radar coverage area
getNowcastCoverage → 200404500
GET
/status
Operational status
getNowcastStatus → 200500
GET
/mox
Ocean forecast in MOX XML format
getOceanForecastXml 2 params → 200204400404422429500
GET
/sun
Get sun rise, set, and transit times
getSunEvents 4 params → 200204400401403404422429
GET
/moon
Get moon rise, set, and transit times
getMoonEvents 4 params → 200204400401403404422429

Schemas 16

The contract defines 16 schemas that model the data the API accepts and returns. The most detailed are MoonProperties (6 properties), SunProperties (5 properties), MoonResponse (3 properties), METJSONForecast (3 properties). Each schema is shown below with its type and property counts.

ForecastTimeStep
object
2 properties 2 required
ForecastSummary
object
Summary of weather conditions for a time period
2 properties 1 required
Forecast
object
2 properties 2 required
CelestialEventWithElevation
object
A celestial body transit event with timestamp and elevation angle
2 properties
SymbolConfidence
string
Estimate of certainty for a weather symbol
MoonResponse
object
GeoJSON Feature containing moon event data for the requested location and date
3 properties
ForecastData
object
Map of weather parameter names to their float values. Common parameters include airtemperature (celsius), windspeed (m/s), windfromdirection (degrees), precipi…
PointGeometry_4
object
2 properties 2 required
PointGeometry
object
2 properties 2 required
MoonProperties
object
6 properties
ForecastUnits
object
Map of parameter names to their unit strings
SunProperties
object
5 properties
CelestialEvent
object
A celestial body event with timestamp and azimuth
2 properties
METJSONForecast
object
3 properties 3 required
WeatherSymbol
string
Identifier summarizing the weather condition for a time period. See https://api.met.no/weatherapi/weathericon/2.0/ for icon images.
SunResponse
object
GeoJSON Feature containing sun event data for the requested location and date
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

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

Other APIs Yr publishes across the network.

Frost API
Air Quality Forecast API
Yr alerts API
Yr metadata API