稳定、快速、免费的 API 接口服务
共收录了 26 个接口
接口地址: https://collect.xmwxxc.com/collect/wether/
返回格式: JSON
请求方式: GET
请求示例: https://collect.xmwxxc.com/collect/wether/?city=北京
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
city | 是 | string | 输入城市中文名称 如 北京 |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
{"data":{"yesterday":{"date":"6日星期四","high":"高温 19℃","fx":"西风","low":"低温 14℃","fl":"","type":"晴"},"city":"北京","forecast":[{"date":"7日星期五","high":"高温 26℃","fengli":"","low":"低温 15℃","fengxiang":"西风","type":"晴"},{"date":"8日星期六","high":"高温 27℃","fengli":"","low":"低温 13℃","fengxiang":"西北风","type":"多云"},{"date":"9日星期天","high":"高温 26℃","fengli":"","low":"低温 14℃","fengxiang":"东南风","type":"多云"},{"date":"10日星期一","high":"高温 27℃","fengli":"","low":"低温 13℃","fengxiang":"东南风","type":"晴"},{"date":"11日星期二","high":"高温 25℃","fengli":"","low":"低温 12℃","fengxiang":"南风","type":"多云"}],"ganmao":"感冒易发期,外出请适当调整衣物,注意补充水分。","wendu":"15"},"status":1000,"desc":"OK"}
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
友情连接