获取全球城市实时天气信息,支持7天预报
12.5k
调用次数
4.8
用户评分
99.9%
可用率
https://api.weather.com/v1/weather/current
GET
城市名称,支持中英文
示例:北京、Beijing
API密钥
示例:your_api_key
温度单位
可选值:metric(摄氏度)、imperial(华氏度)
{
"code": 200,
"message": "success",
"data": {
"city": "北京",
"temperature": 25,
"weather": "晴",
"humidity": 45,
"wind": {
"speed": 3.2,
"direction": "东北风"
}
}
}
根据IP获取地理位置
实时空气质量指数