API/1.0/JSON API

Getting Data from JSON 	version 1.0

New version API API/2.0/JSON API

All data can be obtained in JSON format. The interfaces for data obtaining have already developed.


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

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

List of cities /weather stations in a rectangle limited by geographic coordinates
JSON query returns the data from cities that have meteorological information and whose geographic coordinates lay inside the rectangle with upper left corner coordinates lat1 and lng1 and the lower-right corner coordinates lat2 and lng2.

In response we get a list of cities with the following parameters
 Example of call 

 Example of result   {"message":"type=city","cod":"200","calctime":0.432,"cnt":59, "list":[ {"id":"524901","dt":"1337770800","lat":"55.75","lng":"37.62","name":"Moscow","temp":"289.48","wind_ms":"0","wind_deg":"-5","pressure":"1009", "rang":"10381222","prcp":"0","prsp_type":"4","cloud":"61","humidity":"63.30","temp_min":"288","temp_max":"291","type":"0","datatype":"city"}, {"id":"7117880","dt":"1337770800","lat":"55.76","lng":"38.10","name":"Zarya","temp":"289.80","wind_ms":"0","wind_deg":"-5","pressure":"1010", "rang":"27000","prcp":"0","prsp_type":"4","cloud":"58","humidity":"63.00","temp_min":"289","temp_max":"291","type":"0","datatype":"city"}, {"id":"502018","dt":"1337770800","lat":"55.76","lng":"37.86","name":"Reutov","temp":"289.82","wind_ms":"0","wind_deg":"-5","pressure":"1010", "rang":"78370","prcp":"0","prsp_type":"4","cloud":"58","humidity":"63.00","temp_min":"289","temp_max":"291","type":"0","datatype":"city"}, ...

The list of stations in the rectangle
JSON query returns all the weather stations whose geographic coordinates lay inside the rectangle with upper left corner coordinates lat1 and lng1 and the lower right corner coordinates lat2 and lng2. This list will get only the weather stations that transmit data no earlier than 3:00 p.m.

The parameters and return values ​​are similar except of the parameter type that value must be = station

 Example of call 

In response we get a following list
 Example of call 

 Example of result 

In response we get:
 Example of call 

 Example of result 

{"city_id":"524901","ref_id":0,"lat":"55.75","lng":"37.62","name":"Moscow","date":"2012-05-27 06:00:00","unixdate":"1338094800", "temp":12.49,"temp_min":12,"temp_max":13,"pressure":"1005","humidity":"43.40","precipitation":"0","wind":"0", "clouds":"39","img":"http:\/\/openweathermap.org\/images\/icons60\/03d.png"}

In response we get:
 Example of call 

 Example of result 

{"station_id":"37754","ref_id":0,"lat":"55.98","lng":false,"name":false,"date":"2012-05-27 06:32:08","unixdate":"1338096728", "temp":16.11,"pressure":"1014","humidity":"42.00","precipitation":null,"wind":"5.65", "img":"http:\/\/openweathermap.org\/images\/icons60\/01d.png"}

API/JSON_API

API/JSON_API