SMHI

App · 14 actions

Open data from SMHI, the Swedish Meteorological and Hydrological Institute: weather forecasts and fire risk for Sweden and the Nordic countries, recent weather at any place, weather, river and sea observations from SMHI's stations, sunshine and climate history, lightning strikes, and official weather warnings, with a trigger for new warnings. No account or API key required.

Actions

ActionWhat it does
Find nearest stationsFind the SMHI stations reporting a parameter now that stand nearest a place, nearest first, with how far each is.
Get fire risk forecastGet SMHI's daily fire risk forecast for a place for the coming days: the forest fire risk class (very low to extremely high) with the Fire Weather Index and its parts, the grass fire risk, how dry the forest floor is, and the day's weather.
Get forecast for a timeGet SMHI's forecast for a place at one moment in the next ten days, such as tomorrow at noon: the forecast step closest to it, with temperature, wind, precipitation, cloud and the weather in words.
Get latest observations at all stationsGet every SMHI station's latest value of a parameter at once, highest first: the warmest and coldest places in Sweden now, the strongest gusts, the highest sea levels.
Get observationsGet what an SMHI station measured for a parameter over the latest hour, day or four months, earliest first, with each value's quality code and the latest value on its own.
Get precipitation and temperature historyGet precipitation and mean temperature for any place in Sweden by day, month or year, from 1961 to yesterday, with the total and the mean over the span.
Get recent weatherGet the weather at any place in Sweden or the Nordic countries hour by hour over the last 24 hours, newest first, from SMHI's analysis of station, radar and satellite data: temperature, dew point, wind and gusts, precipitation, snow, visibility, cloud and the weather in words.
Get sunshine and solar radiationGet how much sun a place had, from SMHI's STRÅNG model: hours of sunshine, or global, direct, diffuse, PAR or UV radiation, by hour, day or month, from 1999 to today.
Get weather forecastGet SMHI's weather forecast for a place in Sweden or the Nordic countries, soonest first: hourly for about two days, then every 6 to 12 hours up to ten days ahead.
List lightning strikesList the lightning strikes SMHI located on a past day over Sweden and its neighbours, optionally only those within a distance of a place, with when and where each struck, its strength and whether it hit the ground.
List observation parametersList what SMHI's stations measure, with the ids the other observation steps take: for weather (temperature, wind, precipitation, snow depth and more), hydrology (water level, discharge, ice) or the ocean (sea level, waves, sea temperature).
List stationsList SMHI's stations that measure a parameter, by name, with their ids, positions, owners, since when they report and when their latest value is from.
List warning areasList the 21 counties and 18 sea districts SMHI issues warnings for, with the ids the warning filters take, in English and Swedish.
List weather warningsList SMHI's weather warnings in force, highest level first: what they warn of (wind, rain, snow, high flows, water shortage and more), the level (message, yellow, orange or red), where, when and SMHI's advice.

Find nearest stations

Find the SMHI stations reporting a parameter now that stand nearest a place, nearest first, with how far each is. Use a station's id in 'Get observations'. No API key required.

Inputs

Datasourcetext
Which of SMHI's observations: weather stations, hydrology (rivers and lakes) or the ocean (sea level, waves, sea temperature).One of: weather, hydrology (Hydrology (rivers and lakes)), ocean. Default: weather.
ParameterparametertextRequired
What is measured, such as air temperature (1) or, for hydrology, discharge every 15 minutes (2). 'List observation parameters' lists the ids.
LatitudelatitudenumberRequired
Latitude of the place in decimal degrees, 49 to 76.From 49.0 to 76.0.
LongitudelongitudenumberRequired
Longitude of the place in decimal degrees, -19 to 55.From -19.0 to 55.0.
Number of stationslimitnumber
How many to list, 1 to 50. Defaults to 5.From 1 to 50.

Outputs

countnumber
How many stations, nearest first came back.
latitudenumber
Latitude asked about.
longitudenumber
Longitude asked about.
parameterobject
The parameter asked about.
sourcetext
weather, hydrology or ocean.
stationslist
The stations, nearest first.
summarytext
One sentence saying what came back.
Example output
{
  "count": 3,
  "latitude": 59.3293,
  "longitude": 18.0686,
  "parameter": {
    "id": "1",
    "name": "Air temperature, hourly",
    "unit": "\u00b0C"
  },
  "source": "weather",
  "stations": [
    {
      "catchment": null,
      "distance_km": 1.6,
      "height_m": 43.133,
      "id": "98230",
      "latest_data": "2026-10-23T17:00:00Z",
      "latitude": 59.3417,
      "longitude": 18.0549,
      "measuring_since": "1996-10-01",
      "name": "Stockholm-Observatoriekullen A",
      "owner": "SMHI",
      "quality_checked": true,
      "reporting": true
    },
    {
      "catchment": null,
      "distance_km": 7.2,
      "height_m": 14.0,
      "id": "97200",
      "latest_data": "2026-10-23T17:00:00Z",
      "latitude": 59.3537,
      "longitude": 17.9513,
      "measuring_since": "1949-01-01",
      "name": "Stockholm-Bromma Flygplats",
      "owner": "Swedavia",
      "quality_checked": true,
      "reporting": true
    }
  ],
  "summary": "Nearest station measuring air temperature, hourly: Stockholm-Observatoriekullen A (98230), 1.6 km away."
}

