Meteorologisk Institutt API

⭐ Beginner's Pick Weather / User-Agent Advanced HTTPS
Check official documentation

Overview

Meteorologisk Institutt (MET Norway) provides free, high-quality weather and climate data via their Yr.no API, covering global locations with hourly and long-range forecasts. Authentication is free — you just need to set a descriptive User-Agent header that identifies your app and contact email. This is one of the most developer-friendly official meteorological APIs available globally.

💡

Beginner Tip

MET Norway requires a User-Agent header identifying your application and contact email, for example MyWeatherApp/1.0 [email protected]. Without a proper User-Agent, your requests will be rejected with a 403 error.

Available Data

temperature
weather conditions
humidity
wind speed
forecast data
Use case: Integrate weather and climate data data into web and mobile applications

Example Response

JSON Response
{
  "location": "Tokyo",
  "temperature": {
    "current": 22,
    "feels_like": 24,
    "min": 18,
    "max": 26
  },
  "condition": "Partly Cloudy",
  "humidity": 65,
  "wind": {
    "speed": 12,
    "direction": "NE"
  },
  "forecast": [
    {
      "date": "2025-01-16",
      "high": 25,
      "low": 17,
      "condition": "Sunny"
    }
  ]
}

Field Reference

properties.timeseries[].time ISO 8601 UTC timestamp for this forecast data point.
properties.timeseries[].data.instant.details.air_temperature Air temperature in degrees Celsius at this time step.
properties.timeseries[].data.instant.details.wind_speed Wind speed in metres per second.
properties.timeseries[].data.next_1_hours.summary.symbol_code Weather symbol code for the next hour, e.g., clearsky_day or heavyrain.
properties.timeseries[].data.next_1_hours.details.precipitation_amount Expected precipitation in millimetres over the next hour.

Implementation Example

// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://api.met.no/weatherapi/documentation";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

403 Forbidden The User-Agent header is missing or uses a generic value like curl/7.x.
Set a descriptive User-Agent such as YourAppName/1.0 [email protected] so MET Norway can contact you if there are issues.
429 Too Many Requests You are polling too frequently without caching the Expires header.
Implement HTTP caching: check the Expires header in the response and skip the next request if the data has not expired yet.
Coordinates produce no forecast data Very remote ocean coordinates may have limited coverage.
Use coordinates of a nearby land location, or verify coverage with the locationforecast/2.0/status endpoint.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 3/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth User-Agent
HTTPS REQUIRED
CORS UNKNOWN
Category Weather
Difficulty Advanced
Verified: 2026-04-04

Similar APIs

View All →