API Reference
Get current weather data
Retrieve the current weather conditions for a specified location using latitude and longitude coordinates.
GET
/
weather
Authorizations
appid
string
queryrequiredQuery Parameters
lat
number
requiredLatitude of the desired location
lon
number
requiredLongitude of the desired location
mode
enum<string>
Response format.
Default is json
if you don't use the mode
parameter.
Available options:
html
, json
, xml
units
enum<string>
Units of measurement:
standard
: Kelvin for temperature, meter/sec for wind speed and wind gustmetric
: Celsius for temperature, meter/sec for wind speed and wind gustimperial
: Fahrenheit for temperature, miles/hour for wind speed and wind gust
Default is standard
if you don't use the units
parameter.
Available options:
standard
, metric
, imperial
lang
string
Output language for weather description (weather.description
) and city name (name
) fields in the API response.
Available options:
af
: Afrikaansal
: Albanianar
: Arabicaz
: Azerbaijanieu
: Basquebe
: Belarusianbg
: Bulgarianca
: Catalanzh_cn
: Chinese Simplifiedzh_tw
: Chinese Traditionalhr
: Croatiancs
: 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
: Slovenianes
: Spanishsv
: Swedishse
: Swedishth
: Thaitr
: Turkishuk
: Ukrainianvi
: Vietnamesezu
: Zulu
Default is English if you don't use the lang
parameter.
Response
200 - application/json
coord
object
weather
object[]
base
string
Internal parameter
main
object
visibility
integer
Visibility (meters)
wind
object
clouds
object
rain
object | null
snow
object | null
dt
integer
Time of data calculation, in Unix time (UTC)
sys
object
timezone
integer
Shift in seconds from UTC
id
integer
City identifier
name
string
City name
cod
integer
API response status code