Hourly Forecast
Returns an hourly weather forecast for the specified latitude and longitude for up to 240 hours, with 1-kilometer resolution and global coverage.
The response includes weather condition, temperature, feels-like temperature, relative humidity, wind direction and speed, wind gust, precipitation amount and probability, mean sea-level pressure, visibility, dew point, cloud cover, UV index, and more.
Endpoint#
GET /weather/v1/hourly/{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
-
hoursintegerNumber of forecast hours. Value range:
[1, 240]. Default:24 -
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/hourly/39.92/116.41'
Replace your_token and your_api_host with your JWT Authentication and API Host
Response#
{
"metadata": {
"tag": "dabb37d79f0ba4498d5b92c873d33c862921eb1cb688181b84b3948306ea66bc",
"attributions": [
"https://developer.qweather.com/attribution.html"
]
},
"hours": [
{
"forecastTime": "2024-05-31T03:00Z",
"condition": {
"text": "Overcast",
"code": "104"
},
"temperature": {
"value": 31.12,
"unit": "°C"
},
"feelsLike": {
"value": 34.31,
"unit": "°C"
},
"humidity": 0.76,
"wind": {
"direction": {
"degree": 215,
"compass": "sw"
},
"speed": {
"value": 3.42,
"unit": "m/s"
},
"scale": 3
},
"windGust": {
"value": 8.16,
"unit": "m/s"
},
"precipitation": {
"amount": {
"value": 0.09,
"unit": "mm"
},
"intensity": {
"value": 0.09,
"unit": "mm/h"
},
"probability": 0.31,
"type": "rain"
},
"pressure": {
"value": 1001.5,
"unit": "hPa"
},
"visibility": {
"value": 14780,
"unit": "m"
},
"dewPoint": {
"value": 26.44,
"unit": "°C"
},
"cloudCover": 0.92,
"uvIndex": 6
},
{
"forecastTime": "2024-05-31T04:00Z",
"condition": {
"text": "Cloudy",
"code": "101"
},
"temperature": {
"value": 31.01,
"unit": "°C"
},
"feelsLike": {
"value": 34.34,
"unit": "°C"
},
"humidity": 0.77,
"wind": {
"direction": {
"degree": 217,
"compass": "sw"
},
"speed": {
"value": 3.28,
"unit": "m/s"
},
"scale": 2
},
"windGust": {
"value": 8.04,
"unit": "m/s"
},
"precipitation": {
"amount": {
"value": 0.21,
"unit": "mm"
},
"intensity": {
"value": 0.21,
"unit": "mm/h"
},
"probability": 0.3,
"type": "rain"
},
"pressure": {
"value": 1000.8,
"unit": "hPa"
},
"visibility": {
"value": 14630,
"unit": "m"
},
"dewPoint": {
"value": 26.58,
"unit": "°C"
},
"cloudCover": 0.61,
"uvIndex": 7
}
]
}-
metadataobjectMetadata for this response
-
tagstringUnique data identifier
-
attributionsarrayData attribution or statements that must be displayed with the response data
-
-
hoursarrayHourly weather forecast list
-
forecastTimedate-timeForecast time in ISO 8601 format
-
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 amount for the data period
-
valuenumberValue
-
unitstring
-
-
intensityobjectPrecipitation intensity
-
valuenumberValue
-
unitstring
-
-
typestring
Precipitation type
Possible Values:
rain,snow,ice,mixed,none,unknown -
probabilitynumberForecast precipitation probability. Value range:
[0, 1]
-
-
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]
-