Weather

Call current weather data for one location

get
weather

Access current weather data for any location on Earth including over 200,000 cities! Current weather is frequently updated based on global models and data from more than 40,000 weather stations.

Authorizations
appidstringRequired

API key to authorize requests.

Query parameters
qstringOptional

City name. Example: London. You can call by city name, or by city name and country code. The API responds with a list of results that match a searching word. For the query value, type the city name and optionally the country code divided by a comma; use ISO 3166 country codes.

idstringOptional

City ID. Example: 2172797. You can call by city ID. The API responds with the exact result. The List of city IDs can be downloaded here. You can include multiple cities in this parameter — just separate them by commas. The limit of locations is 20. Note: A single ID counts as a one API call. So, if you have 3 city IDs, it’s treated as 3 API calls.

latstringOptional

Latitude. Example: 35. The latitude coordinate of the location of your interest. Must use with lon.

lonstringOptional

Longitude. Example: 139. Longitude coordinate of the location of your interest. Must use with lat.

zipstringOptional

Zip code. Search by zip code. Example: 95050,us. Please note that if the country is not specified, the search uses USA as a default.

unitsstring · enumOptional

Units. Example: imperial. Possible values: standard, metric, and imperial. When you do not use the units parameter, the format is standard by default.

Default: imperialPossible values:
langstring · enumOptional

Language. Example: en. You can use lang parameter to get the output in your language. We support the following languages that you can use with the corresponded lang values: Arabic - ar, Bulgarian - bg, Catalan - ca, Czech - cz, German - de, Greek - el, English - en, Persian (Farsi) - fa, Finnish - fi, French - fr, Galician - gl, Croatian - hr, Hungarian - hu, Italian - it, Japanese - ja, Korean - kr, Latvian - la, Lithuanian - lt, Macedonian - mk, Dutch - nl, Polish - pl, Portuguese - pt, Romanian - ro, Russian - ru, Swedish - se, Slovak - sk, Slovenian - sl, Spanish - es, Turkish - tr, Ukrainian - ua, Vietnamese - vi, Chinese Simplified - zh_cn, Chinese Traditional - zh_tw.

Default: enPossible values:
modestring · enumOptional

Mode. Example: html. Determines the format of the response. Possible values are xml and html. If the mode parameter is empty, the format is json by default.

Default: jsonPossible values:
Responses
chevron-right
200

Successful response

application/json
basestringOptional

Internal parameter

Example: cmc stations
visibilityintegerOptional

Visibility, meter

Example: 16093
dtinteger · int32Optional

Time of data calculation, unix, UTC

Example: 1435658272
idinteger · int32Optional

City ID

Example: 2172797
namestringOptionalExample: Cairns
codinteger · int32Optional

Internal parameter

Example: 200
get
weather