Skip to main content

Changelog

A history of the API told like a story β€” because weather has always been dramatic.


🌩️ v3.0 β€” "The Big Migration" β€” June 2024​

The one where everything changed, and nobody's data/2.5 calls were safe anymore.

After months of warnings, migration guides, and polite emails that many developers heroically ignored until the last moment, One Call API 2.5 was officially retired in June 2024. It had a good run. It served millions of requests. It will not be missed by the engineers who finally got to delete the legacy code.

Its replacement, One Call API 3.0, was not exactly new β€” it had been available since 2022 β€” but this was the moment it became the only game in town. The good news: 3.0 works in almost exactly the same way as 2.5. The other news: it requires a credit card on file, even for free usage.

What's new in One Call API 3.0​

  • Minute-by-minute forecast for the next hour β€” because sometimes you need to know exactly which 7 minutes of your lunch break it will rain.
  • 8-day daily forecast β€” up from 7 days in 2.5.
  • 47+ years of historical archive β€” weather data going all the way back to January 1, 1979, accessible both by specific timestamp and as daily aggregations.
  • 4-day forecast for any historical timestamp β€” query what the forecast was for any past date. Great for auditing, research, and settling arguments.
  • 1.5-year long-term daily forecast β€” plan your outdoor events with dangerous levels of optimism.
  • Weather Overview β€” an AI-generated, human-readable summary of today's and tomorrow's weather. Instead of parsing JSON and writing "feels like XΒ°C with Y% humidity" yourself, let the API do the narrating.
  • AI Weather Assistant β€” ask natural language questions and get conversational weather answers. The assistant remembers the location you asked about last, which is more than can be said for some junior developers.

Migration notes​

Old endpoint (2.5)New endpoint (3.0)
api.openweathermap.org/data/2.5/onecallapi.openweathermap.org/data/3.0/onecall
api.openweathermap.org/data/2.5/onecall/timemachineapi.openweathermap.org/data/3.0/onecall/timemachine

Response structure is largely identical. Update your version number, add a credit card, carry on.


β˜€οΈ Solar Irradiance API β€” "The Sun Finally Gets Its Own Endpoint"​

Renewable energy developers rejoiced. For the first time, OpenWeatherMap offered a dedicated API for solar irradiance data β€” not just temperature and clouds, but actual solar radiation values that matter to engineers building energy systems.

What it gives you​

  • GHI (Global Horizontal Irradiance) β€” total solar radiation on a flat surface.
  • DNI (Direct Normal Irradiance) β€” radiation coming straight from the sun.
  • DHI (Diffuse Horizontal Irradiance) β€” radiation scattered by the atmosphere.
  • Both clear-sky and cloudy-sky models β€” so you know the theoretical maximum and the depressing reality.
  • Current data + 15-day forecast, plus a 47+ year historical archive going back to January 1, 1979.
  • Granularity options of 1-hour and 15-minute intervals.

Base endpoint:

GET https://api.openweathermap.org/energy/2.0/solar/interval_data
?lat={lat}&lon={lon}&date={date}&interval=1h&appid={API_KEY}

πŸ”‹ Solar Panel Energy Prediction API β€” "Now It's Personal"​

Taking solar data one step further, this API lets you input the technical specifications of actual solar panels and get back predicted power output β€” not just irradiance.

  • Create unlimited virtual panels for any location with custom specs.
  • Get current + 15-day forecast of panel power output.
  • 47+ years of historical data to backtest system performance.
  • Perfect for grid management, energy trading decisions, and convincing your landlord to put panels on the roof.

πŸš— Road Risk API β€” "Weather for People Who Drive Through It"​

For logistics, navigation, and fleet management use cases, the Road Risk API treats a route not as a single point but as a sequence of coordinates with timestamps β€” and returns weather conditions at each one.

What each point returns​

  • Air temperature, wind speed, wind direction
  • Precipitation intensity
  • Dew point
  • Road surface temperature (US and EU territories)
  • Black ice road state (US and EU territories) β€” arguably the most useful boolean in the entire API
  • Active national weather alerts with hazard level

