← Geo & väder

Väderprognos

GET /weather/forecast

Get a multi-day väderprognos for up to 16 dagar, med daglig high/low temperaturr, precipitation probability, vindhastighet, and weather codes. Stöder koordinater or stad namn lookup. Användbart för rese att planera appar, evenemang att schemalägga verktyg, agriculture instrumentpaneler, and valfri funktion som helps användare plan around future väderförhållanden. Data från Open-Meteo forecast modeller.

Parametrar

lat valfri

Latitude

lon valfri

Longitude

city valfri

City name

days valfri standard: 7

Forecast days

Exempelförfrågningar

Grundläggande användning
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": [
        0.0,
        14.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0
      ],
      "temperature_2m_max": [
        22.5,
        16.5,
        17.3,
        18.0,
        19.7,
        22.6,
        18.2
      ],
      "temperature_2m_min": [
        12.0,
        8.8,
        5.9,
        8.3,
        15.1,
        14.2,
        12.7
      ],
      "time": [
        "2026-04-06",
        "2026-04-07",
        "2026-04-08",
        "2026-04-09",
        "2026-04-10",
        "2026-04-11",
        "2026-04-12"
      ],
      "weather_code": [
        3,
        63,
        2,
        3,
        3,
        3,
        3
      ],
      "wind_speed_10m_max": [
        9.4,
        13.1,
        10.4,
        27.1,
        27.1,
        13.7,
        10.7
      ]
    },
    "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.19252300262451172,
    "latitude": 35.7,
    "longitude": 139.625,
    "timezone": "Asia/Tokyo",
    "timezone_abbreviation": "GMT+9",
    "utc_offset_seconds": 32400
  },
  "success": true
}