城市天气查询 - OOOPN'S API

# 城市天气查询API请求方式 #
  • Method: GET/POST

# 请求地址 #
  • https://api.ooopn.com/weather/api.php

# 请求参数 #
  • city     //要查询的城市(必填汉字)

# 调用示例 #

# 返回数据 #
  • {"data":{"yesterday":{"date":"1日星期一","high":"高温 21℃","fx":"东南风","low":"低温 11℃","fl":"","type":"晴"},"city":"武汉","forecast":[{"date":"2日星期二","high":"高温 14℃","fengli":"","low":"低温 10℃","fengxiang":"东北风","type":"中雨"},{"date":"3日星期三","high":"高温 21℃","fengli":"","low":"低温 10℃","fengxiang":"东北风","type":"阴"},{"date":"4日星期四","high":"高温 19℃","fengli":"","low":"低温 9℃","fengxiang":"西南风","type":"小雨"},{"date":"5日星期五","high":"高温 24℃","fengli":"","low":"低温 11℃","fengxiang":"西南风","type":"晴"},{"date":"6日星期六","high":"高温 26℃","fengli":"","low":"低温 13℃","fengxiang":"南风","type":"多云"}],"ganmao":"昼夜温差较大,较易发生感冒,请适当增减衣服。体质较弱的朋友请注意防护。","wendu":"12"},"status":1000,"desc":"OK"}