Real-time Weather

Real-time weather data for 150,000 cities around the world, including real-time temperature, wind direction, relative humidity, atmospheric pressure, precipitation, visibility, dew point temperature, cloud cover and other data.

Request URL

  • Prohttps://api.qweather.com/v7/weather/now?[params]
  • Devhttps://devapi.qweather.com/v7/weather/now?[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 location to be queried, support LocationID or comma-separated longitude and latitude, LocationID can be obtained by GeoAPI.

For example: location=101010100 or 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
gzip

Enable Gzip can greatly reduce the latency of API access, save network traffic.

  • y enable gzip, default
  • n disable gzip

Response

// Real-tiem weather for Beijing 
// Pro API:  https://api.qweather.com/v7/weather/now?location=101010100&lang=en&key=YOUR_KEY
// Dev API:  https://devapi.qweather.com/v7/weather/now?location=101010100&lang=en&key=YOUR_KEY

{
  "code": "200",
  "updateTime": "2021-02-14T15:26+08:00",
  "fxLink": "http://hfx.link/2ax1",
  "now": {
    "obsTime": "2021-02-14T15:03+08:00",
    "temp": "3",
    "feelsLike": "1",
    "icon": "104",
    "text": "Overcast",
    "wind360": "225",
    "windDir": "SW",
    "windScale": "2",
    "windSpeed": "6",
    "humidity": "89",
    "precip": "0.0",
    "pressure": "1029",
    "vis": "5",
    "cloud": "98",
    "dew": "2"
  },
  "refer": {
    "sources": [
      "Weather China"
    ],
    "license": [
      "commercial license"
    ]
  }
}

The real-time data are all near real-time data. Compared with the real physical world, it will be delayed by 5-20 minutes. Please determine the accurate time corresponding to the data according to the obsTime in the data.

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.feelsLike

Feels like temperature

now.icon

Icon code of weather conditions, free to download weather icons

now.text

Weather conditions

now.wind360

Wind direction in azimuth degree

now.windDir

Wind direction

now.windScale

Wind scale

now.windSpeed

Wind speed, KM/H

now.humidity

Relative humidity in percent

now.precip

Accumulated precipitation in the current hour

now.pressure

Atmospheric pressure, hPa

now.vis

Visibility, KM

now.cloud

Cloud cover in percent

now.dew

Dew point temperature

refer.sources

Data source and other statements, may be null

refer.license

Data license, may be null