| 字段名 | 类型 | 说明 |
|---|---|---|
code | int | 状态码,0=成功 |
desc | string | 状态描述 |
data− |
object | 业务数据(成功时返回) |
city− |
object | 城市信息 |
city |
string | 城市名 |
district |
string | 区县 |
province |
string | 省份 |
country |
string | 国家 |
condition− |
object | 天气实况数据 |
temperature |
string | 当前温度(℃) |
weather_desc |
string | 天气描述(如:晴、多云) |
weather_code |
string | 天气代码 |
humidity |
string | 相对湿度 |
wind_desc |
string | 风向风力描述 |
air_pressure |
string | 气压 |
visibility |
string | 能见度 |
cloud_rate |
string | 云量 |
feel_temperature |
string | 体感温度(℃) |
uv |
string | 紫外线指数 |
sunrise |
string | 日出时间 |
sunset |
string | 日落时间 |
publish_time |
string | 数据发布时间 |
air− |
object | 空气质量实况数据 |
aqi |
string | 空气质量指数 AQI |
pm25 |
string | PM2.5 浓度(μg/m³) |
pm10 |
string | PM10 浓度(μg/m³) |
so2 |
string | 二氧化硫浓度(μg/m³) |
no2 |
string | 二氧化氮浓度(μg/m³) |
o3 |
string | 臭氧浓度(μg/m³) |
co |
string | 一氧化碳浓度(mg/m³) |
publish_time |
string | 数据发布时间 |
request_id | string | 请求追踪ID |
{
"code": 0,
"desc": "success",
"data": { ... },
"request_id": "abc123..."
}
{
"code": 999,
"desc": "错误描述",
"request_id": "abc123..."
}
© 网程科技(林州网程科技有限公司) | 豫ICP备2025120409号-2 | 豫B2-20230220 | 豫公网安备 41058102000262号