天气增强
按城市查询地理位置、当前天气和七日预报
https://api.hk0.cc/api/weatherhttps://api.hk0.cc/api/weather?city=beijing请求参数
接口指标
QPS 上限
0次/秒
平均响应时间
2190.83ms
今日调用量
0次
累计调用量
6次
请求示例
Shell
JavaScript
Python
PHP
Java
Go
C#
Ruby
curl -X GET 'https://api.hk0.cc/api/weather?city=string'返回示例
{
"code": 200,
"msg": "success",
"data": {
"location": {
"name": "Beijing",
"country": "China",
"latitude": 39.9,
"longitude": 116.4
},
"current": {
"temperature_2m": 25.1,
"weather_code": 1
},
"forecast": {
"time": [
"2026-08-31"
]
}
}
}