格点每日天气预报
基于全球任意坐标的高精度每日天气预报,精确到3-5公里范围,包括温度、湿度、大气压、天气状况、风力、风向等。
请求URL
格点3天预报
https://api.qweather.com/v7/grid-weather/3d
格点7天预报
https://api.qweather.com/v7/grid-weather/7d
如果是免费订阅,将上述API Host更改为devapi.qweather.com
。参考免费订阅可用的数据。
请求参数
请求参数包括必选和可选参数,参数之间使用&
进行分隔。
请求示例
请将your_token
替换为你的JWT或了解身份认证
返回数据
返回数据是JSON格式并进行了Gzip压缩。
{
"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"
]
}
}
-
code
请参考状态码 -
updateTime
当前API的最近更新时间 -
fxLink
当前数据的响应式页面,便于嵌入网站或应用 -
daily.fxDate
预报日期 -
daily.tempMax
预报当天最高温度 -
daily.tempMin
预报当天最低温度 -
daily.iconDay
预报白天天气状况的图标代码,另请参考天气图标项目 -
daily.textDay
预报白天天气状况文字描述,包括阴晴雨雪等天气状态的描述 -
daily.iconNight
预报夜间天气状况的图标代码,另请参考天气图标项目 -
daily.textNight
预报晚间天气状况文字描述,包括阴晴雨雪等天气状态的描述 -
daily.wind360Day
预报白天风向360角度 -
daily.windDirDay
预报白天风向 -
daily.windScaleDay
预报白天风力等级 -
daily.windSpeedDay
预报白天风速,公里/小时 -
daily.wind360Night
预报夜间风向360角度 -
daily.windDirNight
预报夜间当天风向 -
daily.windScaleNight
预报夜间风力等级 -
daily.windSpeedNight
预报夜间风速,公里/小时 -
daily.precip
预报当天总降水量,默认单位:毫米 -
daily.humidity
相对湿度,百分比数值 -
daily.pressure
大气压强,默认单位:百帕 -
refer.sources
原始数据来源,或数据源说明,可能为空 -
refer.license
数据许可或版权声明,可能为空