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#
GET /v7/grid-weather/{days}Parameters#
Path parameters
-
days(required) Forecast days. Available values are3dand7d.
Query parameters
-
location(required) The comma-separated longitude and latitude (decimal, up to 2 decimal places) of the location to be queried. For examplelocation=116.41,39.92 -
langMulti-language setting, please see Language to find out how our multi-language works and how to set up. -
unitData unit. Usemfor metric units (default) orifor imperial units.
Request example#
curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your-api-host/v7/grid-weather/3d?location=116.41%2C39.92&lang=en&unit=m'
Replace your_token and your_api_host with your JWT Authentication and API Host
Response#
{
"code": "200",
"updateTime": "2023-05-30T18:00+08:00",
"fxLink": "https://www.qweather.com",
"daily": [
{
"fxDate": "2023-05-30",
"tempMax": "28",
"tempMin": "21",
"iconDay": "102",
"iconNight": "306",
"textDay": "Few Clouds",
"textNight": "Moderate Rain",
"wind360Day": "129",
"windDirDay": "SE",
"windScaleDay": "2",
"windSpeedDay": "7",
"wind360Night": "107",
"windDirNight": "ESE",
"windScaleNight": "2",
"windSpeedNight": "8",
"humidity": "91",
"precip": "11.55",
"pressure": "1004",
"cloud": "70"
},
{
"fxDate": "2023-05-31",
"tempMax": "24",
"tempMin": "20",
"iconDay": "307",
"iconNight": "306",
"textDay": "Heavy Rain",
"textNight": "Moderate Rain",
"wind360Day": "96",
"windDirDay": "E",
"windScaleDay": "1",
"windSpeedDay": "4",
"wind360Night": "86",
"windDirNight": "E",
"windScaleNight": "1",
"windSpeedNight": "3",
"humidity": "93",
"precip": "23.16",
"pressure": "1004",
"cloud": "66"
},
{
"fxDate": "2023-06-01",
"tempMax": "30",
"tempMin": "22",
"iconDay": "101",
"iconNight": "150",
"textDay": "Cloudy",
"textNight": "Sunny",
"wind360Day": "111",
"windDirDay": "ESE",
"windScaleDay": "1",
"windSpeedDay": "4",
"wind360Night": "103",
"windDirNight": "ESE",
"windScaleNight": "1",
"windSpeedNight": "4",
"humidity": "89",
"precip": "0.00",
"pressure": "1003",
"cloud": "22"
}
],
"refer": {
"sources": [
"https://developer.qweather.com/attribution.html"
],
"license": [
"QWeather Developers License"
]
}
}-
fxLinkuri Responsive web page of this data, for embedded in website or APP -
dailyarray Daily forecast data-
fxDatestring Forecast date -
tempMaxstring The highest temperature of the day -
tempMinstring The lowest temperature of the day -
textDaystring Weather conditions for daytime -
textNightstring Weather conditions for night -
humiditystring Relative humidity in percent -
precipstring Estimated total precipitation for the day -
pressurestring Station pressure, default unit: hPa
-
-
referobject Data sources and licensing information-
sourcesarray Data source and other statements, may be null -
licensearray Data license, may be null
-