← Geo ja ilm

Ilmaprognoos

GET /weather/forecast

Hangi mitmepäevane ilmaprognoos kuni 16 päevaks koos päevaste kõrgeimate/madalaimate temperatuuride, sademete tõenäosuse, tuulekiiruse ja ilmakoodidega. Toetab koordinaatide või linnanime otsingut. Kasulik reisiplaneerimise rakendustele, sündmuste ajakavastamise tööriistadele, põllumajanduse armatuurlaudadele ja mis tahes funktsioonile, mis aitab kasutajatel tulevasi ilmaolusid arvestades planeerida. Andmed pärinevad Open-Meteo prognoosimudelitest.

Parameetrid

lat valikuline

Latitude

lon valikuline

Longitude

city valikuline

City name

days valikuline vaikeväärtus: 7

Forecast days

Näidispäringud

Põhikasutus
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"

Reaalajas vastus

{
  "city": "tokyo",
  "data": {
    "daily": {
      "precipitation_sum": [
        0.6,
        0.0,
        0.6,
        1.0,
        0.6,
        4.2,
        0.0
      ],
      "temperature_2m_max": [
        21.9,
        23.7,
        26.2,
        27.7,
        25.4,
        21.4,
        25.7
      ],
      "temperature_2m_min": [
        17.8,
        16.5,
        17.2,
        18.8,
        18.2,
        17.0,
        16.1
      ],
      "time": [
        "2026-06-10",
        "2026-06-11",
        "2026-06-12",
        "2026-06-13",
        "2026-06-14",
        "2026-06-15",
        "2026-06-16"
      ],
      "weather_code": [
        51,
        2,
        51,
        53,
        51,
        53,
        3
      ],
      "wind_speed_10m_max": [
        6.6,
        7.6,
        6.5,
        8.7,
        11.7,
        9.8,
        9.3
      ]
    },
    "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": 2.1822452545166016,
    "latitude": 35.7,
    "longitude": 139.625,
    "timezone": "Asia/Tokyo",
    "timezone_abbreviation": "GMT+9",
    "utc_offset_seconds": 32400
  },
  "success": true
}