Grid Weather Real-time

Obtain high-precision real-time weather 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/now?[params]

Request parameters #

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

location

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

For example: location=116.41,39.92

key

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

For example: key=12334567890ABC

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 #

// Real-time weather in 116.41,39.92
// Pro: https://api.qweather.com/v7/grid-weather/now?location=116.41,39.92&lang=en&key=YOUR_KEY

{
  "code": "200",
  "updateTime": "2021-03-12T19:30+08:00",
  "fxLink": "http://hfx.link/1",
  "now": {
    "obsTime": "2021-03-12T19:20+00:00",
    "temp": "7",
    "icon": "150",
    "text": "Clear",
    "windDir": "E",
    "windScale": "1",
    "humidity": "90",
    "precip": "0.0",
    "pressure": "1020"
  },
  "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

now.obsTime

Observation time

now.temp

temperature

now.icon

Icon code of weather conditions, free to download weather icons

now.text

Weather conditions

now.windDir

Wind direction

now.windScale

Wind scale

now.humidity

Relative humidity in percent

now.precip

Accumulated precipitation in the current hour

now.pressure

Atmospheric pressure, hPa

refer.sources

Data source and other statements, may be null

refer.license

Data license, may be null