Meteorological Observation API
Click here for Swagger - Interactive API explorer (external site)
To execute calls the service input your api-key by clicking the "Authorize" button in Swagger
Quick start examples
Example: https://dmigw.govcloud.dk/v2/metObs/collections/observation/items?api-key=<api-key>
Description: Will return up to 1000 (the default limit) observations.
Example: https://dmigw.govcloud.dk/v2/metObs/collections/station/items?api-key=<api-key>
Description: Will return up to 1000 (the default limit) stations.
The collection endpoints support a number of query parameters to filter or sort data. Make sure to read the query primer to make use of the below query parameters.
Example Response
{
"type": "FeatureCollection",
"features": [
{
"geometry": {
"coordinates": [
10.4398,
55.3088
],
"type": "Point"
},
"id": "02453972-f3fe-72b5-8d30-3f24a89107d9",
"type": "Feature",
"properties": {
"created": "2023-10-26T09:19:43.376959Z",
"observed": "2023-10-26T09:20:00Z",
"parameterId": "leav_hum_dur_past10min",
"stationId": "06126",
"value": 0.0
}
}
],
"timeStamp": "2023-10-26T09:19:51Z",
"numberReturned": 1,
"links": [
{
"href": "https://dmigw.govcloud.dk/v2/metObs/collections/observation/items?limit=1&sortorder=observed,DESC",
"rel": "self",
"type": "application/geo+json",
"title": "This document"
},
{
"href": "https://dmigw.govcloud.dk/v2/metObs/collections/observation/items?limit=1&sortorder=observed,DESC&offset=1",
"rel": "next",
"type": "application/geo+json",
"title": "Next set of results"
}
]
}
API
/collections
Example: https://dmigw.govcloud.dk/v2/metObs/collections
Description: Will return all available collections in the API. Available collections:
- station
- observation
/collections/<collection name>/items
Query parameters
Query examples
Examples:
Returns observations within the dates UTC 2018-02-12 at midnight and UTC 2018-03-18 at midnight (both dates are inclusive), and within the bounding box having the Southwesterly point of 7.0, 54.0 and northeasterly point of 16.0, 58.0 (which basically covers the area of Denmark), returning a maximum of a 100 objects skipping the first 1000.
Returns observations within the dates UTC 2018-02-12 at midnight and UTC 2018-03-18 at midnight (both dates are inclusive), and limited to the station having the id "06149" and the parameter having the id "temp_dry", returning a maximum of 20000 objects in total sorted by the "observed" time in descending order
Returns stations having the type "Pluvio" and was "Active" sometime in the month of November 2020 (but not necessarily the whole month) and is within the bounding box having the Southwesterly point of 7.0, 54.0 and northeasterly point of 16.0, 58.0 (which basically covers the area of Denmark)
Response schema
Overall Structure
The API is an OGC API - Features API and follows this standard as documented here: https://docs.ogc.org/is/17-069r3/17-069r3.html (external site)
Data is returned in a FeatureCollection object that describes the returned data-set. Data points are found in the features field which contains a number of Feature objects as described below.
FeatureCollection
Feature objects are wrapped in a GeoJSON FeatureCollection (external site) object, which include:
Generic fields for every Feature Object
Observation
This is a GeoJSON Feature (external site) and the table below describes the returned data:
Station
This is a GeoJSON Feature (external site) and the table below describes the returned data: