One Call API

Make just one API call and get all your essential weather data for a specific location with our new OpenWeather One Call API.

The One Call API provides the following weather data for any geographical coordinates:

  • Current weather

  • Minute forecast for 1 hour

  • Hourly forecast for 48 hours

  • Daily forecast for 7 days

  • Historical weather data for the previous 5 days

Current and forecast weather data

To get access to current weather, minute forecast for 1 hour, hourly forecast for 48 hours and daily forecast for 7 days, please use this section of the documentation.
If you are interested in historical weather data, please read the "Historical weather data" section.

How to make an API call

API call:
https://api.openweathermap.org/data/2.5/onecall?lat={lat}&lon={lon}&
exclude={part}&appid={YOUR API KEY}


lat, lon – geographical coordinates (latitude, longitude)
API key – unique API key (you can always find it on the account page, on the "API key" tab)
part (optional parameter) – by using this parameter you can exclude some parts of the weather data from the API response. It should be a comma-delimited list (without spaces).
Available values:

  • current
  • minutely
  • hourly
  • daily

Please note that the minute forecast is only available for certain regions.

Example of API call:
https://api.openweathermap.org/data/2.5/onecall?lat=33.441792&lon=-94.037689&
exclude=hourly,daily&appid={YOUR API KEY}

Example of API response

  {
  "lat": 33.44,
  "lon": -94.04,
  "timezone": "America/Chicago",
  "timezone_offset": -18000,
  "current": {
    "dt": 1588935779,
    "sunrise": 1588936856,
    "sunset": 1588986260,
    "temp": 16.75,
    "feels_like": 16.07,
    "pressure": 1009,
    "humidity": 93,
    "dew_point": 15.61,
    "uvi": 8.97,
    "clouds": 90,
    "visibility": 12874,
    "wind_speed": 3.6,
    "wind_deg": 280,
    "weather": [
      {
        "id": 501,
        "main": "Rain",
        "description": "moderate rain",
        "icon": "10n"
      },
      {
        "id": 200,
        "main": "Thunderstorm",
        "description": "thunderstorm with light rain",
        "icon": "11n"
      }
    ],
    "rain": {
      "1h": 2.79
    }
  },
   "minutely": [
    {
      "dt": 1588935780,
      "precipitation": 2.789
    },
    ...
  },
  "hourly": [
      {
      "dt": 1588935600,
      "temp": 16.75,
      "feels_like": 13.93,
      "pressure": 1009,
      "humidity": 93,
      "dew_point": 15.61,
      "clouds": 90,
      "wind_speed": 6.66,
      "wind_deg": 203,
      "weather": [
        {
          "id": 501,
          "main": "Rain",
          "description": "moderate rain",
          "icon": "10n"
        }
      ],
      "rain": {
        "1h": 2.92
      }
    },
    ...
  }
    "daily": [
        {
      "dt": 1588960800,
      "sunrise": 1588936856,
      "sunset": 1588986260,
      "temp": {
        "day": 22.49,
        "min": 10.96,
        "max": 22.49,
        "night": 10.96,
        "eve": 18.45,
        "morn": 18.14
      },
      "feels_like": {
        "day": 18.72,
        "night": 6.53,
        "eve": 16.34,
        "morn": 16.82
      },
      "pressure": 1014,
      "humidity": 60,
      "dew_point": 14.35,
      "wind_speed": 7.36,
      "wind_deg": 342,
      "weather": [
        {
          "id": 502,
          "main": "Rain",
          "description": "heavy intensity rain",
          "icon": "10d"
        }
      ],
      "clouds": 68,
      "rain": 15.38,
      "uvi": 8.97
    },
    ...
    }
                        

Fields in API response

  • lat Geographical coordinates of the location (latitude)
  • lon Geographical coordinates of the location (longitude)
  • timezone Timezone name for the requested location
  • timezone_offset Shift in seconds from UTC

  • current Current weather data API response
    • current.dt Current time, Unix, UTC
    • current.sunrise Sunrise time, Unix, UTC
    • current.sunset Sunset time, Unix, UTC
    • current.temp Temperature. Units - default: kelvin, metric: Celsius, imperial: Fahrenheit. How to change units used
    • current.feels_like Temperature. This temperature parameter accounts for the human perception of weather. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit.
    • current.pressure Atmospheric pressure on the sea level, hPa
    • current.humidity Humidity, %
    • current.dew_point AAtmospheric temperature (varying according to pressure and humidity) below which water droplets begin to condense and dew can form. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit.
    • current.clouds Cloudiness, %
    • current.uvi UV index
    • current.visibility Average visibility, metres
    • current.wind_speed Wind speed. Wind speed. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour. How to change units used
    • current.wind_gust (where available) Wind gust. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour. How to change units used
    • current.wind_deg Wind direction, degrees (meteorological)
    • current.rain
      • current.rain.1h (where available) Rain volume for last hour, mm
    • current.snow
      • current.snow.1h (where available) Snow volume for last hour, mm
    • current.weather

  • minutely Minute forecast weather data API response
    Available for the US (other countries are coming soon)
    • minutely.dt Time of the forecasted data, unix, UTC
    • minutely.precipitation Precipitation volume, mm

  • hourly Hourly forecast weather data API response
    • hourly.dt Time of the forecasted data, Unix, UTC
    • hourly.temp Temperature. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit. How to change units used
    • hourly.feels_like Temperature. This accounts for the human perception of weather. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit.
    • hourly.pressure Atmospheric pressure on the sea level, hPa
    • hourly.humidity Humidity, %
    • hourly.dew_point Atmospheric temperature (varying according to pressure and humidity) below which water droplets begin to condense and dew can form. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit.
    • hourly.clouds Cloudiness, %
    • hourly.visibility Average visibility, metres
    • hourly.wind_speed Wind speed. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour.How to change units used
    • hourly.wind_gust (where available) Wind gust. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour. How to change units used
    • chourly.wind_deg Wind direction, degrees (meteorological)
    • hourly.rain
      • hourly.rain.1h (where available) Rain volume for last hour, mm
    • hourly.snow
      • hourly.snow.1h (where available) Snow volume for last hour, mm
    • hourly.weather

  • daily Daily forecast weather data API response
    • daily.dt Time of the forecasted data, Unix, UTC
    • daily.sunrise Sunrise time, Unix, UTC
    • daily.sunset Sunset time, Unix, UTC
    • daily.temp Units – default: kelvin, metric: Celsius, imperial: Fahrenheit. How to change units used
      • daily.temp.morn Morning temperature.
      • daily.temp.day Day temperature.
      • daily.temp.eve Evening temperature.
      • daily.temp.night Night temperature.
      • daily.temp.min Min daily temperature.
      • daily.temp.max Max daily temperature.
    • daily.feels_like This accounts for the human perception of weather. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit. How to change units used
      • daily.feels_like.morn Morning temperature.
      • daily.feels_like.day Day temperature.
      • daily.feels_like.eve Evening temperature.
      • daily.feels_like.night Night temperature.
    • daily.pressure Atmospheric pressure on the sea level, hPa
    • daily.humidity Humidity, %
    • daily.dew_point Atmospheric temperature (varying according to pressure and humidity) below which water droplets begin to condense and dew can form. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit.
    • daily.wind_speed Wind speed. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour. How to change units used
    • daily.wind_gust (where available) Wind gust. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour. How to change units used
    • daily.wind_deg Wind direction, degrees (meteorological)
    • daily.clouds Cloudiness, %
    • daily.uvi Midday UV index
    • daily.visibility Average visibility, metres
    • daily.rain (where available) Precipitation volume, mm
    • daily.snow (where available) Snow volume, mm
    • daily.weather

Historical weather data

To learn about how get access to historical weather data for the previous 5 days, please use this section of the documentation.
If you are interested in current and forecast weather data, please read the "Current and forecast weather data" section.

How to make an API call

API call:
https://api.openweathermap.org/data/2.5/onecall/timemachine?lat={lat}&lon={lon}&dt={time}&appid={YOUR API KEY}

lat, lon geographical coordinates (latitude, longitude)
dt date from the previous five days (Unix time, UTC time zone), e.g. dt=1586468027
API key unique API key (you can always find it on the account page, on the "API key" tab)

Please note that in order to get historical data for the last five days, you need to make five API calls (one call for each day).

Example of API call:
http://api.openweathermap.org/data/2.5/onecall/timemachine?lat=60.99&lon=30.9&dt=1586468027&appid={YOUR API KEY}

Example of API response

  {
  "lat": 60.99,
  "lon": 30.9,
  "timezone": "Europe/Moscow",
  "timezone_offset": 10800"
  "current": {
    "dt": 1586468027,
    "sunrise": 1586487424,
    "sunset": 1586538297,
    "temp": 274.31,
    "feels_like": 269.79,
    "pressure": 1006,
    "humidity": 72,
    "dew_point": 270.21,
    "clouds": 0,
    "visibility": 10000,
    "wind_speed": 3,
    "wind_deg": 260,
    "weather": [
      {
        "id": 800,
        "main": "Clear",
        "description": "clear sky",
        "icon": "01n"
      }
    ]
  },
  "hourly": [
    {
      "dt": 1586390400,
      "temp": 278.41,
      "feels_like": 269.43,
      "pressure": 1006,
      "humidity": 65,
      "dew_point": 272.46,
      "clouds": 0,
      "wind_speed": 9.83,
      "wind_deg": 60,
      "wind_gust": 15.65,
      "weather": [
        {
          "id": 800,
          "main": "Clear",
          "description": "clear sky",
          "icon": "01n"
        }
      ]
    },    ...
    }
                        

Fields in API response

  • lat Geographical coordinates of the location (latitude)
  • lon Geographical coordinates of the location (longitude)
  • timezone Timezone name for the requested location
  • timezone_offset Shift in seconds from UTC

  • current Data point dt refers to the requested time, rather than the current time
    • current.dt Requested time, Unix, UTC
    • current.sunrise Sunrise time, Unix, UTC
    • current.sunset Sunset time, Unix, UTC
    • current.temp Temperature. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit. How to change units used
    • current.feels_like Temperature. This accounts for the human perception of weather. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit.
    • current.pressure Atmospheric pressure on the sea level, hPa
    • current.humidity Humidity, %
    • current.dew_point Atmospheric temperature (varying according to pressure and humidity) below which water droplets begin to condense and dew can form. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit.
    • current.clouds Cloudiness, %
    • current.uvi Midday UV index
    • current.visibility Average visibility, metres
    • current.wind_speed Wind speed. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour. How to change units used
    • current.wind_gust (where available) Wind gust. Wind speed. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour. How to change units used
    • current.wind_deg Wind direction, degrees (meteorological)
    • current.rain (where available) Precipitation volume, mm
    • current.snow (where available) Snow volume, mm
    • current.weather

  • hourly Data block contains hourly historical data starting at 00:00 on the requested day and continues until 23:59 on the same day (UTC time)
    • hourly.dt Time of historical data, Unix, UTC
    • hourly.temp Temperature. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit. How to change units used
    • hourly.feels_like Temperature. This accounts for the human perception of weather. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit.
    • hourly.pressure Atmospheric pressure on the sea level, hPa
    • hourly.humidity Humidity, %
    • hourly.dew_point Atmospheric temperature (varying according to pressure and humidity) below which water droplets begin to condense and dew can form. Units – default: kelvin, metric: Celsius, imperial: Fahrenheit.
    • hourly.clouds Cloudiness, %
    • hourly.visibility Average visibility, metres
    • hourly.wind_speed Wind speed. Wind speed. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour. How to change units used
    • hourly.wind_gust (where available) Wind gust. Units – default: metre/sec, metric: metre/sec, imperial: miles/hour. How to change units used
    • chourly.wind_deg Wind direction, degrees (meteorological)
    • hourly.rain (where available) Precipitation volume, mm
    • hourly.snow (where available) Snow volume, mm
    • hourly.weather

List of weather condition codes

List of weather condition codes with icons (range of thunderstorm, drizzle, rain, snow, clouds, atmosphere including extreme conditions like tornado, hurricane etc.)

Other features

Units of measurement

Standard, metric, and imperial units are available. List of all API parameters with available units

API call:
http://api.openweathermap.org/data/2.5/onecall?lat={lat}&lon={lon}&units={units}
Parameters:

units metric, imperial. If you do not use the units parameter, standard units will be used by default.

Temperature is available in Fahrenheit, Celsius and kelvin units.

  • For temperature in Fahrenheit, use units=imperial
  • For temperature in Celsius, use units=metric
  • Kelvin is used by default, so there is no need to use the units parameter in the API call if you want this
Examples of API calls:

Standard (default)
api.openweathermap.org/data/2.5/onecall?lat=30.489772&lon=-99.771335

Metric api.openweathermap.org/data/2.5/onecall?lat=30.489772&lon=-99.771335&units=metric

Imperial api.openweathermap.org/data/2.5/onecall?lat=30.489772&lon=-99.771335&units=imperial

Multilingual support

You can use lang parameter to get the output in your language.
The contents of the description field will be translated.

API call:
http://api.openweathermap.org/data/2.5/onecall?lat={lat}&lon={lon}&lang={lang}
Parameters:
lang – language code
Examples of API calls:
http://api.openweathermap.org/data/2.5/onecall?lat=30.489772&lon=-99.771335&lang=zh_cn

We support the following languages. To select one, you can use the corresponding language code:

# Language code Language
1 af Afrikaans
2 al Albanian
3 ar Arabic
4 az Azerbaijani
5 bg Bulgarian
6 ca Catalan
7 cz Czech
8 da Danish
9 de German
10 el Greek
11 en English
12 eu Basque
13 fa Persian (Farsi)
14 fi Finnish
15 fr French
16 gl Galician
17 he Hebrew
18 hi Hindi
19 hr Croatian
20 hu Hungarian
21 id Indonesian
22 it Italian
23 ja Japanese
24 kr Korean
25 la Latvian
26 lt Lithuanian
27 mk Macedonian
28 no Norwegian
29 nl Dutch
30 pl Polish
31 pt Portuguese
32 pt_br Portuguese (Brazil)
33 ro Romanian
34 ru Russian
35 sv, se Swedish
36 sk Slovak
37 sl Slovenian
38 sp, es Spanish
39 sr Serbian
40 th Thai
41 tr Turkish
42 ua, uk Ukrainian
43 vi Vietnamese
44 zh_cn Chinese Simplified
45 zh_tw Chinese Traditional
46 zu Zulu