Grid Weather Daily Forecast

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

This data is only supported for Chinese cities.

Request URL #

3 Days Forecast by Grid

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

7 Days Forecast by Grid

  • Prohttps://api.qweather.com/v7/grid-weather/7d?[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 #

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

{
  "code": "200",
  "updateTime": "2021-03-12T19:06+08:00",
  "fxLink": "http://hfx.link/1",
  "daily": [
    {
      "fxDate": "2021-03-12",
      "tempMax": "10",
      "tempMin": "8",
      "iconDay": "101",
      "iconNight": "302",
      "textDay": "Cloudy",
      "textNight": "Thundershower",
      "windDirDay": "W",
      "windScaleDay": "3-4",
      "windScaleNight": "1-2"
    },
    {
      "fxDate": "2021-03-13",
      "tempMax": "16",
      "tempMin": "7",
      "iconDay": "101",
      "iconNight": "101",
      "textDay": "Cloudy",
      "textNight": "Cloudy",
      "windDirDay": "W",
      "windScaleDay": "1-2",
      "windScaleNight": "1-2"
    },
    {
      "fxDate": "2021-03-14",
      "tempMax": "15",
      "tempMin": "8",
      "iconDay": "101",
      "iconNight": "154",
      "textDay": "Cloudy",
      "textNight": "Overcast",
      "windDirDay": "W",
      "windScaleDay": "3-4",
      "windScaleNight": "1-2"
    }
  ],
  "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

daily.fxDate

Forecast date

daily.tempMax

The highest temperature of the day

daily.tempMin

The lowest temperature of the day

daily.iconDay

Icon code for daytime weather conditions, free to download weather icons

daily.textDay

Weather conditions for daytime

daily.iconNight

Icon codes for night weather conditions, free to download weather icons

daily.textNight

Weather conditions for night

daily.windDirDay

Daytime wind direction

daily.windScaleDay

Daytime wind scale

daily.WindDirNight

Nightly Wind direction

daily.windScaleNight

Nightly wind scale

refer.sources

Data source and other statements, may be null

refer.license

Data license, may be null