Back to data catalog
Weather • Sunrise • Temperature • Wind
Weather forecast for a specified place
OpenAPI Spec
Explore the OpenAPI spec for Location Weather Forecast API
Documentation
Explore the documentation for Location Weather Forecast API
This service delivers a full weather forecast for one location, that is, a forecast with several parameters for a nine-day period.
Version 2.0 defaults to JSON format for data. For an explanation of the various variables, see the Datamodel documentation. The JSON format is described in the General Forecast Format documentation.
For those who want to continue using their existing clients with a minimum of changes, you can also continue using the
old XML format. This must be accessed via the classic
method, like this:
https://api.met.no/weatherapi/locationforecast/2.0/classic?lat=59.93&lon=10.72&altitude=90
Note that the msi
parameter is now called altitude
in 2.0.
The XML format is considered legacy and as similar to 1.9 as possible except for additional time periods and the XML Schema URI. Future enhancements will primarily be added to the JSON format.
Also, some elements will be removed when version 1.9 is terminated, including the following elements:
<temperatureProbability unit="probabilitycode" value="0"/> <windProbability unit="probabilitycode" value="0"/> <symbolProbability unit="probabilitycode" value="1"/>
Along with the new JSON format, we also have a new set of weather icons in PNG, SVG, and PDF formats. They can be downloaded from GitHub.
The filename (minus extension) corresponds to the symbol_code
in the JSON format, including variations
for day, night, and polar day. This means there is no need for calculations or fetching data from the Sunrise service
in order to present the correct weather icons. This has also been added to the XML as an attribute
code
to the symbol
element:
<symbol id="PartlyCloud" number="3" code="partlycloudy_day"></symbol>
Note: There is a typing error in lightssleetshowersandthunder
and
lightssnowshowersandthunder
(extra "s" after "light"). Unfortunately, correcting this would mean breaking
existing applications, so it has been postponed to the next version of weathericon/locationforecast.
Wind direction denotes where the wind is coming from, where 0° is north, 90° east, etc. For GUI applications, we suggest using arrows, like these:
0° (north)
90° (east)
180° (south)
270° (west)
The new format also includes UV radiation forecasts per location, to replace the old graphical UV forecast product. For those wanting UV maps, these can be downloaded directly from CAMS.
Spatial Resolution
9km x 9km
Covers Norway, Sweden, Denamrk, Finland and other parts of North East Europe
Spatial Resolution
2.5km x 2.5km (0-60 hours) 9km x 9km (2-10 days)