| 字段名 | 类型 | 说明 |
|---|---|---|
code | int | 状态码,0=成功 |
desc | string | 状态描述 |
data− |
object | 业务数据(成功时返回) |
city− |
object | 城市信息 |
city |
string | 城市名 |
district |
string | 区县 |
province |
string | 省份 |
country |
string | 国家 |
condition− |
object | 天气实况数据(仅 time_type=realtime 时返回) |
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 | 数据发布时间 |
hourly− |
array | 24小时逐时预报数组(仅 time_type=24hours 时返回) |
forecast_time |
string | 预报时间 |
weather_code |
string | 天气代码 |
weather_desc |
string | 天气描述 |
temperature |
string | 温度(℃) |
feel_temperature |
string | 体感温度(℃) |
humidity |
string | 相对湿度 |
wind_desc |
string | 风向风力描述 |
air_pressure |
string | 气压 |
visibility |
string | 能见度 |
sunrise |
string | 日出时间 |
sunset |
string | 日落时间 |
forecast− |
array | 多日预报数组(time_type 为 15days/40days/100days 时返回) |
forecast_day |
string | 预报日期 |
max_temperature |
string | 最高温度(℃) |
min_temperature |
string | 最低温度(℃) |
day_weather_desc |
string | 白天天气描述 |
day_weather_code |
string | 白天天气代码 |
night_weather_desc |
string | 夜间天气描述 |
night_weather_code |
string | 夜间天气代码 |
day_wind_desc |
string | 白天风力描述 |
night_wind_desc |
string | 夜间风力描述 |
day_wind_direction_desc |
string | 白天风向 |
night_wind_direction_desc |
string | 夜间风向 |
sunrise |
string | 日出时间 |
sunset |
string | 日落时间 |
day_humidity |
string | 白天湿度 |
night_humidity |
string | 夜间湿度 |
wind_level_rank |
string | 风力等级(100days) |
request_id | string | 请求追踪ID |
{
"code": 0,
"desc": "success",
"data": { ... },
"request_id": "abc123..."
}
{
"code": 999,
"desc": "错误描述",
"request_id": "abc123..."
}
© 网程科技(林州网程科技有限公司) | 豫ICP备2025120409号-2 | 豫B2-20230220 | 豫公网安备 41058102000262号