Norsk versjon.
api.met.no/weatherapi is an interface to a selection of data produced by MET Norway.
The data are available for use under a Creative Commons license.
See also separate conditions for use of the service.
Several people have developed third-party client
libraries for various programming languages.
All regular users of the API are strongly recommended to subscribe to our
API-users mailing list
as this is the only channel on which we will communicate planned changes outside
the API itself (see the archives
for past notifications).
For operational status and maintenance notifications, see status.met.no
(please bookmark in case there is a problem with the site).
For information on available data and how to access them, please
refer to the weatherapi
documentation. For a list of changes since version 2,
see the Release Notes for v.3.
Data owned by other institutions than MET Norway
is not available for unrestricted public use. This is
specified in the documentation of each product. Examples of such
products are the Nordic radar images and some satellite images.
Refer to the documentation of each product.
Available products:
Alerts β
- Airqualityforecast 0.1
- Forecast of air-quality for locations in Norway
- Forestfireindex 1.1
- Reporting danger level of forest fires.
- MetAlerts 1.1
- Weather alerts from the Norwegian Meteorological Institute
Astronomy π£
- Sunrise 2.0
- Calculate sun/moon rise/set for a given place
Aviation β
- Aviationforecast 1.6
- Textual aviation weather forecasts
- NLAroutes 1.0
- Vertical cross sections for air ambulance flight routes
- Routeforecast 1.0
- Maps and vertical cross sections for offshore flight routes
- Sigcharts 1.0
- Significant Weather Charts for aviation
- Sigmets 2.0
- Get sigmets and airmets for Norway
- Spotwind 1.1
- Spotwind forecasts for airport landing systems
- Tafmetar 1.0
- Receive Taf/Metar from airports
- Turbulence 1.1
- Turbulence prognosis
- VerticalProfile 1.1
- Vertical weather profiles for aviation
- Volcanicashforecast 0.1
- Norwegian national volcanic ash products including forecast
Lightning β
- Frost 1.0
- REST API for meteorogical observation data
- Radar 2.0
- Radar images from various locations
Marine β
- Gribfiles 1.1
- Serve grib files on the coast from Oslo and Western Norway
- Icemap 1.0
- Maps as images showing current ice conditions in the arctic regions.
- Oceanforecast 0.9
- Ocean forecast for a specified place
- Oslofjord 0.1
- Current maps for Oslofjorden and Drammensfjorden
- Soundprofile 1.0
- Vertical profiles in the ocean off the Norwegian coast
- Textforecast 2.0
- Textual weather forecast for Norwegian land and sea areas
- Tidalwater 1.1
- Tidal water information
Military β
- Metgc 1.0
- Deliver meteorological forecast data in METGM/C format for defined areas
- Metgm 1.0
- Deliver meteorological forecast data in METGM/C format for defined areas
Observations π‘
- Frost 1.0
- REST API for meteorogical observation data
Other β
- Weathericon 2.0
- collection of weather icons.
Satellite π°
- Geosatellite 1.4
- Images from geostationary satellites
- Polarsatellite 1.1
- Images from satellites in polar orbit
Weather β
- Frost 1.0
- REST API for meteorogical observation data
- Locationforecast 2.0
- Weather forecast for a specified place
- Nowcast 2.0
- Immediate weather forecast for specified locations in the Nordic area
- Probabilityforecast 1.1
- Probability forecast for a specified place
- Radar 2.0
- Radar images from various locations
- Subjectiveforecast 1.0
- Forecasts and analyses charts from the meteorologist
- Textforecast 2.0
- Textual weather forecast for Norwegian land and sea areas
|
All good things must come to an end, hopefully to be replaced by something better.
Here is an update of forthcoming changes to the weather APIs.
Locationforecast and Nowcast
As mentioned previously, the old versions of Locationforecast (1.9),
Nowcast (0.9) and Weathericon (1.1) will terminate on March 1st, 2021.
Incredibly, almost 70 % of the current API traffic is still using version 1.9,
This means a lot of sites and apps will stop working shortly.
We recommend everyone not yet upgraded to start working on this ASAP.
Please see our docs for more information:
https://docs.api.met.no/doc/
Yr APIs
The Yr API (forecast,xml and varsel.xml), developed by the Norwegian
Broadcasting Corporation NRK is also set to expire this summer, along
with the old Yr site (retro.yr.no). All Yr API users should port their
applications to use Locationforecast/2.0, noting the following differences:
- Yr API uses XML, we recommend JSON for Locationforecast
- Yr API uses placenames, for Locationforecast you must use lat/lon/altitude
- Locationforecast requires identification in the User-Agent header
For more information on porting from Yr, see the developer site:
https://developer.yr.no/
Also, NRK is working on a one-time dump of their location database, which will
give you the correct coordinates and altitude to use with Locationforecast and Nowcast,
as well as the URL to the forecast on the new Yr site. This is expected to be
ready in a few days. Please follow the mailing list or one of the sites above
to get information on where to download it.
ExtremesWWC
As indicated, this product has long been deprecated, pending new functionality
on Frost for the same purpose. Unfortunately this has not yet materialized, and
now the production chain for ExtremesWWC is no longer supported. As a
consequence we will turn it off tomorrow, February 5th 2021. Since this product
only covers Norway and has only a handful of users, we hope you will forgive us
the short notice.
After several months in beta, Nowcast 2.0 is finally officially launched. Both
this and Locationforecast have now got a definite date for termination of the
old versions.
Based on popular feedback we have decided to continue the XML format for
Locationforecast and Nowcast into the foreseeable future. For this purpose we
have added a /classic XML variant to Nowcast, which is basically identical to
the version 0.9 format. This means porting from the old version should be much
faster than rewriting to use JSON.
To support the XML format in the future, we will extend it to include the new
symbol codes as introduced in Weathericon 2.0. Please use this instead of the
numerical codes which are now deprecated. Starting today the symbol elements
will look like this:
<symbol id="PartlyCloud" number="3" code="partlycloudy_day"/>
You can then link this to the partlycloudy_day.png icon which can be downloaded
in Weathericon 2.0.
Some future additional changes to the XML format are to be expected. Some time
within the next six months we will remove the following elements from the XML
format; please don't use them in your clients:
<temperatureProbability unit="probabilitycode" value="0"/>
<windProbability unit="probabilitycode" value="0"/>
<symbolProbability unit="probabilitycode" value="1"/>
Termination of old versions
Now that both products have been finalized, we have decided it is time to say
goodbye to the old versions, hailing from 2014 and 2016 respectively. On March
1st, 2021 the following products will no longer be available:
- Locationforecast 1.9
- Nowcast 0.9
- Weathericon 1.1
Please update your systems to use the new version if you haven't already. If you
keep running into 403 Forbidden errors, remember that according to the Terms of
Service you must identify yourself with a unique User-Agent HTTP request header
with contact information.
New version of Yr.no
As some of you may have noticed, yr.no now points to the new version (formerly
the mobile site) and the old layout has been moved to retro.yr.no. The latter
site is expected to be turned off in the summer of 2021; at the same time the
old Yr API (varsel.xml/forecast.xml) will disappear. By this time users must
have converted to use Locationforecast/2.0 for continued service.
The Yr developers at NRK are working on making a downloadable dump of the
existings locations database, mapping place names to lat/lon coordinates. We'll
be back with more information on this once we have something to report.
Minor changes to other products
Sigcharts has gotten a new parameter validdate which makes it possible to
see which day a plot is valid for. This is now included in the available list.
Turbulence has had some airports removed and Vigra airport added. We have also
enabled search by ICAO code instead of location name; this will become the
default search method in the future (which means the links in available will use
icao instead of location parameters). We recommend updating your clients to
use this at your earliest convenience.
News archive
Change log
- Locationforecast: XML updated with new symbol codes: 2020-12-14
Since Weathericon/1.1 is deprecated, we have added an attribute code to the
symbol element, corresponding to the filename in Weathericon/2.0.
- Nowcast: version 2.0 launched, 2020-12-13
2.0 out of beta, added classic.xml output. Version 0.9 will be removed 1 March 2021
- Turbulence: Minor update, 2020-12-07
- Vigra added. Fagernes, Narvik and GimsΓΒΈya removed
- Now possible to search using ICAO code. In the future this parameter will be default,
and location removed from the available string
- Sigcharts: Version 1.0: 2020-11-30
Optional parameter validdate added
- Nowcast: Changes to current version 0.9, 2020-11-09
We have replaced the old production backend for version 0.9 with the new one
as used by beta version 2.0. This will incur some trivial changes, but is not
expected to cause any compatibility problems for well-behaved clients:
- The
@xsi:noNamespaceSchemaLocation and Model@name attributes will be updated to reflect the new production - An
@altitude attribute will be added to the location element (same as for Locationforecast) - The number of decimals in latitude/longitude is no longer fixed
- Geosatellite: Usage restrictions lifted, 2020-10-01
- After several revisions of the data policies we have finally confirmed that
the satellite images can be freely distributed and available to all API users
under the normal CC-BY 4.0 conditions.
|
Other data sources at MET Norway
- Frost, API for observations and climate data
- THREDDS for model and research data, including sea and ice models
See free meteorological data on met.no
for a complete list of data services.
Questions?
For questions regarding rights to and use of data, see our Licensing and Data Policy.
For handling of personal data, see MET Norway's Privacy Policy Statement.
For technical questions, see our contact page.