Using this kind of requests you can get weather data in any location on the earth. The current weather data are updated online based on data from more than 40,000 weather stations. All weather data can be obtained in JSON, XML or HTML format. Current weather for 70,000 cities in the world is based on online data from weather stations.
moreYou can recieve weather forecast in any location on the earth. The flexible algorithm of weather calculation let us provide weather data not only for cities but for any geographic coordinates. You can get forecast data every 3 hours or daily. The 3 hours forecast is available for 5 days. Daily forecast is available for 14 days. All weather data can be obtained in JSON or XML format.
moreYou use our geocoding system to find cities by name, country, zip-code or geographic coordinates. You can search by part of city name. To make searching result more accurate you can put city name and country divided by comma.
moreOpenWeatherMap service provides lots of weather maps including Precipitations, Clouds, Pressure, Temperature, Wind and many others. You can connect them to mobile applications and web sites and to use them for checking weather in your city. You can connect weather maps as layers to the wide range of maps including Direct tiles, WMS, OpenLayers, Leaflet, Google maps, and Yandex maps.
moreUsing this kind of requests you can get weather data in any location on the earth. The current weather data are updated online based on data from more than 40,000 weather stations. All weather data can be obtained in JSON, XML or HTML format.
To get data in XML or HTML formats you need to use mode = xml or html. Example:
You can use different types of metric systems by units = metric or imperial
Example:
api.openweathermap.org/data/2.5/weather?q=London&mode=xml&units=metric
You can use lang parameter to get output in your language. We support the following languages that you can use with the corresponded lang values:
English - en, Russian - ru, Italian - it, Spanish - sp, Ukrainian - ua, German - de, Portuguese - pt, Romanian - ro, Polish - pl, Finnish - fi, Dutch - nl, French - fr, Bulgarian - bg, Swedish - se, Chinese Traditional - zh_tw, Chinese Simplified - zh_cn
Example:
http://api.openweathermap.org/data/2.5/forecast/daily?id=524901&lang=zh_cn
To use JavaScrip code you can transfer callback functionName to JSONP callback.
Example:
api.openweathermap.org/data/2.5/weather?q=London,uk&callback=test
You can recieve weather forecast in any location on the earth. The flexible algorithm of weather calculation let us provide weather data not only for cities but for any geographic coordinates. It is important for megapolices, for example, where weather is different on opposit city edges. You can get forecast data every 3 hours or daily. The 3 hours forecast is available for 5 days. Daily forecast is available for 14 days. All weather data can be obtained in JSON or XML format.
You can get weather forecast for 14 days. All weather data can be obtained in JSON or XML format.
api.openweathermap.org/data/2.5/find?q=London&units=metric&mode=xml
api.openweathermap.org/data/2.5/find?lat=57&lon=-2.15
To limit number of listed cities please setup cnt parameter api.openweathermap.org/data/2.5/find?lat=57&lon=-2.15&cnt=3
To setup accuracy level please use type parameter that have two values - accurate and like. In case of accurate value you will get results that exactly equivalent to your searching word. In case of like value the result is searching by substring. type ['accurate', 'like']
Example