Are you getting 403 Forbidden errors? Read the FAQ and check your User-Agent header!

Welcome to the MET Norway Weather API v.3

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 0.9
REST API for meteorogical observation data
Radar 2.0
Radar images from various locations
THREDDS 1.0
Dataset archive including model runs and observation timeseries

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
THREDDS 1.0
Dataset archive including model runs and observation timeseries
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 0.9
REST API for meteorogical observation data
THREDDS 1.0
Dataset archive including model runs and observation timeseries

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
THREDDS 1.0
Dataset archive including model runs and observation timeseries

Weather

Frost 0.9
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
THREDDS 1.0
Dataset archive including model runs and observation timeseries
Textforecast 2.0
Textual weather forecast for Norwegian land and sea areas

News

New version of Oceanforecast, and more 2021-03-26

Questions to the administrators

We're always getting a steady stream of questions from API users, and after terminating Locationforecast/1.9 this has peaked significantly. Unfortunately, almost all of the questions are variations of two themes:

  1. Why am I being blocked with a 403 response?
  2. What kind of other data do you have except for the API?

While the first one is easy to answer (read the documentation), it's also the hardest to solve (people don't read documentation). So again, if you have problems and must contact us, please make sure you a) have set an identifying User-Agent header and b) give us you IP address so we can check our logs for problems.

The other one is more complicated. While we have many products on api.met.no and several other APIs as well (e.g. Frost), most of the data we produce are really only meaningful for scientists, and quite complicated to process for people with only general programming experience. The data are stored as NetCDF files in our THREDDS archive, which is administered by another team. Us API guys don't really know much about the data residing there and how to use them, so we can only forward such questions to the scientists or the thredds admins.

To direct your attention in the right direction, we have made a thredds landing page which contains a useful starting point in where you can find scientific data and documentation how to use them. This is now linked in the product list on api.met.no:

https://api.met.no/product/THREDDS

If you have questions regarding those data, please don't use the weatherapi-adm address as this goes directly to the API admins. Instead send an email to thredds@met.no to ensure your questions go to the relevant personnel.

Oceanforecast 2.0

Some of you have already noticed this, but we have quietly launched a new beta version of Oceanforecast which now uses the same FORTI backend and JSON format as the latest Locationforecast and Nowcast. Unlike the others the new version will only offer JSON output, as the MOX XML format is excessively complicated and we can no longer find the spec(!).

Also note that the wave direction has been changed from oceanographic convention ("going to", similar to currents) to the more common meteorological convention ("coming from", similar to wind), as shown here:

0.9 XML:
<mox:mean\TotalWaveDirection uom="deg">89.7</mox:mean\TotalWaveDirection>

2.0 JSON:
"sea_surface_wave_from_direction": 269.7

Please take a look at the beta and start porting your existing applications shortly.

We'll be polishing up error messages and verifying the data in the 2.0 beta until May 1st, when version 0.9 will be deprecated. At the same time we will switch so that both versions use FORTI as backend since the old Nordic-4km model is going away. This might mean some trivial differences in formatting and some values might be different due to more detailed simulations. You can get a preview of the MOX output coming to 0.9 here; note though that this link will be removed after May 1st:

https://api.met.no/weatherapi/oceanforecast/2.0/mox?lat=60.10&lon=5

Changes to the API

We've made some extensions to the available listings, which can be summarized as follows:

  • added labels to JSON (previously only in XML format)
  • added endpoints to JSON and XML where applicable

This means the available lists can now support links with endpoints, like we've been using with /complete.json and /classic.xml in Locationforecast. Also we have added extra validation of legal parameter values for all products.

Yr API translation table

As promised for some time, NRK has made a dump of their placenames database so that users of the old Yr API (varsel.xml and forecast.xml) can now easily change from the old Yr API URL to both api.met.no and the correspond pages on the new Yr site. Note that the api.met.no string can be used with both locationforecast, nowcast and other products inside the coverage area.

The links are available for all countries in the world, in both English and Norwegian (bokmål and nynorsk). You can download them as zip archives of CSV files from here:

https://developer.yr.no/doc/guides/getting-started-from-forecast-xml/

MetAlerts archive

By popular requests, we have made available archives of historical alerts going back to January 2019. This means that developers can now easily simulate different alert types in their apps even when no warnings have been issued simply by turning back the clock. To use the archive, just specify the desired year and month with the "period" query parameter. See here for examples:

https://api.met.no/weatherapi/metalerts/1.1/documentation

Also, we have removed the link to the RSS alert feed from the available list, so it now only lists the CAP files which makes more sense as both basically do the same thing.

Probabilityforecast nearing EOL

This is the final product which has not yet been ported to FORTI. Due to changed requirements for the new Yr.no site we have decided to terminate this as a separate product, and instead add some more probabilty data to complete.json in Locationforecast. This is already in testing in-house, and will be launched publicly after Easter, at which point Probabilityforecast will be deprecated. Final EOL date is not yet determined, but sometime this summer is our best guess.

Termination of various products 2021-02-04

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.

News archive

Change log

Geosatellite: Added video files for Europe, 2021-02-18

Europe area animations in MP4 and WebM formats have been added. URL format has been made more flexible, using area and format as endpoint

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

Other data sources at MET Norway

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.