天气查询API
GET请求
请求地址
请求参数
请求头设置
响应结果
{
"code": 200,
"message": "success",
"data": {
"city": "北京",
"temperature": 25,
"weather": "晴",
"humidity": 45,
"wind": {
"speed": 3.2,
"direction": "东北风"
},
"forecast": [
{
"date": "2024-01-20",
"weather": "多云",
"temp_max": 28,
"temp_min": 18
},
{
"date": "2024-01-21",
"weather": "小雨",
"temp_max": 24,
"temp_min": 16
}
]
}
}