Get fire risk forecast

Get SMHI's daily fire risk forecast for a place for the coming days: the forest fire risk class (very low to extremely high) with the Fire Weather Index and its parts, the grass fire risk, how dry the forest floor is, and the day's weather. No API key required.

Inputs

LatitudelatitudenumberRequired
Latitude of the place in decimal degrees, 49 to 76.From 49.0 to 76.0.
LongitudelongitudenumberRequired
Longitude of the place in decimal degrees, -19 to 55.From -19.0 to 55.0.

Outputs

approved_attext
When SMHI approved this forecast, ISO 8601 UTC.
countnumber
How many days, earliest first came back.
dayslist
The days, earliest first.
latitudenumber
Latitude of the model grid point SMHI used, the one nearest the point asked for.
longitudenumber
Longitude of that grid point.
summarytext
One sentence saying what came back.
Example output
{
  "approved_at": "2026-10-23T16:55:41Z",
  "count": 7,
  "days": [
    {
      "bui": 5.7,
      "date": "2026-10-22",
      "dc": 314.7,
      "dmc": 2.9,
      "ffmc": 81.4,
      "fire_risk": "Very low risk",
      "fire_risk_level": 1,
      "forest_dryness": "Very wet",
      "forest_dryness_level": 1,
      "fwi": 3.3,
      "grass_fire_risk": "Outside the season or no data",
      "grass_fire_risk_level": null,
      "isi": 4.2,
      "precipitation_24h_mm": 0.0,
      "relative_humidity": 81,
      "temperature": 12.9,
      "wind_direction": 127,
      "wind_speed": 6.0
    },
    {
      "bui": 5.8,
      "date": "2026-10-23",
      "dc": 315.4,
      "dmc": 3.0,
      "ffmc": 78.0,
      "fire_risk": "Very low risk",
      "fire_risk_level": 1,
      "forest_dryness": "Very wet",
      "forest_dryness_level": 1,
      "fwi": 1.8,
      "grass_fire_risk": "Outside the season or no data",
      "grass_fire_risk_level": null,
      "isi": 2.7,
      "precipitation_24h_mm": 5.4,
      "relative_humidity": 91,
      "temperature": 10.9,
      "wind_direction": 159,
      "wind_speed": 2.0
    }
  ],
  "latitude": 59.33036,
  "longitude": 18.077207,
  "summary": "SMHI fire risk for 59.3304, 18.0772, 2026-10-22 to 2026-10-28: highest very low risk on 2026-10-22."
}

Get forecast for a time

Get SMHI's forecast for a place at one moment in the next ten days, such as tomorrow at noon: the forecast step closest to it, with temperature, wind, precipitation, cloud and the weather in words. No API key required.

Inputs

LatitudelatitudenumberRequired
Latitude of the place in decimal degrees, 49 to 76.From 49.0 to 76.0.
LongitudelongitudenumberRequired
Longitude of the place in decimal degrees, -19 to 55.From -19.0 to 55.0.
Timetimedate and timeRequired
When, within SMHI's forecast (about ten days ahead).

Outputs

