天气查询
<<返回首页
#接口地址
http://api.5qmn.com/api/daygas.php
#返回格式
TEXT、JSON
#请求方式:
GET、POST
#请求示例(JSON输出):
http://api.5qmn.com/api/daygas.php?city=杭州&xz=1&type=json
#参数说明
参数名
是否必填
参数类型
说明
city
否
string
要查询的城市名
xz
否
string
城市下级地方
type
否
string
要输出的格式,可选:text、json
#返回数据
{"code":100,"success":true,"city":"滨江区","yesterday":{"day":"周四","temperature":"18℃~26℃","weather":"小雨","demeanor":"东南风-3-4级","quality":"良"},"today":{"day":"","temperature":"19℃~29℃","weather":"多云","demeanor":"微风-2级","quality":"良"},"tomorrow":{"day":"周六","temperature":"20℃~29℃","weather":"阴","demeanor":"东南风-3-4级","quality":"良"}}
Copyright © 2022.
青木倪API聚合站
All rights reserved.