← Landfræði og veður

Núverandi veður

GET /weather/current

Fáðu current veðurskilyrði for hvaða ... sem er location, þar á meðal hitastig, raka, feels-like hitastig, úrkomu, vindhraða and direction, and weather description code. Styður lookup by breiddar-/lengdargráðu hnit or by city name (30 major cities supported). Data uppfært á 15 minutes from Open-Meteo, powered by national weather þjónustur. Tilvalið fyrir weather widgets, outdoor activity planners, and location-based 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": 5.3,
      "cloud_cover": 74,
      "interval": 900,
      "precipitation": 0.0,
      "relative_humidity_2m": 78,
      "temperature_2m": 7.8,
      "time": "2026-04-05T19:15",
      "weather_code": 2,
      "wind_direction_10m": 259,
      "wind_speed_10m": 8.3
    },
    "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.09107589721679688,
    "latitude": 59.915844,
    "longitude": 10.760788,
    "timezone": "Europe/Oslo",
    "timezone_abbreviation": "GMT+2",
    "utc_offset_seconds": 7200
  },
  "success": true
}