cloud_base_mnumber
Height of the lowest cloud layer covering half the sky or more, in m.
cloud_cover_oktasnumber
Total cloud cover in eighths of the sky: 0 clear to 8 overcast.
created_attext
When SMHI made this forecast, ISO 8601 UTC.
frozen_precipitation_percentnumber
How much of the precipitation falls frozen (snow, ice), in %. Empty when none falls.
latitudenumber
Latitude of the model grid point SMHI used, the one nearest the point asked for.
local_timetext
The same time in Sweden, ISO 8601 with offset.
longitudenumber
Longitude of that grid point.
period_starttext
Start of the period the precipitation figures cover (they run to 'time'): an hour at first, six or twelve hours further ahead.
precipitation_max_mmnumber
The most precipitation among the ensemble members, in mm.
precipitation_min_mmnumber
The least precipitation among the ensemble members that have any, in mm.
precipitation_mmnumber
Precipitation expected over the period, in mm (the mean of SMHI's ensemble).
precipitation_probabilitynumber
Chance of at least 0.1 mm, in %.
precipitation_typetext
The main kind of precipitation in words, such as 'Rain', 'Snow' or 'No precipitation'.
pressurenumber
Air pressure at sea level, in hPa.
relative_humiditynumber
Relative humidity, in %.
requested_timetext
The time asked for, ISO 8601 UTC.
summarytext
One sentence saying what came back.
temperaturenumber
Air temperature 2 m above the ground, in °C.
thunder_probabilitynumber
Chance of thunder, in %.
timetext
The forecast step used: the one closest to the time asked for, ISO 8601 UTC.
visibility_kmnumber
Visibility, in km.
weathertext
The weather symbol in words, such as 'Halfclear sky' or 'Light rain'.
weather_symbolnumber
SMHI's weather symbol, 1 (clear sky) to 27 (heavy snowfall).
wind_directionnumber
Where the wind blows from, in degrees (0 north, 90 east).
wind_direction_compasstext
The wind direction as a compass point, such as 'SSW'.
wind_gustnumber
Strongest gust, in m/s.
wind_speednumber
Mean wind speed 10 m above the ground, in m/s.
Example output
{
  "cloud_base_m": 4668,
  "cloud_cover_oktas": 8,
  "created_at": "2026-10-23T17:49:15Z",
  "frozen_precipitation_percent": 0,
  "latitude": 59.33036,
  "local_time": "2026-10-25T13:00:00+01:00",
  "longitude": 18.077207,
  "period_start": "2026-10-25T11:00:00Z",
  "precipitation_max_mm": 1.7,
  "precipitation_min_mm": 0.3,
  "precipitation_mm": 0.4,
  "precipitation_probability": 37,
  "precipitation_type": "Rain",
  "pressure": 993.1,
  "relative_humidity": 71,
  "requested_time": "2026-10-25T12:00:00Z",
  "summary": "SMHI forecast for 59.3304, 18.0772 at 2026-10-25 12:00 UTC: 11 \u00b0C, overcast, wind 9.7 m/s from SSE.",
  "temperature": 11.0,
  "thunder_probability": 3,
  "time": "2026-10-25T12:00:00Z",
  "visibility_km": 24.3,
  "weather": "Overcast",
  "weather_symbol": 6,
  "wind_direction": 157,
  "wind_direction_compass": "SSE",
  "wind_gust": 18.1,
  "wind_speed": 9.7
}

Get latest observations at all stations

Get every SMHI station's latest value of a parameter at once, highest first: the warmest and coldest places in Sweden now, the strongest gusts, the highest sea levels. Not every parameter has an all-stations file. No API key required.

Inputs

Datasourcetext
Which of SMHI's observations: weather stations, hydrology (rivers and lakes) or the ocean (sea level, waves, sea temperature).One of: weather, hydrology (Hydrology (rivers and lakes)), ocean. Default: weather.
ParameterparametertextRequired
What is measured, such as air temperature (1) or, for hydrology, discharge every 15 minutes (2). 'List observation parameters' lists the ids.

Outputs

countnumber
How many stations, highest value first (those with none last) came back.
parameterobject
The parameter asked about.
periodtext
The file read: latest-hour or latest-day.
reportingnumber
How many stations sent a value.
sourcetext
weather, hydrology or ocean.
stationslist
The stations, highest value first (those with none last).
summarytext
One sentence saying what came back.
Example output
{
  "count": 232,
  "parameter": {
    "id": "1",
    "name": "Air temperature, hourly",
    "unit": "\u00b0C"
  },
  "period": "latest-hour",
  "reporting": 183,
  "source": "weather",
  "stations": [
    {
      "latitude": 55.489,
      "longitude": 14.3144,
      "name": "Skillinge A",
      "quality": "G",
      "station_id": "54290",
      "time": "2026-10-23T17:00:00Z",
      "value": 11.3
    },
    {
      "latitude": 55.3837,
      "longitude": 12.8166,
      "name": "Falsterbo A",
      "quality": "G",
      "station_id": "52240",
      "time": "2026-10-23T17:00:00Z",
      "value": 10.8
    },
    {
      "latitude": 66.386,
      "longitude": 23.6155,
      "name": "\u00d6vertorne\u00e5",
      "quality": null,
      "station_id": "173810",
      "time": null,
      "value": null
    }
  ],
  "summary": "Air temperature, hourly at 183 stations (the latest hour): highest 11.3 \u00b0C at Skillinge A, lowest 0.9 \u00b0C at Tarfala A."
}

Get observations

Get what an SMHI station measured for a parameter over the latest hour, day or four months, earliest first, with each value's quality code and the latest value on its own. Weather stations offer all three periods; hydrology and ocean stations the latest day. No API key required.

Inputs

Datasourcetext
Which of SMHI's observations: weather stations, hydrology (rivers and lakes) or the ocean (sea level, waves, sea temperature).One of: weather, hydrology (Hydrology (rivers and lakes)), ocean. Default: weather.
ParameterparametertextRequired
What is measured, such as air temperature (1) or, for hydrology, discharge every 15 minutes (2). 'List observation parameters' lists the ids.
StationstationtextRequired
The station's id, such as 98230 for Stockholm. The list shows the stations reporting the parameter now; 'Find nearest stations' finds one near a place.
Periodperiodtext
How far back. The latest hour and four months are for weather stations only; daily and monthly values come with the latest four months.One of: latest-hour (Latest hour), latest-day (Latest day), latest-months (Latest four months). Default: latest-day.
Sincesincedate and time
Only values measured at or after this time. Leave empty for the whole period.

Outputs

countnumber
How many values, earliest first came back.
latest_timetext
When the newest value is from, ISO 8601 UTC.
latest_valuenumber
The newest value.
observationslist
The values, earliest first.
parameterobject
The parameter asked about.
periodtext
latest-hour, latest-day or latest-months.
sourcetext
weather, hydrology or ocean.
stationobject
The station.
summarytext
One sentence saying what came back.
Example output
{
  "count": 25,
  "latest_time": "2026-10-23T17:00:00Z",
  "latest_value": 9.2,
  "observations": [
    {
      "depth_m": null,
      "period_label": null,
      "period_start": null,
      "quality": "G",
      "quality_description": "Checked and approved",
      "time": "2026-10-22T17:00:00Z",
      "value": 11.7
    },
    {
      "depth_m": null,
      "period_label": null,
      "period_start": null,
      "quality": "G",
      "quality_description": "Checked and approved",
      "time": "2026-10-22T18:00:00Z",
      "value": 11.6
    },
    {
      "depth_m": null,
      "period_label": null,
      "period_start": null,
      "quality": "G",
      "quality_description": "Checked and approved",
      "time": "2026-10-22T19:00:00Z",
      "value": 11.7
    }
  ],
  "parameter": {
    "id": "1",
    "name": "Air temperature, hourly",
    "unit": "\u00b0C"
  },
  "period": "latest-day",
  "source": "weather",
  "station": {
    "id": "98230",
    "latitude": 59.3417,
    "longitude": 18.0549,
    "name": "Stockholm-Observatoriekullen A"
  },
  "summary": "Air temperature, hourly at Stockholm-Observatoriekullen A: 9.2 \u00b0C at 2026-10-23 17:00 UTC (25 values for the latest day)."
}

Get precipitation and temperature history

Get precipitation and mean temperature for any place in Sweden by day, month or year, from 1961 to yesterday, with the total and the mean over the span. From SMHI's gridded climate data, so it works where there is no station. No API key required.

Inputs

LatitudelatitudenumberRequired
Latitude of the place in decimal degrees, 55 to 70.From 55.0 to 70.0.
LongitudelongitudenumberRequired
Longitude of the place in decimal degrees, 10 to 25.From 10.0 to 25.0.
Periodperiodtext
One value per day (up to a year), per month (up to 30 years) or per year.One of: daily, monthly, yearly. Default: daily.
Start datestart_datedate
First day. Leave empty for 30 days before the end date (a year for monthly, ten years for yearly).
End dateend_datedate
Last day. Leave empty for yesterday.

Outputs

countnumber
How many days, months or years, earliest first came back.
latitudenumber
Latitude asked about.
longitudenumber
Longitude asked about.
mean_temperaturenumber
The mean of the temperatures listed, in °C.
periodtext
daily, monthly or yearly.
summarytext
One sentence saying what came back.
total_precipitation_mmnumber
Precipitation over the whole span, in mm.
valueslist
The days, months or years, earliest first.
Example output
{
  "count": 12,
  "latitude": 59.3293,
  "longitude": 18.0686,
  "mean_temperature": 8.8,
  "period": "monthly",
  "summary": "Monthly history at 59.3293, 18.0686, 2025-01 to 2025-12: 523.7 mm of precipitation, mean temperature 8.8 \u00b0C.",
  "total_precipitation_mm": 523.7,
  "values": [
    {
      "date": "2025-01",
      "precipitation_mm": 53.7,
      "temperature": 0.5
    },
    {
      "date": "2025-02",
      "precipitation_mm": 7.0,
      "temperature": -0.6
    },
    {
      "date": "2025-03",
      "precipitation_mm": 4.0,
      "temperature": 4.5
    }
  ]
}

Get recent weather

Get the weather at any place in Sweden or the Nordic countries hour by hour over the last 24 hours, newest first, from SMHI's analysis of station, radar and satellite data: temperature, dew point, wind and gusts, precipitation, snow, visibility, cloud and the weather in words. No API key required.

Inputs

LatitudelatitudenumberRequired
Latitude of the place in decimal degrees, 49 to 76.From 49.0 to 76.0.
LongitudelongitudenumberRequired
Longitude of the place in decimal degrees, -19 to 55.From -19.0 to 55.0.
Hourshoursnumber
How many hours back to include, 1 to 24. Defaults to 24.From 1 to 24.

Outputs

analysed_attext
When SMHI made this analysis, ISO 8601 UTC.
countnumber
How many hours, newest first came back.
hourslist
The hours, newest first.
latitudenumber
Latitude of the model grid point SMHI used, the one nearest the point asked for.
longitudenumber
Longitude of that grid point.
summarytext
One sentence saying what came back.
Example output
{
  "analysed_at": "2026-10-23T17:40:36Z",
  "count": 3,
  "hours": [
    {
      "cloud_base_m": 433,
      "cloud_cover_oktas": 4,
      "dew_point": 6.7,
      "local_time": "2026-10-23T19:00:00+02:00",
      "precipitation_last_3_hours_mm": 0.0,
      "precipitation_last_hour_mm": 0.0,
      "precipitation_type": "No precipitation",
      "pressure": 1012.2,
      "relative_humidity": 87,
      "snow_change_cm": 0.0,
      "temperature": 8.7,
      "time": "2026-10-23T17:00:00Z",
      "visibility_km": 13.7,
      "weather": "Variable cloudiness",
      "weather_symbol": 3,
      "wind_direction": 206,
      "wind_direction_compass": "SSW",
      "wind_gust": 3.4,
      "wind_speed": 1.4
    },
    {
      "cloud_base_m": 1335,
      "cloud_cover_oktas": 5,
      "dew_point": 8.1,
      "local_time": "2026-10-23T18:00:00+02:00",
      "precipitation_last_3_hours_mm": 0.0,
      "precipitation_last_hour_mm": 0.0,
      "precipitation_type": "No precipitation",
      "pressure": 1012.2,
      "relative_humidity": 91,
      "snow_change_cm": 0.0,
      "temperature": 9.7,
      "time": "2026-10-23T16:00:00Z",
      "visibility_km": 18.0,
      "weather": "Variable cloudiness",
      "weather_symbol": 3,
      "wind_direction": 130,
      "wind_direction_compass": "SE",
      "wind_gust": 2.7,
      "wind_speed": 2.2
    }
  ],
  "latitude": 59.33036,
  "longitude": 18.077207,
  "summary": "Weather at 59.3304, 18.0772 at 2026-10-23 17:00 UTC: 8.7 \u00b0C, variable cloudiness, wind 1.4 m/s from SSW, 0 mm of precipitation in the hour before. 3 hours back to 2026-10-23 15:00 UTC."
}

Get sunshine and solar radiation

Get how much sun a place had, from SMHI's STRÅNG model: hours of sunshine, or global, direct, diffuse, PAR or UV radiation, by hour, day or month, from 1999 to today. Useful for solar panels, farming and UV exposure. No API key required.

Inputs

LatitudelatitudenumberRequired
Latitude of the place in decimal degrees, 49 to 76.From 49.0 to 76.0.
LongitudelongitudenumberRequired
Longitude of the place in decimal degrees, -19 to 55.From -19.0 to 55.0.
Quantityquantitytext
What to measure. Defaults to global irradiance.One of: global (Global irradiance), sunshine (Sunshine duration), direct_normal (Direct normal irradiance), direct_horizontal (Direct horizontal irradiance), diffuse (Diffuse irradiance), par (Photosynthetically active radiation (PAR)), uv (UV irradiance (CIE weighted)). Default: global.
Intervalintervaltext
One value per hour (up to 31 days), per day (up to a year) or per month (up to ten years).One of: hourly, daily, monthly. Default: daily.
Start datestart_datedate
First day. Leave empty for a week before the end date (the day itself for hourly, a year for monthly).
End dateend_datedate
Last day. Leave empty for today.

Outputs

countnumber
How many values, earliest first came back.
end_datetext
Last day covered, YYYY-MM-DD.
intervaltext
hourly, daily or monthly.
latitudenumber
Latitude asked about.
longitudenumber
Longitude asked about.
quantitytext
What was asked for, such as 'Global irradiance' or 'Sunshine duration'.
start_datetext
First day covered, YYYY-MM-DD.
summarytext
One sentence saying what came back.
totalnumber
All the values added up, in the unit for a day or month.
unittext
The unit of each value: W/m² (mW/m² for UV) for an hour, Wh/m² (mWh/m²) for a day or month, and minutes for sunshine.
valueslist
The values, earliest first.
Example output
{
  "count": 3,
  "end_date": "2026-06-03",
  "interval": "daily",
  "latitude": 59.3293,
  "longitude": 18.0686,
  "quantity": "Global irradiance",
  "start_date": "2026-06-01",
  "summary": "Global irradiance at 59.3293, 18.0686, daily, 2026-06-01 to 2026-06-03: 3 values, adding up to 16625.8 Wh/m\u00b2.",
  "total": 16625.8,
  "unit": "Wh/m\u00b2",
  "values": [
    {
      "time": "2026-06-01T00:00:00Z",
      "value": 6078.2
    },
    {
      "time": "2026-06-02T00:00:00Z",
      "value": 4507.7
    },
    {
      "time": "2026-06-03T00:00:00Z",
      "value": 6039.9
    }
  ]
}

Get weather forecast

Get SMHI's weather forecast for a place in Sweden or the Nordic countries, soonest first: hourly for about two days, then every 6 to 12 hours up to ten days ahead. Each step has temperature, wind and gusts, precipitation and its chance, cloud, humidity, pressure and the weather in words. No API key required.

Inputs

LatitudelatitudenumberRequired
Latitude of the place in decimal degrees, 49 to 76.From 49.0 to 76.0.
LongitudelongitudenumberRequired
Longitude of the place in decimal degrees, -19 to 55.From -19.0 to 55.0.
Hourshoursnumber
How many hours ahead to include, 1 to 240. Defaults to 48.From 1 to 240.

Outputs

countnumber
How many time steps, soonest first came back.
created_attext
When SMHI made this forecast, ISO 8601 UTC.
forecastlist
The time steps, soonest first.
latitudenumber
Latitude of the model grid point SMHI used, the one nearest the point asked for.
longitudenumber
Longitude of that grid point.
reference_timetext
The time the forecast run starts from, ISO 8601 UTC.
summarytext
One sentence saying what came back.
Example output
{
  "count": 24,
  "created_at": "2026-10-23T17:49:15Z",
  "forecast": [
    {
      "cloud_base_m": 368,
      "cloud_cover_oktas": 8,
      "frozen_precipitation_percent": null,
      "local_time": "2026-10-23T20:00:00+02:00",
      "period_start": "2026-10-23T17:00:00Z",
      "precipitation_max_mm": 0.0,
      "precipitation_min_mm": 0.0,
      "precipitation_mm": 0.0,
      "precipitation_probability": 0,
      "precipitation_type": "No precipitation",
      "pressure": 1011.8,
      "relative_humidity": 86,
      "temperature": 9.1,
      "thunder_probability": 1,
      "time": "2026-10-23T18:00:00Z",
      "visibility_km": 14.1,
      "weather": "Halfclear sky",
      "weather_symbol": 4,
      "wind_direction": 199,
      "wind_direction_compass": "SSW",
      "wind_gust": 5.5,
      "wind_speed": 3.0
    },
    {
      "cloud_base_m": 368,
      "cloud_cover_oktas": 8,
      "frozen_precipitation_percent": null,
      "local_time": "2026-10-23T21:00:00+02:00",
      "period_start": "2026-10-23T18:00:00Z",
      "precipitation_max_mm": 0.0,
      "precipitation_min_mm": 0.0,
      "precipitation_mm": 0.0,
      "precipitation_probability": 0,
      "precipitation_type": "No precipitation",
      "pressure": 1012.3,
      "relative_humidity": 87,
      "temperature": 9.0,
      "thunder_probability": 2,
      "time": "2026-10-23T19:00:00Z",
      "visibility_km": 13.3,
      "weather": "Overcast",
      "weather_symbol": 6,
      "wind_direction": 197,
      "wind_direction_compass": "SSW",
      "wind_gust": 5.5,
      "wind_speed": 2.9
    }
  ],
  "latitude": 59.33036,
  "longitude": 18.077207,
  "reference_time": "2026-10-23T17:30:00Z",
  "summary": "SMHI forecast for 59.3304, 18.0772: 24 time steps from 2026-10-23 18:00 to 2026-10-24 17:00 UTC. First: 9.1 \u00b0C, halfclear sky, wind 3 m/s from SSW."
}

List lightning strikes

List the lightning strikes SMHI located on a past day over Sweden and its neighbours, optionally only those within a distance of a place, with when and where each struck, its strength and whether it hit the ground. Days are added once they have ended (UTC), back to 2012. No API key required.

Inputs

Daydaydate
The day (UTC). Leave empty for yesterday.
Latitudelatitudenumber
Only strikes near this latitude (with longitude). Leave both empty for every strike that day.From 49.0 to 76.0.
Longitudelongitudenumber
Only strikes near this longitude (with latitude).From -19.0 to 55.0.
Within (km)radius_kmnumber
How far from the place to look, in km, up to 500. Defaults to 25.From 0.1 to 500.0.
Strikesstrike_typetext
Every strike, only those that hit the ground, or only those within or between clouds.One of: all (Every strike), ground (Cloud-to-ground), cloud (Within or between clouds). Default: all.
Number of strikeslimitnumber
How many to list, 1 to 1000. Defaults to 100; the count says how many matched.From 1 to 1000.

Outputs

countnumber
How many strikes matched; the list holds at most the limit.
datetext
The day, YYYY-MM-DD (UTC).
more_availabletrue/false
True when more strikes matched than the limit lets through.
nearest_kmnumber
Distance to the nearest matching strike, in km. Empty without a point.
strikeslist
The strikes, earliest first (at most the limit).
summarytext
One sentence saying what came back.
total_that_daynumber
How many strikes SMHI located that day in all.
Example output
{
  "count": 157,
  "date": "2026-08-10",
  "more_available": true,
  "nearest_km": 12.27,
  "strikes": [
    {
      "distance_km": 13.97,
      "kind": "cloud",
      "latitude": 61.9486,
      "longitude": 15.7561,
      "peak_current_ka": 11,
      "sensors": 3,
      "time": "2026-08-10T12:02:20.385Z"
    },
    {
      "distance_km": 27.69,
      "kind": "cloud",
      "latitude": 61.9625,
      "longitude": 15.4759,
      "peak_current_ka": 11,
      "sensors": 6,
      "time": "2026-08-10T12:02:20.385Z"
    },
    {
      "distance_km": 26.85,
      "kind": "cloud",
      "latitude": 61.9631,
      "longitude": 15.4921,
      "peak_current_ka": 10,
      "sensors": 3,
      "time": "2026-08-10T12:02:20.385Z"
    }
  ],
  "summary": "157 lightning strikes (every strike) on 2026-08-10 within 30 km of 62, 16; the nearest 12.27 km away. Showing the first 3.",
  "total_that_day": 2477
}

List observation parameters

List what SMHI's stations measure, with the ids the other observation steps take: for weather (temperature, wind, precipitation, snow depth and more), hydrology (water level, discharge, ice) or the ocean (sea level, waves, sea temperature). Names in English and Swedish, with units. No API key required.

Inputs

Datasourcetext
Which of SMHI's observations: weather stations, hydrology (rivers and lakes) or the ocean (sea level, waves, sea temperature).One of: weather, hydrology (Hydrology (rivers and lakes)), ocean. Default: weather.

Outputs

countnumber
How many parameters, by id came back.
parameterslist
The parameters, by id.
sourcetext
weather, hydrology or ocean.
summarytext
One sentence saying what came back.
Example output
{
  "count": 49,
  "parameters": [
    {
      "id": "1",
      "name": "Air temperature, hourly",
      "swedish_name": "Lufttemperatur, momentanv\u00e4rde, 1 g\u00e5ng/tim",
      "unit": "\u00b0C"
    },
    {
      "id": "2",
      "name": "Air temperature, daily mean",
      "swedish_name": "Lufttemperatur, medelv\u00e4rde 1 dygn, 1 g\u00e5ng/dygn, kl 00",
      "unit": "\u00b0C"
    },
    {
      "id": "3",
      "name": "Wind direction, hourly (10-minute mean)",
      "swedish_name": "Vindriktning, medelv\u00e4rde 10 min, 1 g\u00e5ng/tim",
      "unit": "\u00b0"
    }
  ],
  "source": "weather",
  "summary": "49 parameters in SMHI's weather observations."
}

List stations

List SMHI's stations that measure a parameter, by name, with their ids, positions, owners, since when they report and when their latest value is from. Only stations sending data now unless asked. No API key required.

Inputs

Datasourcetext
Which of SMHI's observations: weather stations, hydrology (rivers and lakes) or the ocean (sea level, waves, sea temperature).One of: weather, hydrology (Hydrology (rivers and lakes)), ocean. Default: weather.
ParameterparametertextRequired
What is measured, such as air temperature (1) or, for hydrology, discharge every 15 minutes (2). 'List observation parameters' lists the ids.
Reporting stations onlycurrent_onlytrue/false
Leave on for stations sending data now; turn off to include closed ones and those that have stopped.Default: true.

Outputs

countnumber
How many stations, by name came back.
parameterobject
The parameter asked about.
sourcetext
weather, hydrology or ocean.
stationslist
The stations, by name.
summarytext
One sentence saying what came back.
Example output
{
  "count": 233,
  "parameter": {
    "id": "1",
    "name": "Air temperature, hourly",
    "unit": "\u00b0C"
  },
  "source": "weather",
  "stations": [
    {
      "catchment": null,
      "height_m": 392.235,
      "id": "188790",
      "latest_data": "2026-10-23T17:00:00Z",
      "latitude": 68.3538,
      "longitude": 18.8164,
      "measuring_since": "1985-04-01",
      "name": "Abisko Aut",
      "owner": "Polarforskningssekretariatet",
      "quality_checked": true,
      "reporting": true
    },
    {
      "catchment": null,
      "height_m": 368.079,
      "id": "158990",
      "latest_data": "2026-10-23T17:00:00Z",
      "latitude": 65.9857,
      "longitude": 18.9195,
      "measuring_since": "1991-07-01",
      "name": "Abraur",
      "owner": "SMHI",
      "quality_checked": true,
      "reporting": true
    }
  ],
  "summary": "233 stations reporting air temperature, hourly (weather)."
}

List warning areas

List the 21 counties and 18 sea districts SMHI issues warnings for, with the ids the warning filters take, in English and Swedish. No API key required.

Inputs

None.

Outputs

areaslist
The areas, counties first.
countnumber
How many areas, counties first came back.
summarytext
One sentence saying what came back.
Example output
{
  "areas": [
    {
      "id": "10",
      "kind": "County",
      "name": "Blekinge County",
      "swedish_name": "Blekinge l\u00e4n"
    },
    {
      "id": "20",
      "kind": "County",
      "name": "Dalarna County",
      "swedish_name": "Dalarnas l\u00e4n"
    },
    {
      "id": "9",
      "kind": "County",
      "name": "Gotland County",
      "swedish_name": "Gotlands l\u00e4n"
    }
  ],
  "count": 39,
  "summary": "39 warning areas: 21 counties and 18 sea districts."
}

List weather warnings

List SMHI's weather warnings in force, highest level first: what they warn of (wind, rain, snow, high flows, water shortage and more), the level (message, yellow, orange or red), where, when and SMHI's advice. Filter by county or sea district, level, kind of event or a place. None in force is an empty list. No API key required.

Inputs

Areaareatext
Only warnings touching this county or sea district. Leave empty for all of Sweden.
Minimum levelmin_leveltext
Only warnings of this level or higher.One of: message (Message (every warning)), yellow (Yellow or higher), orange (Orange or higher), red (Red only). Default: message.
Eventeventtext
Only warnings of this kind. Leave empty for every kind.One of: THUNDER (Thunderstorm), WIND, WIND_MOUNTAINS (Wind in the alpine region), STRONG_COOLING (Strong cooling), SNOW, BLACK_ICE (Black ice), RAIN, HIGH_TEMPERATURES (High temperatures), WIND_SEA (Wind at sea), ICE_ACCRETION (Ice accretion), and 6 more.
Latitudelatitudenumber
Only warnings whose area contains this latitude (with longitude). Leave both empty for any place.From 49.0 to 76.0.
Longitudelongitudenumber
Only warnings whose area contains this longitude (with latitude).From -19.0 to 55.0.

Outputs

countnumber
How many warnings, highest level first came back.
summarytext
One sentence saying what came back.
warningslist
The warnings, highest level first.
Example output
{
  "count": 1,
  "summary": "1 SMHI warning in force (yellow or higher; area 1): Yellow wind.",
  "warnings": [
    {
      "affected_area_ids": [
        "4",
        "1"
      ],
      "affected_areas": [
        "S\u00f6dermanland County",
        "Stockholm County"
      ],
      "area_name": "Eastern parts of Stockholm County and S\u00f6rmland County",
      "category": "Meteorology",
      "description": "What happens?\nSunday morning the southerly wind will increase in connection with a large-scale low pressure area moving in over Sweden. We expect to reach wind speeds of 20 to 25 meters per second in the gusts. The wind will decrease somewhat during the evening, but the weather will remain windy. It is also expected to be windy on Monday.",
      "ends_at": "2026-10-25T17:00:00.223Z",
      "event": "Wind",
      "event_code": "WIND",
      "headline": "Wind",
      "id": "10696",
      "level": "Yellow",
      "level_code": "YELLOW",
      "published_at": "2026-10-23T09:11:36.941Z",
      "starts_at": "2026-10-25T07:00:00.535Z",
      "warning_id": "3378"
    }
  ]
}

On this page