Open Weather Map

FREE
By community
Updated 7 months ago
Weather
9.9/10
Popularity Score
155ms
Latency
91%
Success Rate

Open Weather Map API Documentation

Get weather and weather forecasts for multiple cities.

View API Details
GETCurrent Weather Data
GETDaily Forecast Weather Data
GETForecast Weather Data
GETSearch Weather Data
GETCurrent Weather Data

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.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
qSTRING
REQUIREDuse this parameter when searching for a city. Do not use with other parameters
Optional Parameters
latNUMBER
OPTIONALMust be used with lon. Get current weather data when you know the latitude of the city.
lonNUMBER
OPTIONALMust be used with lat. Get current weather data when you know the longitude of the city.
callbackSTRING
OPTIONALTo use JavaScrip code you can transfer callback functionName to JSONP callback.
idNUMBER
OPTIONALGet current weather data when you know the city ID. Not to be used with lon, lat, or q
langSTRING
OPTIONALYou 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, Turkish - tr
unitsSTRING
OPTIONALYou can use different types of metric systems by units = metric or imperial
modeSTRING
OPTIONALIf left blank will default to JSON output. Ability to retrieve data in XML or HTML.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication