Weather Daily Forecast

Weather forecast for the next 15 days, including: sunrise and sunset, moonrise and moonset, maximum and minimum temperatures, weather conditions, wind speed, wind direction, relative humidity, atmospheric pressure, precipitation, dew point temperature, UV index, visibility, etc.

Request URL

3 Days Forecast

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

7 Days Forecast

  • Prohttps://api.qweather.com/v7/weather/7d?[params]
  • Devhttps://devapi.qweather.com/v7/weather/7d?[params]

10 Days Forecast

  • Prohttps://api.qweather.com/v7/weather/10d?[params]

15 Days Forecast

  • Prohttps://api.qweather.com/v7/weather/15d?[params]

Request Parameters

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

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

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

// 3-day forecast for Beijing 
// Pro API:  https://api.qweather.com/v7/weather/3d?location=101010100&lang=en&key=YOUR_KEY
// Dev API:  https://devapi.qweather.com/v7/weather/3d?location=101010100&lang=en&key=YOUR_KEY

{
  "code": "200",
  "updateTime": "2021-02-14T15:35+08:00",
  "fxLink": "http://hfx.link/2ax1",
  "daily": [
    {
      "fxDate": "2021-02-14",
      "sunrise": "07:06",
      "sunset": "17:50",
      "moonrise": "08:42",
      "moonset": "20:17",
      "moonPhase": "Waxing crescent",
      "tempMax": "4",
      "tempMin": "-4",
      "iconDay": "305",
      "textDay": "Light Rain",
      "iconNight": "101",
      "textNight": "Cloudy",
      "wind360Day": "90",
      "windDirDay": "E",
      "windScaleDay": "1-2",
      "windSpeedDay": "3",
      "wind360Night": "0",
      "windDirNight": "N",
      "windScaleNight": "1-2",
      "windSpeedNight": "3",
      "humidity": "22",
      "precip": "2.1",
      "pressure": "1018",
      "vis": "24",
      "cloud": "62",
      "uvIndex": "1"
    },
    {
      "fxDate": "2021-02-15",
      "sunrise": "07:05",
      "sunset": "17:51",
      "moonrise": "09:07",
      "moonset": "21:18",
      "moonPhase": "Waxing crescent",
      "tempMax": "6",
      "tempMin": "-4",
      "iconDay": "101",
      "textDay": "Cloudy",
      "iconNight": "150",
      "textNight": "Clear",
      "wind360Day": "225",
      "windDirDay": "SW",
      "windScaleDay": "3-4",
      "windSpeedDay": "16",
      "wind360Night": "0",
      "windDirNight": "N",
      "windScaleNight": "3-4",
      "windSpeedNight": "16",
      "humidity": "19",
      "precip": "0.0",
      "pressure": "1018",
      "vis": "25",
      "cloud": "2",
      "uvIndex": "3"
    },
    {
      "fxDate": "2021-02-16",
      "sunrise": "07:04",
      "sunset": "17:53",
      "moonrise": "09:31",
      "moonset": "22:17",
      "moonPhase": "Waxing crescent",
      "tempMax": "3",
      "tempMin": "-7",
      "iconDay": "100",
      "textDay": "Sunny",
      "iconNight": "150",
      "textNight": "Clear",
      "wind360Day": "0",
      "windDirDay": "N",
      "windScaleDay": "3-4",
      "windSpeedDay": "24",
      "wind360Night": "0",
      "windDirNight": "N",
      "windScaleNight": "1-2",
      "windSpeedNight": "3",
      "humidity": "22",
      "precip": "0.0",
      "pressure": "1024",
      "vis": "25",
      "cloud": "0",
      "uvIndex": "3"
    }
  ],
  "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.sunrise

Sunrise time

daily.sunset

Sunset time

daily.moonrise

Moonrise time

daily.moonset

Moonset time

daily.moonPhase

Moon phase name

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

Daytime wind direction in azimuth degree

daily.windDirDay

Daytime wind direction

daily.windScaleDay

Daytime wind scale

daily.windSpeedDay

Daytime wind speed, KM/H

daily.wind360Night

Nightly wind direction in azimuth degree

daily.windDirNight

Nightly Wind direction

daily.windScaleNight

Nightly wind scale

daily.windSpeedNight

Nightly wind speed, KM/H

daily.precip

Estimated total precipitation for the day

daily.uvIndex

UV index

daily.humidity

Relative humidity in percent

daily.pressure

Atmospheric pressure, hPa

daily.vis

Visibility, KM

daily.cloud

Cloud cover in percent

refer.sources

Data source and other statements, may be null

refer.license

Data license, may be null