← Geo og vejr

Vejrudsigt

GET /weather/forecast

Hent en flerdages vejrudsigt for op til 16 dage med daglige høj-/lavtemperaturer, nedbørssandsynlighed, vindhastighed og vejrkoder. Understøtter koordinater eller bynavnopslag. Nyttigt til rejseplanlægningsapps, eventplanlægningsværktøjer, landbrugsdashboards og enhver funktion, der hjælper brugere med at planlægge ud fra fremtidige vejrforhold. Data fra Open-Meteo prognosemodeller.

Parametre

lat valgfri

Latitude

lon valgfri

Longitude

city valgfri

City name

days valgfri standard: 7

Forecast days

Eksempelforespørgsler

Grundlæggende brug
curl "https://nordapi.ee/api/v1/weather/forecast?city=tokyo&days=7"
7-day forecast for Tokyo
curl "https://nordapi.ee/api/v1/weather/forecast?city=tokyo&days=7"
3-day forecast for London
curl "https://nordapi.ee/api/v1/weather/forecast?city=london&days=3"
16-day forecast by coordinates (Sydney)
curl "https://nordapi.ee/api/v1/weather/forecast?lat=-33.87&lon=151.21&days=16"
Default forecast for Oslo
curl "https://nordapi.ee/api/v1/weather/forecast?city=oslo"

Livesvar

{
  "city": "tokyo",
  "data": {
    "daily": {
      "precipitation_sum": [
        32.8,
        19.1,
        23.4,
        5.55,
        3.6,
        0.9,
        0.9
      ],
      "temperature_2m_max": [
        27.1,
        26.8,
        25.4,
        28.2,
        27.8,
        29.7,
        29.5
      ],
      "temperature_2m_min": [
        22.4,
        23.4,
        23.8,
        22.7,
        21.2,
        21.0,
        21.8
      ],
      "time": [
        "2026-08-12",
        "2026-08-13",
        "2026-08-14",
        "2026-08-15",
        "2026-08-16",
        "2026-08-17",
        "2026-08-18"
      ],
      "weather_code": [
        63,
        61,
        63,
        61,
        53,
        51,
        51
      ],
      "wind_speed_10m_max": [
        9.3,
        4.1,
        3.8,
        9.4,
        8.7,
        8.1,
        6.2
      ]
    },
    "daily_units": {
      "precipitation_sum": "mm",
      "temperature_2m_max": "°C",
      "temperature_2m_min": "°C",
      "time": "iso8601",
      "weather_code": "wmo code",
      "wind_speed_10m_max": "km/h"
    },
    "elevation": 37.0,
    "generationtime_ms": 0.32901763916015625,
    "latitude": 35.7,
    "longitude": 139.625,
    "timezone": "Asia/Tokyo",
    "timezone_abbreviation": "GMT+9",
    "utc_offset_seconds": 32400
  },
  "success": true
}