Coverage​

  • Forecast: 5 days ahead, minute-level granularity for the first 2 hours, hourly for the rest.
  • Historical: 1 year back.

Use it for: delivery routing, trucking operations, smart navigation apps, and any situation where "it looked fine on the map" has ever caused a problem.


πŸ—ΊοΈ Weather Maps 2.0 β€” "15 Layers of Atmosphere"​

The maps API grew up. Version 2.0 added 1-hour time steps for historical, current, and forecast map tiles, with 15 weather layers available:

LayerDescription
precipitation_newPrecipitation intensity
wind_newWind speed
temp_newAir temperature
clouds_newCloud coverage
pressure_newAtmospheric pressure

Plus 10 more layers covering snow, humidity, and atmospheric conditions. All tiles follow the standard {z}/{x}/{y} format so they slot neatly into any map library.


🌫️ Air Pollution API β€” "What You're Actually Breathing"​

Added comprehensive air quality data including:

  • AQI (Air Quality Index) on the European scale (1–5)
  • Particulate matter: PM2.5 and PM10
  • Gases: CO, NO, NOβ‚‚, O₃, SOβ‚‚, NH₃
  • Aerosol optical depth
  • Available as current, forecast, and historical data

Base endpoint:

GET http://api.openweathermap.org/data/2.5/air_pollution
?lat={lat}&lon={lon}&appid={API_KEY}

πŸ“ Geocoding API β€” "Goodbye, City IDs"​

The old approach of passing ?q=London directly to weather endpoints was never reliable β€” there are a lot of Londons. The dedicated Geocoding API solves this cleanly.

  • Forward geocoding: city name or ZIP code β†’ lat/lon
  • Reverse geocoding: lat/lon β†’ location name
  • Returns up to 5 matches with country and state disambiguation
  • Supports ZIP/post codes with country code: zip=10001,US
GET http://api.openweathermap.org/geo/1.0/direct
?q=Munich,DE&limit=1&appid={API_KEY}

Recommendation: always resolve location to coordinates first, then pass lat/lon to weather endpoints. It is more accurate, more explicit, and will not accidentally return weather data for London, Ontario when you wanted London, UK.


πŸ“¦ Authentication β€” Then & Now​

OpenWeatherMap has used a consistent authentication model throughout: a single appid query parameter appended to every request.

GET https://api.openweathermap.org/data/3.0/onecall
?lat=48.8566&lon=2.3522&appid=YOUR_API_KEY

There is no OAuth, no token exchange, no Bearer header. Just your key in the URL. Simple, predictable, occasionally accidentally committed to public GitHub repositories.

Keys activate within 2 hours of account creation. A 401 error immediately after signup is normal β€” wait, then retry.


πŸ—“οΈ Deprecation Timeline​

Version / FeatureStatusDate
One Call API 2.5❌ RetiredJune 2024
data/2.5/weather (Current Weather)βœ… Still activeβ€”
data/2.5/forecast (5-day / 3-hour)βœ… Still activeβ€”
One Call API 3.0βœ… CurrentSince 2022
Geocoding via city name in weather endpoints⚠️ LegacyUse Geocoding API instead

πŸ“‹ Current API Surface (Quick Reference)​

APIEndpoint PrefixNotes
One Call 3.0data/3.0/onecallAll-in-one weather for a location
Current Weatherdata/2.5/weatherStill on v2.5, still working
5-day Forecastdata/2.5/forecast3-hour intervals
Air Pollutiondata/2.5/air_pollutionAQI + pollutant breakdown
Geocodinggeo/1.0/directName β†’ coordinates
Solar Irradianceenergy/2.0/solarGHI, DNI, DHI
Road Riskdata/2.5/roadriskRoute-based weather + alerts
Weather Mapsmaps/2.0Tile-based, 15 layers

Last updated: May 2026. For the official source of truth, see openweathermap.org/api.