Grid Weather Daily Forecast
Weather forecast data based on numerical models, to provide daily weather forecasts at specified coordinates around the world, with a spatial resolution of 3-5 kilometers.
Hint: The grid weather data is based on Numerical Weather Prediction (NWP) models, and it is not suitable for comparison with observation station data. For station-based city weather data, please refer to the City Weather API. Grid weather uses UTC+0 as the time zone.
Endpoint
/v7/grid-weather/{days}
Parameters
Path parameters
-
days(required)Forecast days, supports up to 7 days, available value:3d3 days forecast.7d7 days forecast.
Query parameters
-
location(required)The comma-separated longitude and latitude (decimal, up to 2 decimal places) of the location to be queried. For example:location=116.41,39.92 -
langMulti-language setting, please see Language to find out how our multi-language works and how to set up. -
unitSet weather data unit, the available value areunit=mfor metric(default) andunit=ifor imperial. See more about Unit.
Request example
curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your_api_host/v7/grid-weather/3d?location=116.41,39.92'Replace your_token and your_api_host with your JWT Authentication and API Host
Response
The response is in JSON format and is Gzip compressed.
{
"code": "200",
"updateTime": "2021-12-16T18:30+08:00",
"fxLink": "https://www.qweather.com",
"daily": [
{
"fxDate": "2021-12-16",
"tempMax": "2",
"tempMin": "-7",
"iconDay": "104",
"iconNight": "154",
"textDay": "阴",
"textNight": "阴",
"wind360Day": "344",
"windDirDay": "西北风",
"windScaleDay": "4-5",
"windSpeedDay": "9",
"wind360Night": "304",
"windDirNight": "西北风",
"windScaleNight": "4-5",
"windSpeedNight": "6",
"humidity": "36",
"precip": "0.0",
"pressure": "1026"
},
{
"fxDate": "2021-12-17",
"tempMax": "-1",
"tempMin": "-8",
"iconDay": "104",
"iconNight": "154",
"textDay": "阴",
"textNight": "阴",
"wind360Day": "28",
"windDirDay": "东北风",
"windScaleDay": "5-6",
"windSpeedDay": "15",
"wind360Night": "55",
"windDirNight": "东北风",
"windScaleNight": "4-5",
"windSpeedNight": "7",
"humidity": "44",
"precip": "0.0",
"pressure": "1028"
},
{
"fxDate": "2021-12-18",
"tempMax": "4",
"tempMin": "-8",
"iconDay": "100",
"iconNight": "150",
"textDay": "晴",
"textNight": "晴",
"wind360Day": "10",
"windDirDay": "北风",
"windScaleDay": "5-6",
"windSpeedDay": "17",
"wind360Night": "48",
"windDirNight": "东北风",
"windScaleNight": "3-4",
"windSpeedNight": "5",
"humidity": "61",
"precip": "0.0",
"pressure": "1016"
}
],
"refer": {
"sources": [
"QWeather"
],
"license": [
"QWeather Developers License"
]
}
}
-
codeSee Status Code -
updateTimeAPI last update time -
fxLinkResponsive web page of this data, for embedded in website or APP -
daily.fxDateForecast date -
daily.tempMaxThe highest temperature of the day -
daily.tempMinThe lowest temperature of the day -
daily.iconDayIcon code for daytime weather conditions. See also QWeather Icons -
daily.textDayWeather conditions for daytime -
daily.iconNightIcon code for night weather conditions. See also QWeather Icons -
daily.textNightWeather conditions for night -
daily.wind360DayDaytime wind direction in azimuth degree -
daily.windDirDayDaytime wind direction -
daily.windScaleDayDaytime wind scale -
daily.windSpeedDayDaytime wind speed, KM/H -
daily.wind360NightNightly wind direction in azimuth degree -
daily.windDirNightNightly wind direction -
daily.windScaleNightNightly wind scale -
daily.windSpeedNightNightly wind speed, KM/H -
daily.precipEstimated total precipitation for the day -
daily.humidityRelative humidity in percent -
daily.pressureAtmospheric pressure, hPa -
refer.sourcesData source and other statements, may be null -
refer.licenseData license, may be null