← Maantiede ja sää

Historiallinen sää

GET /weather/historical

Hae historical weather data for any location and date range from the Open-Meteo archive. Palauttaa daily temperature, precipitation, wind, and other weather variables for past dates. Vaatii latitude/longitude coordinates and a date range. Hyödyllinen climate analysis, agricultural research, insurance claims verification, event post-mortems, and comparing current conditions to historical norms.

Parametrit

lat pakollinen

Latitude

lon pakollinen

Longitude

start_date pakollinen

Start date

end_date pakollinen

End date

Esimerkkipyynnöt

Peruskäyttö
curl "https://nordapi.ee/api/v1/weather/historical?lat=59.9&lon=10.7&start_date=2025-01-01&end_date=2025-01-31"
Historical weather for Oslo in January 2025
curl "https://nordapi.ee/api/v1/weather/historical?lat=59.9&lon=10.7&start_date=2025-01-01&end_date=2025-01-31"
Historical weather for Paris in summer 2025
curl "https://nordapi.ee/api/v1/weather/historical?lat=48.86&lon=2.35&start_date=2025-06-01&end_date=2025-08-31"
Historical weather for Tokyo last week
curl "https://nordapi.ee/api/v1/weather/historical?lat=35.68&lon=139.69&start_date=2026-03-17&end_date=2026-03-24"

Reaaliaikainen vastaus

{
  "data": {
    "daily": {
      "precipitation_sum": [
        4.1,
        0.0,
        0.3,
        0.0,
        0.9,
        18.1,
        31.8,
        0.8,
        0.2,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.2,
        0.1,
        0.0,
        0.0,
        0.0,
        0.5,
        1.6,
        0.1,
        14.9,
        12.5,
        0.4,
        0.0,
        5.6,
        7.4,
        2.2,
        0.0,
        0.0
      ],
      "temperature_2m_max": [
        -3.2,
        -8.3,
        -2.2,
        -11.6,
        -7.6,
        -1.4,
        2.2,
        -0.6,
        -0.5,
        -1.5,
        -2.5,
        -7.2,
        2.0,
        2.0,
        1.8,
        2.9,
        2.0,
        1.2,
        1.5,
        0.6,
        -0.5,
        -2.7,
        0.5,
        4.1,
        4.3,
        2.5,
        1.7,
        2.6,
        3.8,
        2.3,
        -1.0
      ],
      "temperature_2m_min": [
        -7.4,
        -12.7,
        -12.4,
        -15.9,
        -16.4,
        -7.4,
        -1.1,
        -3.9,
        -2.7,
        -8.1,
        -6.3,
        -14.3,
        -14.4,
        -2.1,
        -3.8,
        0.1,
        -0.8,
        -3.4,
        -1.5,
        -1.4,
        -3.0,
        -8.1,
        -7.7,
        -8.5,
        1.5,
        -4.1,
        0.0,
        0.3,
        2.0,
        -4.9,
        -5.8
      ],
      "time": [
        "2025-01-01",
        "2025-01-02",
        "2025-01-03",
        "2025-01-04",
        "2025-01-05",
        "2025-01-06",
        "2025-01-07",
        "2025-01-08",
        "2025-01-09",
        "2025-01-10",
        "2025-01-11",
        "2025-01-12",
        "2025-01-13",
        "2025-01-14",
        "2025-01-15",
        "2025-01-16",
        "2025-01-17",
        "2025-01-18",
        "2025-01-19",
        "2025-01-20",
        "2025-01-21",
        "2025-01-22",
        "2025-01-23",
        "2025-01-24",
        "2025-01-25",
        "2025-01-26",
        "2025-01-27",
        "2025-01-28",
        "2025-01-29",
        "2025-01-30",
        "2025-01-31"
      ],
      "weather_code": [
        73,
        3,
        71,
        3,
        73,
        75,
        75,
        71,
        71,
        1,
        2,
        3,
        3,
        3,
        51,
        51,
        3,
        3,
        3,
        51,
        73,
        71,
        75,
        75,
        71,
        3,
        75,
        73,
        53,
        3,
        3
      ],
      "wind_speed_10m_max": [
        21.1,
        13.2,
        29.3,
        6.9,
        9.1,
        31.6,
        33.3,
        16.1,
        15.1,
        15.0,
        19.3,
        10.6,
        16.6,
        14.4,
        7.3,
        1.8,
        7.2,
        5.2,
        6.3,
        9.0,
        11.5,
        5.4,
        24.2,
        26.5,
        26.3,
        16.7,
        17.4,
        10.7,
        13.2,
        6.7,
        7.9
      ]
    },
    "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": 0.0,
    "generationtime_ms": 0.6513595581054688,
    "latitude": 59.9297,
    "longitude": 10.625,
    "timezone": "Europe/Oslo",
    "timezone_abbreviation": "GMT+2",
    "utc_offset_seconds": 7200
  },
  "success": true
}