天气查询,我们致力于为用户提供专业的免费API数据接口服务
天气查询
https://qhapi.com/api/weatherenhanced/api.php
https://qhapi.com/api/weatherenhanced/api.php?apikey=你的API密钥(登录后获取)&city=城市
点击右侧按钮复制完整请求地址,参数值请替换为实际有效值
| 参数名 | 是否必填 | 参数类型 | 参数说明 |
|---|---|---|---|
|
apikey
|
是 | string |
你的API密钥(登录后获取)
点击登录获取秘钥 |
|
city
|
是 | string | 城市 |
| 参数名 | 参数类型 | 参数说明 |
|---|---|---|
|
city
|
string | 城市 |
|
weather
|
string | weather |
|
temp
|
string | temp |
|
humidity
|
string | humidity |
|
wind
|
string | wind |
|
air_quality
|
string | air_quality |
{
"code": 200,
"msg": "success",
"data": {
"city": "城市",
"weather": "示例值",
"temp": "示例值",
"humidity": "示例值",
"wind": "示例值",
"air_quality": "示例值"
}
}