Accumulated weather data

Access historical accumulated weather data for any location on Earth including over 200,000 cities! Data is available in JSON format.

Call accumulated weather data

This API service is included in the Historical subscriptions by default with the appropriate time limits. Please contact us if you would like to use this API separately.

Accumulated temperature

Description:
Call accumulated temperature data by city ID, city name and geo coordinates.
API call:

http://history.openweathermap.org/data/2.5/history/accumulated_temperature?id={city ID}&start={start}&end={end}&threshold={threshold}

http://history.openweathermap.org/data/2.5/history/accumulated_temperature?q={city name}&start={start}&end={end}&threshold={threshold}

http://history.openweathermap.org/data/2.5/history/accumulated_temperature?lat={lat}&lon={lon}&start={start}&end={end}&threshold={threshold}

Parameters:

ID city ID

q city name and country code divided by comma, use ISO 3166 country codes

lat, lon coordinates of the location of your interest

start start date (unix time, UTC time zone), e.g. start=1483218000

end end date (unix time, UTC time zone), e.g. end=1504213200

threshold all values smaller than indicated value are not taken into account

Exmaples of API calls:

http://history.openweathermap.org/data/2.5/history/accumulated_temperature?id=2885679&start=1505336400&end=1505941200&threshold=284

Example of API response:
{
"date": "2017-9-13",
"temp": 288.93,
"count": 1
},
Parameters:
  • date date
  • temp temperature accumulated indicator
  • count number of data measurements

The temperature is provided only in Kelvins.

Accumulated precipitation

Description:
Call accumulated precipitation data by city ID, city name and geo coordinates.
API call:

http://history.openweathermap.org/data/2.5/history/accumulated_precipitation?id={city ID}&start={start}&end={end}

http://history.openweathermap.org/data/2.5/history/accumulated_precipitation?q={city name}&start={start}&end={end}

http://history.openweathermap.org/data/2.5/history/accumulated_precipitation?lat={lat}&lon={lon}&start={start}&end={end}

Parameters:

ID city ID

q city name and country code divided by comma, use ISO 3166 country codes

lat, lon coordinates of the location of your interest

start start date (unix time, UTC time zone), e.g. start=1483218000

end end date (unix time, UTC time zone), e.g. end=1504213200

Exmaples of API calls:

http://history.openweathermap.org/data/2.5/history/accumulated_precipitation?id=2885679&start=1505336400&end=1505941200

Example of API response:
{
"date": "2017-5-2",
"rain": 155.02,
"count": 367
}
Parameters:
  • date date
  • rain precipitation accumulation indicator
  • count number of data measurements

The threshold parameter is not used. The whole ammount of precipitation data is provided for specified period. Precipitation data is provided in mm.