城市天气查询
可查询城市,县区天气接口

接口地址: https://api.qqsuu.cn/api/weather

返回格式: JSON

请求方式: GET/POST

请求示例: https://api.qqsuu.cn/api/weather?city=郑州

请求参数说明:

名称 必填 类型 说明
cityString城市或县区名称,如:郑州市,金水区

返回参数说明:

名称 类型 说明
dataString返回的日期!
TypeString返回的天气信息!

返回示例:

{"data":{"yesterday":{"date":"30日星期三","high":"高温4℃","fx":"西南风","low":"低温-1℃","fl":"","type":"雨夹雪"},"city":"西安","forecast":[{"date":"31日星期四","high":"高温 7℃","fengli":"","low":"低温-6℃","fengxiang":"西南风","type":"小雪"},{"date":"1日星期五","high":"高温 7℃","fengli":"","low":"低温 -4℃","fengxiang":"东北风","type":"多云"},{"date":"2日星期六","high":"高温 7℃","fengli":"","low":"低温 -3℃","fengxiang":"西南风","type":"多云"},{"date":"3日星期天","high":"高温 10℃","fengli":"","low":"低温 -1℃","fengxiang":"南风","type":"多云"},{"date":"4日星期一","high":"高温 8℃","fengli":"","low":"低温 -3℃","fengxiang":"东北风","type":"多云"}],"ganmao":"昼夜温差很大,易发生感冒,请注意适当增减衣服,加强自我防护避免感冒。","wendu":"2"},"status":1000,"desc":"OK"}

错误码格式说明:

名称 类型 说明
codeString返回的状态码 -1/1 失败/成功
msgString返回结果提示信息!

代码示例:

暂无示例.