# MET Norway Weather API

The free forecast API behind Yr: give it a latitude and longitude anywhere in the world and get a point forecast (temperature, wind, rain, cloud, UV, weather symbol) as JSON or legacy XML.

- Category: Weather and climate · by Norwegian Meteorological Institute (MET Norway)
- Website: https://api.met.no/
- Live data: yes
- Checked on the official pages: 2026-10-23

## API

- Official API: yes, docs https://api.met.no/weatherapi/locationforecast/2.0/documentation
- Key needed: no
- Price: Free; limits: Identifying User-Agent required (missing or generic ones get 403); over 20 requests/second per application in total needs a special agreement; max 4 decimals in coordinates; respect Expires and use If-Modified-Since
- Base URL: https://api.met.no/weatherapi/locationforecast/2.0/
- Formats: json, xml

Example request:

```
https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=59.91&lon=10.75
```

## Data and license

- Download: https://thredds.met.no/thredds/metno.html (netcdf)
- License: NLOD 2.0 and CC BY 4.0 (https://api.met.no/doc/License); covers All data and products on api.met.no unless specified otherwise; use of the service is also bound by the Terms of Service (identification, caching, traffic limits, no 'Yr' branding)
- Commercial use OK
- Credit required
- Embedding with conditions
- Quote (api_official): "API is an interface to a selection of data produced by MET Norway. The data are freely available for use under a Creative Commons license , including commercial use." (https://api.met.no/)
- Quote (commercial): "The data are freely available for use under a Creative Commons license , including commercial use." (https://api.met.no/)
- Quote (license): "Unless specified otherwise, all data and products are licensed under the Norwegian Licence for Open Government Data (NLOD) 2.0 and Creative Commons 4.0 BY International licences." (https://api.met.no/doc/License)
- Quote (attribution): "Credit should be given to The Norwegian Meteorological Institute, shortened MET Norway , as the source of data." (https://api.met.no/doc/License)
- Quote (attribution_tos): "All open data require attribution as specified in the CC BY 4.0 license: You must give appropriate credit, provide a link to the license, and indicate if changes were made." (https://api.met.no/doc/TermsOfService)
- Quote (api_key): "All requests must (if possible) include an identifying User Agent-string (UA) in the request with the application/domain name, optionally version number." (https://api.met.no/doc/TermsOfService)
- Quote (user_agent_403): "Any requests with a prohibited or missing User-Agent will receive a 403 Forbidden error. Examples of banned User-Agents include: okhttp Dalvik fhttp Java" (https://api.met.no/weatherapi/locationforecast/2.0/documentation)
- Quote (limits): "Anything over 20 requests/second per application (total, not per client) requires special agreement." (https://api.met.no/doc/TermsOfService)
- Quote (limits_coords): "When using requests with latitude/longitude, truncate all coordinates to max 4 decimals." (https://api.met.no/doc/TermsOfService)
- Quote (caching): "Do not ask too often, and don't repeat requests until the time indicated in the Expires response header. Cache data locally and and use the If-Modified-Since request header" (https://api.met.no/doc/TermsOfService)
- Quote (embed): "Browsers and mobile apps should not contact the API directly, but instead use a local proxy (backend for frontend) server where you can cache data and add identification/authentication details" (https://api.met.no/doc/TermsOfService)
- Quote (download): "While we only serve current forecasts via the API, you can find historical forecast model data in NetCDF format on https://thredds.met.no/thredds/metno.html ." (https://api.met.no/weatherapi/locationforecast/2.0/documentation)
- Quote (formats): "/complete JSON forecast with all values." (https://api.met.no/weatherapi/locationforecast/2.0/documentation)
- Quote (branding): "you may not use the word "Yr" as a part of your service name, or attach the Yr logo to your service." (https://api.met.no/doc/TermsOfService)

## Rules for an agent

- Send a unique User-Agent (app name + site URL), round lat/lon to 4 decimals, use /compact for the common fields, and re-request only after the Expires header (send If-Modified-Since).
- Always send an identifying User-Agent (e.g. 'AgentGidBot/1.0 (+https://agentgid.com/about/)'); generic ones like okhttp or Java are blocked with 403.
- Credit 'MET Norway' as the data source (CC BY 4.0 / NLOD); do not use the name or logo of Yr.
- Cache responses, honour Expires/If-Modified-Since, round coordinates to 4 decimals, and stay under 20 requests/second in total; browsers and mobile apps should go through your own proxy.

## Build ideas on AgentGid

- [Rain in the next hour: an alert for your city](https://agentgid.com/resources/ideas/rain-alert-for-your-city/agent.md)

Human page: https://agentgid.com/resources/met-norway-locationforecast/
Source: AgentGid (agentgid.com). Facts are quoted from the site's own pages; check the license page before you ship.
