From OpenWeatherMap
Jump to: navigation, search


Getting Data from JSON version 2.0

All data can be obtained in JSON format. The following interfaces for data obtaining have already developed and available for everybody:

  • Weather Stations with last data
  • Cities with the current weather data
  • History of measurement for each weather station

When using data from this web-site please comply the conditions of the CC-BY-SA license

Previous versions of API API/1.0/JSON API


This API group let you receive actual data from weather stations and currect weather in cities all over the world. You can choose different searching ways:

  • Choose a rectangle shaped area boarded by geographic coordiates. As a result you get list of weather stations existed within the chosen area.
  • Choose coordinates of a geo point and receive list of the nearest weather stations.
  • Choose a geo point and max distance to it. As a result you get all geo points that lay within the chosen max distance.

Find around point


Choose a geo point and max weather station quantity. As a result you get a list of weather stations that lay arount the geo point.

The same is for the list of current weather in cities


To find weather stations

Parametr Description
lat latitude
lon longitude
cnt Limit the number of points in the selection
callback functionName for JSONP calback. http://en.wikipedia.org/wiki/JSONP
cluster Use server clustering of points. Possible values ​​are [yes, no]
lang Language [ru, en, de, fr, es, it] if is posible



{"message":"type=cityModel:GFS-OWM, zoom=5","cod":"200","calctime":0.0141,"cnt":42,"list":[


More about data API/2.0/Weather_Data


{"message":"type=station, fetch=0.0495, allcnt=842","cod":"200","calctime":0.6788,"cnt":682,"list":[


More about data API/2.0/Station_Data

Bounding Box find

JSON query returns the data from cities or weather stations that have meteorological information and whose geographic coordinates lay within the rectangle BBOX



To find stations

Parametr Description
bbox Bounding Box
callback javascript functionName
cluster Use server clustering of points. Possible values ​​are [yes, no]
lang Language [ru, en ... ]


Like a center find More about data

Find City via name

Find city via its name. The inquiry retunes list of cities that match search substring. http://openweathermap.org/data/2.0/find/name?q=london


City list

All citys at system http://openweathermap.org/help/city_list.txt

Current weather at the city

You can get current weather in concrete chosen city. For that you need to know city ID. You can get data as JSON or HTML code.



City forecast

Weather forecast in the city for the next 5 days.




Stations current

Last measures made by weather station with ID = STATION_ID You can get data as JSON or HTML code.



Stations history

Set of requests let you get weather station measured data.

Parametr Description
type [tick, hour, day ]
start Data start (unix time)
end Data end (unix time)

history tick

List of several measurements made by weather station.

{"message":"millis 0","cod":"200","type":"tick","station_id":39419,"calctime":" find=0.0091 sort=0.0092 fetch=0.0103 total=0.0108","cnt":30,"list":[

    "calc":{"dewpoint":17.6} }


history hours

Measurements grouped by hours.

{"message":"millis 0","cod":"200","type":"hour","station_id":39419,"calctime":" find=0.0091 fetch=0.0109 total=0.011","cnt":27,"list":[


history days

Measurements grouped by days.


Please treat with understanding to the limited capabilities of our servers. If you send more than 2,000 requests per hour we can limit the speed of response to your requests or even refuse to service them. Anyway if you need a large volume of data please contact us. We do the best to find appropriate solution.

Personal tools