DMI provides its various datasets to be consumed in two ways: either through an API or by downloading the data as one or more files (bulk download). It is fully up to you which you prefer to use.
Regardless of which way you wish to consume DMI's data, you have to:
Create an account
Subscribe to the API of the dataset you wish to consume, and acquire your API key for access to the data
A guide explaining how to do the steps above can be found on this page. Once this has been done, you have free access to the dataset of which you subscribed and acquired your API key. There are no limits on how many applications and subscriptions you can have.
Understanding DMI's data
The data of each of the API's has documentation on what it represents, its models, abstractions and terminology. These can be found in the "Data information" section under each of the API's documetation on the left. For reference, here are the direct links:
- Data information (metObs)
- Data information (oceanObs)
- Data information (lightningdata)
- Data Information (climatedata)
- Data information (radardata)
If you want to explore the dataset in a more hands-on way before you write any code, you can follow our guide on how to open the dataset in QGIS.
Getting started with DMI API's
Our API's follow the OGC API - features standard to make it as easy as possible to use existing tools to work with our data. Even if your favorite tools do not support OGC API - features directly, it builds upon well known standards such as OpenAPI and GeoJSON which are generally well supported.
If you are already very familiar with REST API's, you should probably go to "API of your choice" → "Service Documentation" → "OpenAPI Specification" to get help with the type of requests you can make.
If not, you should probably start by looking at the Query primer page. When you have read and understood that, go to "API of your choice" → "Service Documentation" → "Request & Response Examples" to learn how to use the API of your choice. The exact structure of a response is documented in "API of your choice" → "Service Documentation" → "Schema".
You can also find guides, examples and packages/libraries made by other users by going to "Guides" → "User Application Examples". Be aware that DMI does not support or provide any guarantees on the content found under user application examples.
Getting started with bulk download
As stated above, you will need your API key in order to download the data as one or more files. The exact details on how to bulk download from each API is documented under "API of your choice" → "Service Documentation" → "Bulk Download Service". For reference, here are the direct links:
- Bulk Download Service (metObs)
- Bulk Download Service (oceanObs)
- Bulk Download Service (lightningdata)
- Bulk Download Service (climateData)
Staying up to date
Our API's will not be subject to big breaking changes, because they adhere to the OGC API - features standard. We continuously develop and improve these API's, so minor changes and bug fixes might change the behavior of the API. If you suspect your integration has broken due to changed behavior, please check "API of your choice" → "Service Documentation" → "Release Notes" where we announce released changes that might affect your integration.
For operational status, see API Status & Contact.