{
"cod":"200",
"city":{
"id":2643743,
"name":"London",
"coord":{
"lon":-0.1277,
"lat":51.5073
},
"country":"GB"
},
"message":0.353472054,
"list":[
{
"dt":1594382400,
"sunrise":1594353335,
"sunset":1594412149,
"temp":{
"day":286.98,
"min":285.22,
"max":287.97,
"night":285.22,
"eve":287.97,
"morn":287.29
},
"feels_like":{
"day":282.61,
"night":283.19,
"eve":284.98,
"morn":282.68
},
"pressure":1016,
"humidity":84,
"weather":[
{
"id":500,
"main":"Rain",
"description":"light rain",
"icon":"10d"
}
],
"speed":6.78,
"deg":320,
"clouds":81,
"rain":1.96
},
.....
Climatic forecast for 30 days
Product concept
Climatic forecast 30 Days allows you to request daily weather data for the next 30 days. Data is available in JSON and XML formats.
Call weather forecast for 30 days
How to make an API call
API call
https://pro.openweathermap.org/data/2.5/forecast/climate?lat={lat}&lon={lon}&appid={API key}
Parameters | ||
---|---|---|
lat |
required | Latitude. If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use our Geocoding API |
lon |
required | Longitude. If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use our Geocoding API |
appid |
required | Your unique API key (you can always find it on your account page under the "API key" tab) |
cnt |
optional | A number of days, which will be returned in the API response (from 1 to 30 ).
Learn more
|
mode |
optional | Data format. Possible values are: json , xml . If the mode
parameter is empty the format is JSON by default. Learn more |
units |
optional | Units of measurement. standard , metric and imperial units are
available. If you do not use the units parameter, standard units will be
applied by default. Learn more |
lang |
optional | Language code. Learn more |
Please use Geocoder API if you need automatic convert city names and zip-codes to geo coordinates and the other way around.
Please note that built-in geocoder has been deprecated. Although it is still available for use, bug fixing and updates are no longer available for this functionality.
Example of API call
https://pro.openweathermap.org/data/2.5/forecast/climate?lat=35&lon=139&appid={API key}
Fields in API response
-
city
country
Country code (GB, JP etc.). Please note that built-in geocoder functionality has been deprecated. Learn more herepopulation
City populationtimezone
Shift in seconds from UTCcod
Internal parametermessage
Internal parameter-
list
list.dt
Time of data forecastedlist.sunrise
Sunrise time, Unix, UTClist.sunset
Sunset time, Unix, UTC-
list.temp
list.temp.day
Day temperature. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheitlist.temp.min
Min daily temperature. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheitlist.temp.max
Max daily temperature. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheitlist.temp.night
Night temperature. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheitlist.temp.eve
Evening temperature. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheitlist.temp.morn
Morning temperature. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit
-
list.feels_like
list.feels_like.day
Day temperature.This temperature parameter accounts for the human perception of weather. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheitlist.feels_like.night
Night temperature.This temperature parameter accounts for the human perception of weather. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheitlist.feels_like.eve
Evening temperature.This temperature parameter accounts for the human perception of weather. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheitlist.feels_like.morn
Morning temperature. This temperature parameter accounts for the human perception of weather. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit
list.pressure
Atmospheric pressure on the sea level, hPalist.humidity
Humidity, %-
list.weather
(more info Weather condition codes)list.weather.id
Weather condition idlist.weather.main
Group of weather parameters (Rain, Snow, Clouds etc.)list.weather.description
Weather condition within the group. Please find more here. You can get the output in your language. Learn morelist.weather.icon
Weather icon id
list.speed
Wind speed. Unit Default: meter/sec, Metric: meter/sec, Imperial: miles/hourlist.deg
Wind direction, degrees (meteorological)list.clouds
Cloudiness, %list.rain
Precipitation volume, mm. Please note that only mm as units of measurement are available for this parameterlist.snow
Snow volume, mm. Please note that only mm as units of measurement are available for this parameterlist.cnt
Number of lines returned by this API call
We provide a broad variety of products such as One Call API 3.0, Solar Irradiance & Energy Prediction service, Road Risk API, Air Pollution API and solutions for advanced weather parameters like solar irradiance data, UVI, dew point, government weather alerts, etc. Please review our product list page and find more info in the product documentation and pricing pages.
List of weather condition codes
List of weather condition codes with icons (range of thunderstorm, drizzle, rain, snow, clouds, atmosphere etc.)
Other features
Geocoding API
Requesting API calls by geographical coordinates is the most accurate way to specify any location. If you need to convert city names and zip-codes to geo coordinates and the other way around automatically, please use our Geocoding API.
Built-in geocoding
Please use Geocoder API if you need automatic convert city names and zip-codes to geo coordinates and the other way around.
Please note that API requests by city name, zip-codes and city id have been deprecated. Although they are still available for use, bug fixing and updates are no longer available for this functionality.
Built-in API request by city name
API call
https://pro.openweathermap.org/data/2.5/forecast/climate?q={city name},{country code}&appid={API key}
Parameters | ||
---|---|---|
q |
required | city name and country code divided by comma (please use ISO 3166 country codes) |
appid |
required | Your unique API key (you can always find it on your account page under the "API key" tab) |
cnt |
optional | A number of days, which will be returned in the API response (from 1 to
30 ). Learn more
|
mode |
optional | Data format. Possible values are: json , xml . If the mode
parameter is empty the format is JSON by default. Learn more |
units |
optional | Units of measurement. standard , metric and imperial units are
available. If you do not use the units parameter, standard units will be
applied by default. Learn more |
lang |
optional | Language code. Learn more |
Example of API call
https://pro.openweathermap.org/data/2.5/forecast/climate?q=London&appid={API key}
Built-in API request by city ID
List of city IDs can be downloaded here.
We recommend to call API by city ID to get unambiguous result for your city.
API call
https://pro.openweathermap.org/data/2.5/forecast/climate?id={city ID}&appid={API key}
Parameters | ||
---|---|---|
id |
required | city ID |
appid |
required | Your unique API key (you can always find it on your account page under the "API key" tab) |
cnt |
optional | A number of days, which will be returned in the API response (from 1 to
30 ). Learn more
|
mode |
optional | Data format. Possible values are: json , xml . If the mode
parameter is empty the format is JSON by default. Learn more |
units |
optional | Units of measurement. standard , metric and imperial units are
available. If you do not use the units parameter, standard units will be
applied by default. Learn more |
lang |
optional | Language code. Learn more |
Example of API call
https://pro.openweathermap.org/data/2.5/forecast/climate?id=2643743&appid={API key}
Built-in API request by ZIP code
Please note that, if the country code is not specified, then the search function will use
usa
by default.
API call
https://pro.openweathermap.org/data/2.5/forecast/climate?zip={zip code},{country code}&appid={API key}
Parameters | ||
---|---|---|
zip |
required | Zip code |
appid |
required | Your unique API key (you can always find it on your account page under the "API key" tab) |
cnt |
optional | A number of days, which will be returned in the API response (from 1 to
30 ). Learn more
|
mode |
optional | Data format. Possible values are: json , xml . If the mode
parameter is empty the format is JSON by default. Learn more |
units |
optional | Units of measurement. standard , metric and imperial units are
available. If you do not use the units parameter, standard units will be
applied by default. Learn more |
lang |
optional | Language code. Learn more |
Example of API call
https://pro.openweathermap.org/data/2.5/forecast/climate?zip=94040,us&appid={API key}
Format
Data format. JSON format is used by default. To get data in XML format use mode=xml
.
Parameters | ||
---|---|---|
mode |
optional | Data format. Possible values are: json , xml . If the mode
parameter is empty the format is JSON by default. |
Examples of API calls
JSON
api.openweathermap.org/data/2.5/forecast/climate?q=London&cnt=3
{
"city": {
"id": 2643743,
"name": "London",
"coord": {
"lon": -0.1257,
"lat": 51.5085
},
"country": "GB",
"population": 1000000,
"timezone": 3600
},
"code": "200",
"message": 6.2190697,
"cnt": 3,
"list": [
{
"dt": 1599735600,
"sunrise": 1599715685,
"sunset": 1599762420,
"temp": {
"day": 290.57,
"min": 285.58,
"max": 290.57,
"night": 285.58,
"eve": 288.97,
"morn": 290.57
},
"feels_like": {
"day": 289.31,
"night": 284.51,
"eve": 288.2,
"morn": 289.31
},
"pressure": 1023,
"humidity": 61,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04d"
}
],
"speed": 1.8,
"deg": 26,
"clouds": 65
},
{
"dt": 1599822000,
"sunrise": 1599802180,
"sunset": 1599848682,
"temp": {
"day": 289.88,
"min": 284.76,
"max": 289.88,
"night": 287.59,
"eve": 288.9,
"morn": 284.76
},
"feels_like": {
"day": 286.61,
"night": 284.53,
"eve": 285.68,
"morn": 283.43
},
"pressure": 1017,
"humidity": 66,
"weather": [
{
"id": 801,
"main": "Clouds",
"description": "few clouds",
"icon": "02d"
}
],
"speed": 4.87,
"deg": 243,
"clouds": 18
},
{
"dt": 1599908400,
"sunrise": 1599888675,
"sunset": 1599934943,
"temp": {
"day": 290.18,
"min": 287.89,
"max": 290.18,
"night": 289.03,
"eve": 289.95,
"morn": 287.89
},
"feels_like": {
"day": 287.21,
"night": 286,
"eve": 287.75,
"morn": 285.09
},
"pressure": 1020,
"humidity": 75,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04d"
}
],
"speed": 5.38,
"deg": 245,
"clouds": 59
}
]
}
XML
api.openweathermap.org/data/2.5/forecast/climate?q=London&mode=xml
<weatherdata>
<location>
<name>London</name>
<type />
<country>GB</country>
<timezone>3600</timezone>
<location altitude="0" latitude="51.5085" longitude="-0.1257" geobase="geonames" geobaseid="2643743" />
</location>
<credit />
<meta>
<lastupdate />
<calctime>0</calctime>
<nextupdate />
</meta>
<sun rise="2020-09-10T05:28:05" set="2020-09-10T18:27:00" />
<forecast>
<time day="2020-09-10">
<sun rise="2020-09-10T05:28:05" set="2020-09-10T18:27:00" />
<symbol number="803" name="broken clouds" var="04d" />
<precipitation />
<windDirection deg="26" code="NNE" name="North-northeast" />
<windSpeed mps="1.8" unit="m/s" name="Light breeze" />
<temperature day="290.57" min="285.58" max="290.57" night="285.58" eve="288.97" morn="290.57" unit="kelvin" />
<feels_like day="289.31" night="284.51" eve="288.2" morn="289.31" unit="kelvin" />
<pressure unit="hPa" value="1023" />
<humidity value="61" unit="%" />
<clouds value="broken clouds" all="65" unit="%" />
</time>
<time day="2020-09-11">
<sun rise="2020-09-11T05:29:40" set="2020-09-11T18:24:42" />
<symbol number="801" name="few clouds" var="02d" />
<precipitation />
<windDirection deg="243" code="WSW" name="West-southwest" />
<windSpeed mps="4.87" unit="m/s" name="Gentle Breeze" />
<temperature day="289.88" min="284.76" max="289.88" night="287.59" eve="288.9" morn="284.76" unit="kelvin" />
<feels_like day="286.61" night="284.53" eve="285.68" morn="283.43" unit="kelvin" />
<pressure unit="hPa" value="1017" />
<humidity value="66" unit="%" />
<clouds value="few clouds" all="18" unit="%" />
</time>
<time day="2020-09-12">
<sun rise="2020-09-12T05:31:15" set="2020-09-12T18:22:23" />
<symbol number="803" name="broken clouds" var="04d" />
<precipitation />
<windDirection deg="245" code="WSW" name="West-southwest" />
<windSpeed mps="5.38" unit="m/s" name="Gentle Breeze" />
<temperature day="290.18" min="287.89" max="290.18" night="289.03" eve="289.95" morn="287.89" unit="kelvin" />
<feels_like day="287.21" night="286" eve="287.75" morn="285.09" unit="kelvin" />
<pressure unit="hPa" value="1020" />
<humidity value="75" unit="%" />
<clouds value="broken clouds" all="59" unit="%" />
</time>
</forecast>
</weatherdata>
Limitation of result
To limit the number of returned days please use cnt
parameter.
Parameters | ||
---|---|---|
cnt |
A number of days, which will be returned in the API response |
Example of API call
http://api.openweathermap.org/data/2.5/forecast/climate?q=London&cnt=3
{
"city": {
"id": 2643743,
"name": "London",
"coord": {
"lon": -0.1257,
"lat": 51.5085
},
"country": "GB",
"population": 1000000,
"timezone": 3600
},
"code": "200",
"message": 5.3919103,
"cnt": 3,
"list": [
{
"dt": 1599735600,
"sunrise": 1599715685,
"sunset": 1599762420,
"temp": {
"day": 289.64,
"min": 285.58,
"max": 289.64,
"night": 285.58,
"eve": 288.97,
"morn": 289.64
},
"feels_like": {
"day": 288.12,
"night": 284.51,
"eve": 288.2,
"morn": 288.12
},
"pressure": 1023,
"humidity": 63,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04d"
}
],
"speed": 2.01,
"deg": 23,
"clouds": 72
},
{
"dt": 1599822000,
"sunrise": 1599802180,
"sunset": 1599848682,
"temp": {
"day": 289.88,
"min": 284.76,
"max": 289.88,
"night": 287.59,
"eve": 288.9,
"morn": 284.76
},
"feels_like": {
"day": 286.61,
"night": 284.53,
"eve": 285.68,
"morn": 283.43
},
"pressure": 1017,
"humidity": 66,
"weather": [
{
"id": 801,
"main": "Clouds",
"description": "few clouds",
"icon": "02d"
}
],
"speed": 4.87,
"deg": 243,
"clouds": 18
},
{
"dt": 1599908400,
"sunrise": 1599888675,
"sunset": 1599934943,
"temp": {
"day": 290.18,
"min": 287.89,
"max": 290.18,
"night": 289.03,
"eve": 289.95,
"morn": 287.89
},
"feels_like": {
"day": 287.21,
"night": 286,
"eve": 287.75,
"morn": 285.09
},
"pressure": 1020,
"humidity": 75,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04d"
}
],
"speed": 5.38,
"deg": 245,
"clouds": 59
}
]
}
Units of measurement
standard
, metric
, and imperial
units are available. List of all API parameters with available units.
Parameters | ||
---|---|---|
units |
optional | Units of measurement. standard , metric and imperial units are
available. If you do not use the units parameter, standard units will be
applied by default. |
Wind speed is available in miles/hour and meter/sec.
- For temperature in Fahrenheit and wind speed in miles/hour, use
units=imperial
- For temperature in Celsius and wind speed in meter/sec, use
units=metric
- Temperature in Kelvin and wind speed in meter/sec 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
api.openweathermap.org/data/2.5/forecast/climate?q=London
{
"city": {
"id": 2643743,
"name": "London",
"coord": {
"lon": -0.1257,
"lat": 51.5085
},
"country": "GB",
"population": 1000000,
"timezone": 3600
},
"code": "200",
"message": 5.3919103,
"cnt": 3,
"list": [
{
"dt": 1599735600,
"sunrise": 1599715685,
"sunset": 1599762420,
"temp": {
"day": 289.64,
"min": 285.58,
"max": 289.64,
"night": 285.58,
"eve": 288.97,
"morn": 289.64
},
"feels_like": {
"day": 288.12,
"night": 284.51,
"eve": 288.2,
"morn": 288.12
},
"pressure": 1023,
"humidity": 63,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04d"
}
],
"speed": 2.01,
"deg": 23,
"clouds": 72
},
{
"dt": 1599822000,
"sunrise": 1599802180,
"sunset": 1599848682,
"temp": {
"day": 289.88,
"min": 284.76,
"max": 289.88,
"night": 287.59,
"eve": 288.9,
"morn": 284.76
},
"feels_like": {
"day": 286.61,
"night": 284.53,
"eve": 285.68,
"morn": 283.43
},
"pressure": 1017,
"humidity": 66,
"weather": [
{
"id": 801,
"main": "Clouds",
"description": "few clouds",
"icon": "02d"
}
],
"speed": 4.87,
"deg": 243,
"clouds": 18
},
{
"dt": 1599908400,
"sunrise": 1599888675,
"sunset": 1599934943,
"temp": {
"day": 290.18,
"min": 287.89,
"max": 290.18,
"night": 289.03,
"eve": 289.95,
"morn": 287.89
},
"feels_like": {
"day": 287.21,
"night": 286,
"eve": 287.75,
"morn": 285.09
},
"pressure": 1020,
"humidity": 75,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04d"
}
],
"speed": 5.38,
"deg": 245,
"clouds": 59
}
]
}
Metric
api.openweathermap.org/data/2.5/forecast/climate?q=London&units=metric
{
"city": {
"id": 2643743,
"name": "London",
"coord": {
"lon": -0.1257,
"lat": 51.5085
},
"country": "GB",
"population": 1000000,
"timezone": 3600
},
"code": "200",
"message": 0.0750006,
"cnt": 3,
"list": [
{
"dt": 1599735600,
"sunrise": 1599715685,
"sunset": 1599762420,
"temp": {
"day": 16.49,
"min": 12.43,
"max": 16.49,
"night": 12.43,
"eve": 15.82,
"morn": 16.49
},
"feels_like": {
"day": 14.97,
"night": 11.36,
"eve": 15.05,
"morn": 14.97
},
"pressure": 1023,
"humidity": 63,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04d"
}
],
"speed": 2.01,
"deg": 23,
"clouds": 72
},
{
"dt": 1599822000,
"sunrise": 1599802180,
"sunset": 1599848682,
"temp": {
"day": 16.73,
"min": 11.61,
"max": 16.73,
"night": 14.44,
"eve": 15.75,
"morn": 11.61
},
"feels_like": {
"day": 13.46,
"night": 11.38,
"eve": 12.53,
"morn": 10.28
},
"pressure": 1017,
"humidity": 66,
"weather": [
{
"id": 801,
"main": "Clouds",
"description": "few clouds",
"icon": "02d"
}
],
"speed": 4.87,
"deg": 243,
"clouds": 18
},
{
"dt": 1599908400,
"sunrise": 1599888675,
"sunset": 1599934943,
"temp": {
"day": 17.03,
"min": 14.74,
"max": 17.03,
"night": 15.88,
"eve": 16.8,
"morn": 14.74
},
"feels_like": {
"day": 14.06,
"night": 12.85,
"eve": 14.6,
"morn": 11.94
},
"pressure": 1020,
"humidity": 75,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04d"
}
],
"speed": 5.38,
"deg": 245,
"clouds": 59
}
]
}
Imperial
api.openweathermap.org/data/2.5/forecast/climate?q=London&units=imperial
{
"city": {
"id": 2643743,
"name": "London",
"coord": {
"lon": -0.1257,
"lat": 51.5085
},
"country": "GB",
"population": 1000000,
"timezone": 3600
},
"code": "200",
"message": 0.0771345,
"cnt": 3,
"list": [
{
"dt": 1599735600,
"sunrise": 1599715685,
"sunset": 1599762420,
"temp": {
"day": 61.68,
"min": 54.37,
"max": 61.68,
"night": 54.37,
"eve": 60.48,
"morn": 61.68
},
"feels_like": {
"day": 58.95,
"night": 52.45,
"eve": 59.09,
"morn": 58.95
},
"pressure": 1023,
"humidity": 63,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04d"
}
],
"speed": 4.5,
"deg": 23,
"clouds": 72
},
{
"dt": 1599822000,
"sunrise": 1599802180,
"sunset": 1599848682,
"temp": {
"day": 62.11,
"min": 52.9,
"max": 62.11,
"night": 57.99,
"eve": 60.35,
"morn": 52.9
},
"feels_like": {
"day": 56.23,
"night": 52.48,
"eve": 54.55,
"morn": 50.5
},
"pressure": 1017,
"humidity": 66,
"weather": [
{
"id": 801,
"main": "Clouds",
"description": "few clouds",
"icon": "02d"
}
],
"speed": 10.89,
"deg": 243,
"clouds": 18
},
{
"dt": 1599908400,
"sunrise": 1599888675,
"sunset": 1599934943,
"temp": {
"day": 62.65,
"min": 58.53,
"max": 62.65,
"night": 60.58,
"eve": 62.24,
"morn": 58.53
},
"feels_like": {
"day": 57.31,
"night": 55.13,
"eve": 58.28,
"morn": 53.49
},
"pressure": 1020,
"humidity": 75,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04d"
}
],
"speed": 12.03,
"deg": 245,
"clouds": 59
}
]
}
Multilingual support
You can use lang
parameter to get the output in your language.
Translation is applied for the city name
and description
fields.
API call
http://api.openweathermap.org/data/2.5/forecast/climate?id=524901&lang={lang}
Parameters | ||
---|---|---|
lang |
optional | Language code |
Example of API call
http://api.openweathermap.org/data/2.5/forecast/climate?id=524901&lang=zh_cn
{
"city": {
"id": 2643743,
"name": "London",
"coord": {
"lon": -0.1257,
"lat": 51.5085
},
"country": "GB",
"population": 1000000,
"timezone": 3600
},
"code": "200",
"message": 5.8265173,
"cnt": 3,
"list": [
{
"dt": 1599735600,
"sunrise": 1599715685,
"sunset": 1599762420,
"temp": {
"day": 63.36,
"min": 54.37,
"max": 63.36,
"night": 54.37,
"eve": 60.48,
"morn": 63.36
},
"feels_like": {
"day": 61.09,
"night": 52.45,
"eve": 59.09,
"morn": 61.09
},
"pressure": 1023,
"humidity": 61,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "多云",
"icon": "04d"
}
],
"speed": 4.03,
"deg": 26,
"clouds": 65
},
{
"dt": 1599822000,
"sunrise": 1599802180,
"sunset": 1599848682,
"temp": {
"day": 62.11,
"min": 52.9,
"max": 62.11,
"night": 57.99,
"eve": 60.35,
"morn": 52.9
},
"feels_like": {
"day": 56.23,
"night": 52.48,
"eve": 54.55,
"morn": 50.5
},
"pressure": 1017,
"humidity": 66,
"weather": [
{
"id": 801,
"main": "Clouds",
"description": "晴,少云",
"icon": "02d"
}
],
"speed": 10.89,
"deg": 243,
"clouds": 18
},
{
"dt": 1599908400,
"sunrise": 1599888675,
"sunset": 1599934943,
"temp": {
"day": 62.65,
"min": 58.53,
"max": 62.65,
"night": 60.58,
"eve": 62.24,
"morn": 58.53
},
"feels_like": {
"day": 57.31,
"night": 55.13,
"eve": 58.28,
"morn": 53.49
},
"pressure": 1020,
"humidity": 75,
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "多云",
"icon": "04d"
}
],
"speed": 12.03,
"deg": 245,
"clouds": 59
}
]
}
We support the following languages that you can use with the corresponded lang values:
sq
Albanianaf
Afrikaansar
Arabicaz
Azerbaijanieu
Basquebe
Belarusianbg
Bulgarianca
Catalanzh_cn
Chinese Simplifiedzh_tw
Chinese Traditionalhr
Croatiancz
Czechda
Danishnl
Dutchen
Englishfi
Finnishfr
Frenchgl
Galiciande
Germanel
Greekhe
Hebrewhi
Hindihu
Hungarianis
Icelandicid
Indonesianit
Italianja
Japanesekr
Koreanku
Kurmanji (Kurdish)la
Latvianlt
Lithuanianmk
Macedonianno
Norwegianfa
Persian (Farsi)pl
Polishpt
Portuguesept_br
Português Brasilro
Romanianru
Russiansr
Serbiansk
Slovaksl
Sloveniansp, es
Spanishsv, se
Swedishth
Thaitr
Turkishua, uk
Ukrainianvi
Vietnamesezu
Zulu
Call back function for JavaScript code
To use JavaScript code you can transfer callback
functionName to JSONP callback.
Example of API call
api.openweathermap.org/data/2.5/forecast/climate?q=London,uk&callback=test
test(
{
"coord":{
"lon":-0.13,
"lat":51.51
},
"weather":[
{
"id":300,
"main":"Drizzle",
"description":"light intensity drizzle",
"icon":"09d"
}
],
"base":"stations",
"main":{
"temp":280.32,
"pressure":1012,
"humidity":81,
"temp_min":279.15,
"temp_max":281.15
},
"visibility":10000,
"wind":{
"speed":4.1,
"deg":80
},
"clouds":{
"all":90
},
"dt":1485789600,
"sys":{
"type":1,
"id":5091,
"message":0.0103,
"country":"GB",
"sunrise":1485762037,
"sunset":1485794875
},
"id":2643743,
"name":"London",
"cod":200
}
)