天气情况预报查询
接口地址: http://api.ilingku.com/int/v1/weather
返回格式: json
请求方式: get/post
请求示例: http://api.ilingku.com/int/v1/weather?city=上虞
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
city | 否 | string | 需要查询城市名称 (注:city、ip)选择一个参数即可 |
ip | 否 | string | 需要查询的IP地址 (注:city、ip)选择一个参数即可 |
act | 否 | string | 返回格式 支持(txt、json) 默认:json |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{
"code": 200,
"msg": "请求成功",
"data": {
"address": "浙江 绍兴 上虞",
"txt": "2024年07月10日 上虞 星期三 阴转多云 今日温度:37℃ ~ 27℃",
"today": {
"current_temp": "27.9℃",
"current_cond": "多云",
"pic": "https://i.i8tq.com/e_index/blueTemperature/02.png",
"night_condition": "阴转多云",
"tomorrow_condition": "雷阵雨转小雨",
"low": "27℃",
"quality": "良",
"alert": "暂无预警信息"
},
"seven_day": [
{
"date": "2024-07-10",
"cond": "阴转多云",
"high": "37℃",
"low": "27℃"
},
{
"date": "2024-07-11",
"cond": "雷阵雨转小雨",
"high": "35℃",
"low": "25℃"
},
{
"date": "2024-07-12",
"cond": "小雨转雷阵雨",
"high": "32℃",
"low": "25℃"
},
{
"date": "2024-07-13",
"cond": "雷阵雨转小雨",
"high": "33℃",
"low": "25℃"
},
{
"date": "2024-07-14",
"cond": "雷阵雨转多云",
"high": "33℃",
"low": "26℃"
},
{
"date": "2024-07-15",
"cond": "雷阵雨",
"high": "36℃",
"low": "26℃"
},
{
"date": "2024-07-16",
"cond": "晴转雷阵雨",
"high": "37℃",
"low": "26℃"
},
{
"date": "2024-07-17",
"cond": "雷阵雨转阴",
"high": "38℃",
"low": "25℃"
},
{
"date": "2024-07-18",
"cond": "阴",
"high": "37℃",
"low": "26℃"
},
{
"date": "2024-07-19",
"cond": "雨转阴",
"high": "35℃",
"low": "26℃"
},
{
"date": "2024-07-20",
"cond": "阴",
"high": "38℃",
"low": "26℃"
},
{
"date": "2024-07-21",
"cond": "多云",
"high": "38℃",
"low": "27℃"
},
{
"date": "2024-07-22",
"cond": "阴",
"high": "38℃",
"low": "27℃"
},
{
"date": "2024-07-23",
"cond": "多云转阴",
"high": "38℃",
"low": "26℃"
},
{
"date": "2024-07-24",
"cond": "多云转阴",
"high": "37℃",
"low": "25℃"
},
{
"date": "2024-07-25",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-07-26",
"cond": "中雨",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-07-27",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-07-28",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-07-29",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-07-30",
"cond": "多云",
"high": "35℃",
"low": "28℃"
},
{
"date": "2024-07-31",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-08-01",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-08-02",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-08-03",
"cond": "多云",
"high": "35℃",
"low": "28℃"
},
{
"date": "2024-08-04",
"cond": "小雨",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-08-05",
"cond": "小雨",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-08-06",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-08-07",
"cond": "多云",
"high": "34℃",
"low": "27℃"
},
{
"date": "2024-08-08",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-08-09",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-08-10",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-08-11",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-08-12",
"cond": "中雨",
"high": "34℃",
"low": "27℃"
},
{
"date": "2024-08-13",
"cond": "多云",
"high": "35℃",
"low": "27℃"
},
{
"date": "2024-08-14",
"cond": "中雨",
"high": "34℃",
"low": "27℃"
},
{
"date": "2024-08-15",
"cond": "小雨",
"high": "34℃",
"low": "27℃"
},
{
"date": "2024-08-16",
"cond": "小雨",
"high": "34℃",
"low": "27℃"
},
{
"date": "2024-08-17",
"cond": "多云",
"high": "34℃",
"low": "27℃"
},
{
"date": "2024-08-18",
"cond": "多云",
"high": "34℃",
"low": "27℃"
}
]
}
}
错误码格式说明:
名称 | 类型 | 说明 |
---|---|---|
code | string | 错误代码 |
msg | string | 错误提示 |