Grid Weather Hourly Forecast

Obtain high-precision hourly weather forecasts within 1 km of China, including: temperature, humidity, atmospheric pressure, weather conditions, wind direction, etc.

This data is only supported for Chinese cities.

Request URL #

  • Prohttps://api.qweather.com/v7/grid-weather/24h?[params]

Request parameters #

All parameters are separated by &. If no optional parameters are set, the default value will be used.

key

API authentication key, please refer to How To Get Your Key. Support Signature Authentication.

For example: key=12334567890ABC

location

The comma-separated longitude and latitude of the location to be queried.

For example: location=116.41,39.92

lang

Multi-language setting, if data does not match the language you set, it will return results in English or its native language.

unit

Select weather data unit, for unit parameters of all data, please refer Unit

  • m metric unit, default
  • i imperial unit

Response #

// Hourly forecast in 116.41,39.92
// Pro: https://api.qweather.com/v7/grid-weather/24h?location=116.41,39.92&lang=en&key=YOUR_KEY

{
  "code": "200",
  "updateTime": "2021-03-12T17:55+08:00",
  "fxLink": "http://hfx.link/1",
  "hourly": [
    {
      "fxTime": "2021-03-12T20:00+00:00",
      "temp": "8",
      "icon": "154",
      "text": "Overcast",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-12T21:00+00:00",
      "temp": "8",
      "icon": "154",
      "text": "Overcast",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-12T22:00+00:00",
      "temp": "7",
      "icon": "154",
      "text": "Overcast",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-12T23:00+00:00",
      "temp": "7",
      "icon": "154",
      "text": "Overcast",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T00:00+00:00",
      "temp": "7",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T01:00+00:00",
      "temp": "7",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T02:00+00:00",
      "temp": "7",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T03:00+00:00",
      "temp": "7",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T04:00+00:00",
      "temp": "7",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T05:00+00:00",
      "temp": "7",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "NW",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T06:00+00:00",
      "temp": "7",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "W",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T07:00+00:00",
      "temp": "8",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "W",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T08:00+00:00",
      "temp": "8",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "W",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T09:00+00:00",
      "temp": "10",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "W",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T10:00+00:00",
      "temp": "12",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "W",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T11:00+00:00",
      "temp": "12",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T12:00+00:00",
      "temp": "13",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T13:00+00:00",
      "temp": "14",
      "icon": "154",
      "text": "Overcast",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T14:00+00:00",
      "temp": "14",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "N",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T15:00+00:00",
      "temp": "15",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "NE",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T16:00+00:00",
      "temp": "15",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "NE",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T17:00+00:00",
      "temp": "14",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "NE",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T18:00+00:00",
      "temp": "12",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "NE",
      "windScale": "1-2",
      "precip": "0.0"
    },
    {
      "fxTime": "2021-03-13T19:00+00:00",
      "temp": "11",
      "icon": "101",
      "text": "Cloudy",
      "windDir": "E",
      "windScale": "1-2",
      "precip": "0.0"
    }
  ],
  "refer": {
    "sources": [
      "Weather China"
    ],
    "license": [
      "commercial license"
    ]
  }
}
Parameters Description
code

API status code, please refer to 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 of weather conditions, free to download weather icons

hourly.text

Weather conditions

hourly.windDir

Wind direction

hourly.windScale

Wind scale

hourly.precip

Accumulated precipitation in the current hour

refer.sources

Data source and other statements, may be null

refer.license

Data license, may be null