支持全球热门城市7天天气预报, 小时预报, 一小时更新一次
接口没有调用次数、频率和IP限制,也不需要注册key, 请放心使用!
接口调用地址:https://www.tianqiapi.com/api/
GET参数
参数 | 类型 | 必填 | 备注 |
---|---|---|---|
version | String | 是 | 接口标识, 固定值: v1 |
cityid | String | 否 | 城市ID, 例如 601010100 堪培拉 |
city | String | 否 | 城市名称 如: 堪培拉 |
ip | String | 否 | IP所在城市天气, 默认返回当前IP地区天气 |
callback | String | 否 | jsonp参数, 如: jQuery.Callbacks |
返回结果请参考 https://www.tianqiapi.com/api/?version=v1&cityid=101110101
技术支持QQ: 445899710 「备注天气api」
接口返回结果
{
"cityid":"601010100",
"city":"堪培拉",
"data":[
{
"wea":"阴转小雨",
"tem1":"26",
"tem2":"15",
"win":[
"西北风",
"西风"
],
"win_speed":"<3级",
"hours":[
{
"hours":"23日07时",
"wea":"多云",
"tem":"16",
"win":"南风",
"win_speed":"<3级"
},
{
"hours":"23日10时",
"wea":"阴",
"tem":"21",
"win":"北风",
"win_speed":"<3级"
},
{
"hours":"23日13时",
"wea":"多云",
"tem":"25",
"win":"西北风",
"win_speed":"<3级"
},
{
"hours":"23日16时",
"wea":"多云",
"tem":"24",
"win":"东北风",
"win_speed":"<3级"
},
{
"hours":"23日19时",
"wea":"晴",
"tem":"21",
"win":"东北风",
"win_speed":"<3级"
},
{
"hours":"23日22时",
"wea":"多云",
"tem":"19",
"win":"西北风",
"win_speed":"<3级"
},
{
"hours":"24日01时",
"wea":"小雨",
"tem":"18",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"24日04时",
"wea":"多云",
"tem":"17",
"win":"西风",
"win_speed":"<3级"
}
]
},
{
"wea":"小雨",
"tem1":"24",
"tem2":"11",
"win":[
"西北风",
"西风"
],
"win_speed":"<3级",
"hours":[
{
"hours":"24日07时",
"wea":"阴",
"tem":"17",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"24日10时",
"wea":"阴",
"tem":"22",
"win":"西北风",
"win_speed":"<3级"
},
{
"hours":"24日13时",
"wea":"阴",
"tem":"22",
"win":"西北风",
"win_speed":"<3级"
},
{
"hours":"24日16时",
"wea":"阴",
"tem":"19",
"win":"西北风",
"win_speed":"<3级"
},
{
"hours":"24日19时",
"wea":"小雨",
"tem":"14",
"win":"西北风",
"win_speed":"<3级"
},
{
"hours":"24日22时",
"wea":"小雨",
"tem":"12",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"25日01时",
"wea":"中雨",
"tem":"11",
"win":"西北风",
"win_speed":"<3级"
},
{
"hours":"25日04时",
"wea":"小雨",
"tem":"12",
"win":"西北风",
"win_speed":"<3级"
}
]
},
{
"wea":"小雨转晴",
"tem1":"20",
"tem2":"7",
"win":[
"西风",
"西风"
],
"win_speed":"<3级",
"hours":[
{
"hours":"25日07时",
"wea":"小雨",
"tem":"12",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"25日10时",
"wea":"小雨",
"tem":"16",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"25日13时",
"wea":"多云",
"tem":"20",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"25日16时",
"wea":"多云",
"tem":"18",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"25日19时",
"wea":"多云",
"tem":"14",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"25日22时",
"wea":"晴",
"tem":"11",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"26日01时",
"wea":"晴",
"tem":"9",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"26日04时",
"wea":"晴",
"tem":"8",
"win":"西风",
"win_speed":"<3级"
}
]
},
{
"wea":"晴",
"tem1":"20",
"tem2":"8",
"win":[
"西北风",
"东北风"
],
"win_speed":"<3级",
"hours":[
{
"hours":"26日07时",
"wea":"晴",
"tem":"8",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"26日10时",
"wea":"晴",
"tem":"14",
"win":"西风",
"win_speed":"<3级"
},
{
"hours":"26日16时",
"wea":"晴",
"tem":"20",
"win":"西北风",
"win_speed":"<3级"
},
{
"hours":"26日22时",
"wea":"晴",
"tem":"11",
"win":"东风",
"win_speed":"<3级"
},
{
"hours":"27日04时",
"wea":"晴",
"tem":"8",
"win":"东南风",
"win_speed":"<3级"
}
]
},
{
"wea":"阴转小雨",
"tem1":"22",
"tem2":"13",
"win":[
"东北风",
"东北风"
],
"win_speed":"<3级",
"hours":[
{
"hours":"27日10时",
"wea":"晴",
"tem":"16",
"win":"东北风",
"win_speed":"<3级"
},
{
"hours":"27日16时",
"wea":"阴",
"tem":"21",
"win":"东北风",
"win_speed":"<3级"
},
{
"hours":"27日22时",
"wea":"晴",
"tem":"14",
"win":"东风",
"win_speed":"<3级"
},
{
"hours":"28日04时",
"wea":"晴",
"tem":"14",
"win":"东风",
"win_speed":"<3级"
}
]
},
{
"wea":"中雨转小雨",
"tem1":"16",
"tem2":"14",
"win":[
"东北风",
"东北风"
],
"win_speed":"<3级",
"hours":[
{
"hours":"28日10时",
"wea":"中雨",
"tem":"18",
"win":"东北风",
"win_speed":"<3级"
},
{
"hours":"28日16时",
"wea":"大雨",
"tem":"16",
"win":"东北风",
"win_speed":"<3级"
},
{
"hours":"28日22时",
"wea":"多云",
"tem":"15",
"win":"东北风",
"win_speed":"<3级"
},
{
"hours":"29日04时",
"wea":"中雨",
"tem":"14",
"win":"东风",
"win_speed":"<3级"
}
]
},
{
"wea":"中雨转小雨",
"tem1":"21",
"tem2":"11",
"win":[
"北风",
"西北风"
],
"win_speed":"<3级",
"hours":[
{
"hours":"29日10时",
"wea":"多云",
"tem":"16",
"win":"东北风",
"win_speed":"<3级"
},
{
"hours":"29日16时",
"wea":"中雨",
"tem":"18",
"win":"北风",
"win_speed":"<3级"
},
{
"hours":"29日22时",
"wea":"中雨",
"tem":"14",
"win":"北风",
"win_speed":"<3级"
},
{
"hours":"30日04时",
"wea":"小雨",
"tem":"11",
"win":"西北风",
"win_speed":"<3级"
}
]
}
]
}