Current Weather
Returns current weather data for the specified latitude and longitude, with 1-kilometer resolution, global coverage, and minute-level updates.
The response includes weather condition, temperature, feels-like temperature, relative humidity, wind direction and speed, wind gust, precipitation amount, mean sea-level pressure, visibility, dew point, cloud cover, UV index, and more.
Endpoint#
GET /weather/v1/current/{latitude}/{longitude}Parameters#
Path parameters
-
latitude requirednumberLatitude of the requested location in decimal degrees
-
longitude requirednumberLongitude of the requested location in decimal degrees
Query parameters
-
localTimeboolean
Whether to return local time for the requested location
Possible values:
falseUTC time (default),truelocation's local time -
langstringLanguage setting. See Language for behavior, configuration, and data availability
Request example#
curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your-api-host/weather/v1/current/39.92/116.41'
Replace your_token and your_api_host with your JWT Authentication and API Host
Response#
{
"metadata": {
"tag": "03ec2ded05fa80a43df2664dd9e4a8f48f7cc4f97c6a81dfd736ae17098aba14",
"attributions": [
"https://developer.qweather.com/attribution.html"
]
},
"condition": {
"text": "Few Clouds",
"code": "102"
},
"temperature": {
"value": 31.71,
"unit": "°C"
},
"feelsLike": {
"value": 33.64,
"unit": "°C"
},
"humidity": 0.69,
"wind": {
"direction": {
"degree": 226,
"compass": "sw"
},
"speed": {
"value": 4.74,
"unit": "m/s"
},
"scale": 3
},
"windGust": {
"value": 7.07,
"unit": "m/s"
},
"precipitation": {
"amount": {
"value": 0,
"unit": "mm"
},
"intensity": {
"value": 0,
"unit": "mm/h"
},
"type": "none"
},
"pressure": {
"value": 1001.5,
"unit": "hPa"
},
"visibility": {
"value": 29020,
"unit": "m"
},
"dewPoint": {
"value": 25.36,
"unit": "°C"
},
"cloudCover": 0.05,
"uvIndex": 0
}-
metadataobjectMetadata for this response
-
tagstringUnique data identifier
-
attributionsarrayData attribution or statements that must be displayed with the response data
-
-
conditionobject
-
textstringLocalized weather-condition description
-
codestringWeather condition code
-
-
temperatureobjectTemperature data
-
valuenumberValue
-
unitstring
-
-
feelsLikeobjectFeels like temperature
-
valuenumberValue
-
unitstring
-
-
humiditynumberRelative humidity. Value range:
[0, 1] -
windobjectWind object
-
directionobject
-
degreenumberWind direction in degrees, value range:
[0, 365] -
compassstring
Wind direction compass code
Possibe values:
n,nne,ne,ene,e,ese,se,sse,s,ssw,sw,wsw,w,wnw,nw,nnw,none,vrb
-
-
speedobjectWind speed
-
valuenumberValue
-
unitstring
-
-
scalenumber
-
-
windGustobjectWind gust speed
-
valuenumberValue
-
unitstring
-
-
precipitationobjectPrecipitation data
-
amountobjectAccumulated precipitation over one hour
-
valuenumberValue
-
unitstring
-
-
intensityobjectPrecipitation intensity
-
valuenumberValue
-
unitstring
-
-
typestring
Precipitation type
Possible Values:
rain,snow,ice,mixed,none,unknown
-
-
pressureobjectSea-level pressure
-
valuenumberValue
-
unitstring
-
-
visibilityobjectVisibility
-
valuenumberValue
-
unitstring
-
-
dewPointobjectDew point temperature
-
valuenumberValue
-
unitstring
-
-
cloudCovernumberCloud cover. Value range:
[0, 1] -
uvIndexnumberUV index. Value range:
[0, 15]