← Landfræði og veður

Núverandi veður

GET /weather/current

Sæktu núverandi veðurskilyrði fyrir hvaða staðsetningu sem er, þar á meðal hitastig, raka, vindkælingu, úrkomu, vindhraða og -stefnu og veðurlýsingarkóða. Styður uppflettingu eftir breiddar-/lengdargráðu hnitum eða borgarnafni (30 stórborgir studdar). Gögn uppfærð á 15 mínútna fresti frá Open-Meteo, knúin af veðurþjónustum á landsvísu. Tilvalið fyrir veðurviðmót, skipuleggjara útivistar og staðsetningartengd forrit.

Breytur

lat valfrjálst

Latitude

lon valfrjálst

Longitude

city valfrjálst

City name

Dæmi um fyrirspurnir

Grunnnotkun
curl "https://nordapi.ee/api/v1/weather/current?city=oslo"
Weather in Oslo by city name
curl "https://nordapi.ee/api/v1/weather/current?city=oslo"
Weather in Tokyo by city name
curl "https://nordapi.ee/api/v1/weather/current?city=tokyo"
Weather by coordinates (New York)
curl "https://nordapi.ee/api/v1/weather/current?lat=40.71&lon=-74.01"

Lifandi svar

{
  "city": "oslo",
  "data": {
    "current": {
      "apparent_temperature": 15.1,
      "cloud_cover": 24,
      "interval": 900,
      "precipitation": 0.0,
      "relative_humidity_2m": 67,
      "temperature_2m": 15.9,
      "time": "2026-05-22T10:30",
      "weather_code": 1,
      "wind_direction_10m": 214,
      "wind_speed_10m": 7.6
    },
    "current_units": {
      "apparent_temperature": "°C",
      "cloud_cover": "%",
      "interval": "seconds",
      "precipitation": "mm",
      "relative_humidity_2m": "%",
      "temperature_2m": "°C",
      "time": "iso8601",
      "weather_code": "wmo code",
      "wind_direction_10m": "°",
      "wind_speed_10m": "km/h"
    },
    "elevation": 21.0,
    "generationtime_ms": 0.12230873107910156,
    "latitude": 59.915844,
    "longitude": 10.760788,
    "timezone": "Europe/Oslo",
    "timezone_abbreviation": "GMT+2",
    "utc_offset_seconds": 7200
  },
  "success": true
}