Weather Hourly Forecast
Get hourly weather forecasts for cities around the world for the next 24-168 hours.
Request URL
Hourly Forecast (24hrs)
https://api.qweather.com/v7/weather/24h
Hourly Forecast (72hrs)
https://api.qweather.com/v7/weather/72h
Hourly Forecast (168hrs)
https://api.qweather.com/v7/weather/168h
For Free subscription, change the API Host to devapi.qweather.com
. See data available for Free subscription.
Request Parameters
All parameters are separated by &
. If no optional parameters are set, the default value will be used.
-
location
(required)The location to be queried, support LocationID or comma-separated longitude and latitude (decimal, up to 2 decimal places), LocationID can be obtained by GeoAPI. Example:location=101010100
orlocation=116.41,39.92
-
lang
Multi-language setting, please see Language to find out how our multi-language works and how to set up. -
unit
Set weather data unit, the available value areunit=m
for metric(default) andunit=i
for imperial. See more about Unit.
Request Example
Replace your_token
with your JWT or learn more about Authentication
Response
The response is in JSON format and is Gzip compressed.
{
"code": "200",
"updateTime": "2021-02-16T13:35+08:00",
"fxLink": "http://hfx.link/2ax1",
"hourly": [
{
"fxTime": "2021-02-16T15:00+08:00",
"temp": "2",
"icon": "100",
"text": "晴",
"wind360": "335",
"windDir": "西北风",
"windScale": "3-4",
"windSpeed": "20",
"humidity": "11",
"pop": "0",
"precip": "0.0",
"pressure": "1025",
"cloud": "0",
"dew": "-25"
},
{
"fxTime": "2021-02-16T16:00+08:00",
"temp": "1",
"icon": "100",
"text": "晴",
"wind360": "339",
"windDir": "西北风",
"windScale": "3-4",
"windSpeed": "24",
"humidity": "11",
"pop": "0",
"precip": "0.0",
"pressure": "1025",
"cloud": "0",
"dew": "-26"
},
{
"fxTime": "2021-02-16T17:00+08:00",
"temp": "0",
"icon": "100",
"text": "晴",
"wind360": "341",
"windDir": "西北风",
"windScale": "4-5",
"windSpeed": "25",
"humidity": "11",
"pop": "0",
"precip": "0.0",
"pressure": "1026",
"cloud": "0",
"dew": "-26"
},
{
"fxTime": "2021-02-16T18:00+08:00",
"temp": "0",
"icon": "150",
"text": "晴",
"wind360": "344",
"windDir": "西北风",
"windScale": "4-5",
"windSpeed": "25",
"humidity": "12",
"pop": "0",
"precip": "0.0",
"pressure": "1025",
"cloud": "0",
"dew": "-27"
},
{
"fxTime": "2021-02-16T19:00+08:00",
"temp": "-2",
"icon": "150",
"text": "晴",
"wind360": "349",
"windDir": "西北风",
"windScale": "3-4",
"windSpeed": "24",
"humidity": "13",
"pop": "0",
"precip": "0.0",
"pressure": "1025",
"cloud": "0",
"dew": "-27"
},
{
"fxTime": "2021-02-16T20:00+08:00",
"temp": "-3",
"icon": "150",
"text": "晴",
"wind360": "353",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "22",
"humidity": "14",
"pop": "0",
"precip": "0.0",
"pressure": "1025",
"cloud": "0",
"dew": "-27"
},
{
"fxTime": "2021-02-16T21:00+08:00",
"temp": "-3",
"icon": "150",
"text": "晴",
"wind360": "355",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "20",
"humidity": "14",
"pop": "0",
"precip": "0.0",
"pressure": "1026",
"cloud": "0",
"dew": "-27"
},
{
"fxTime": "2021-02-16T22:00+08:00",
"temp": "-4",
"icon": "150",
"text": "晴",
"wind360": "356",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "18",
"humidity": "16",
"pop": "0",
"precip": "0.0",
"pressure": "1026",
"cloud": "0",
"dew": "-27"
},
{
"fxTime": "2021-02-16T23:00+08:00",
"temp": "-4",
"icon": "150",
"text": "晴",
"wind360": "356",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "18",
"humidity": "16",
"pop": "0",
"precip": "0.0",
"pressure": "1026",
"cloud": "0",
"dew": "-27"
},
{
"fxTime": "2021-02-17T00:00+08:00",
"temp": "-4",
"icon": "150",
"text": "晴",
"wind360": "354",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "16",
"humidity": "16",
"pop": "0",
"precip": "0.0",
"pressure": "1027",
"cloud": "0",
"dew": "-27"
},
{
"fxTime": "2021-02-17T01:00+08:00",
"temp": "-4",
"icon": "150",
"text": "晴",
"wind360": "351",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "16",
"humidity": "16",
"pop": "0",
"precip": "0.0",
"pressure": "1028",
"cloud": "0",
"dew": "-27"
},
{
"fxTime": "2021-02-17T02:00+08:00",
"temp": "-4",
"icon": "150",
"text": "晴",
"wind360": "350",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "16",
"humidity": "16",
"pop": "0",
"precip": "0.0",
"pressure": "1028",
"cloud": "0",
"dew": "-27"
},
{
"fxTime": "2021-02-17T03:00+08:00",
"temp": "-5",
"icon": "150",
"text": "晴",
"wind360": "350",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "16",
"humidity": "16",
"pop": "0",
"precip": "0.0",
"pressure": "1028",
"cloud": "0",
"dew": "-27"
},
{
"fxTime": "2021-02-17T04:00+08:00",
"temp": "-5",
"icon": "150",
"text": "晴",
"wind360": "351",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "16",
"humidity": "15",
"pop": "0",
"precip": "0.0",
"pressure": "1027",
"cloud": "0",
"dew": "-28"
},
{
"fxTime": "2021-02-17T05:00+08:00",
"temp": "-5",
"icon": "150",
"text": "晴",
"wind360": "352",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "16",
"humidity": "14",
"pop": "0",
"precip": "0.0",
"pressure": "1026",
"cloud": "0",
"dew": "-29"
},
{
"fxTime": "2021-02-17T06:00+08:00",
"temp": "-5",
"icon": "150",
"text": "晴",
"wind360": "355",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "14",
"humidity": "16",
"pop": "0",
"precip": "0.0",
"pressure": "1025",
"cloud": "0",
"dew": "-27"
},
{
"fxTime": "2021-02-17T07:00+08:00",
"temp": "-7",
"icon": "150",
"text": "晴",
"wind360": "359",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "16",
"humidity": "20",
"pop": "0",
"precip": "0.0",
"pressure": "1024",
"cloud": "0",
"dew": "-26"
},
{
"fxTime": "2021-02-17T08:00+08:00",
"temp": "-5",
"icon": "100",
"text": "晴",
"wind360": "1",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "14",
"humidity": "19",
"pop": "0",
"precip": "0.0",
"pressure": "1023",
"cloud": "0",
"dew": "-26"
},
{
"fxTime": "2021-02-17T09:00+08:00",
"temp": "-4",
"icon": "100",
"text": "晴",
"wind360": "356",
"windDir": "北风",
"windScale": "3-4",
"windSpeed": "14",
"humidity": "17",
"pop": "0",
"precip": "0.0",
"pressure": "1023",
"cloud": "0",
"dew": "-25"
},
{
"fxTime": "2021-02-17T10:00+08:00",
"temp": "-1",
"icon": "100",
"text": "晴",
"wind360": "344",
"windDir": "西北风",
"windScale": "3-4",
"windSpeed": "14",
"humidity": "14",
"pop": "0",
"precip": "0.0",
"pressure": "1024",
"cloud": "0",
"dew": "-26"
},
{
"fxTime": "2021-02-17T11:00+08:00",
"temp": "0",
"icon": "100",
"text": "晴",
"wind360": "333",
"windDir": "西北风",
"windScale": "3-4",
"windSpeed": "14",
"humidity": "12",
"pop": "0",
"precip": "0.0",
"pressure": "1024",
"cloud": "0",
"dew": "-26"
},
{
"fxTime": "2021-02-17T12:00+08:00",
"temp": "1",
"icon": "100",
"text": "晴",
"wind360": "325",
"windDir": "西北风",
"windScale": "3-4",
"windSpeed": "14",
"humidity": "10",
"pop": "0",
"precip": "0.0",
"pressure": "1025",
"cloud": "16",
"dew": "-28"
},
{
"fxTime": "2021-02-17T13:00+08:00",
"temp": "2",
"icon": "100",
"text": "晴",
"wind360": "319",
"windDir": "西北风",
"windScale": "3-4",
"windSpeed": "16",
"humidity": "8",
"pop": "0",
"precip": "0.0",
"pressure": "1025",
"cloud": "32",
"dew": "-29"
},
{
"fxTime": "2021-02-17T14:00+08:00",
"temp": "2",
"icon": "100",
"text": "晴",
"wind360": "313",
"windDir": "西北风",
"windScale": "3-4",
"windSpeed": "16",
"humidity": "9",
"pop": "0",
"precip": "0.0",
"pressure": "1025",
"cloud": "48",
"dew": "-27"
}
],
"refer": {
"sources": [
"QWeather",
"NMC",
"ECMWF"
],
"license": [
"QWeather Developers License"
]
}
}
-
code
See Status Code -
updateTime
API last update time -
fxLink
Responsive web page of this data, for embedded in website or APP -
hourly.fxTime
Forecast time -
hourly.temp
temperature -
hourly.icon
Icon code for weather conditions. See also QWeather Icons -
hourly.text
Weather conditions -
hourly.wind360
Wind direction in azimuth degree -
hourly.windDir
Wind direction -
hourly.windScale
Wind scale -
hourly.windSpeed
Wind speed, KM/H -
hourly.humidity
Relative humidity in percent -
hourly.precip
Accumulated precipitation in the current hour -
hourly.pop
Precipitation probability in percent, may be null -
hourly.pressure
Atmospheric pressure, hPa -
hourly.cloud
Cloud cover in percent, may be null -
hourly.dew
Dew point temperature, may be null -
refer.sources
Data source and other statements, may be null -
refer.license
Data license, may be null