OkayAPI Docs


API Path: /api/App/Common_Weather/WeekWeather

API Description: 返回地区未来一周天气状况。请注意:此接口数据来源网上,仅用于学习娱乐,不得用于商业用途。

1
API Traffic
HTTP/HTTPS
Protocol
GET/POST
Method
UTF-8
Charset
JSON
Response

API Debug   


API Params

ParameterTypeRequiredDefaultNoteDescription
HTTP_APPKEYStringRequiredMIN: 32Common Put Your APPKEY
cityStringRequired需要搜索的城市,示例中会给出支持查询的城市

API Debug

KEYREQUIREDVALUE
app_key *Required
city *Required

API Response

KEYTypeDescription
weatherArray该地区未来一周天气实况
weather[].[]Array该地区未来某天天气实况
weather[].[].dayString日期
weather[].[].dateString具体日期
weather[].[].weekString周几
weather[].[].weaString天气情况
weather[].[].wea_imgString天气情况等级
weather[].[].tem1String高温/白天温度
weather[].[].tem2String低温/晚上温度
weather[].[].temString当前温度
weather[].[].winString风向(早/晚)
weather[].[].win_speedString风速
weather[].[].hour[]Array该地区当天某(02,05,08,11,14,17,20,23)小时天气实况
weather[].[].hour[].dayString该地区当天某(02,08,14,20)小时
weather[].[].hour[].weaString该地区当天某小时天气情况
weather[].[].hour[].temString该地区当天某小时温度
weather[].[].hour[].winString该地区当天某小时风速情况
weather[].[].hour[].win_speedString该地区当天某小时风速等级
weather[].[].index[]Array该地区当天生活指数
weather[].[].index[].titleString该地区当天生活类型(穿衣指数)
weather[].[].index[].levelString该地区当天生活等级(热)
weather[].[].index[].descString该地区当天生活具体描述与建议(适合穿T恤、短薄外套等夏季服装)

HTTP Response Code

HTTP Status CodeDescription
Http Status = 200Success
Http Status = 400表示客户端参数错误
Http Status = 404表示接口服务不存在
Http Status = 500表示服务端内部错误