百度天气
输出查询的当前天气预报

请求方式:get

请求地址:api.zjkhzx.cn/api/baidu/tq.php

返回格式:json

请求示例:api.zjkhzx.cn/api/baidu/tq.php?city=广州

请求参数:

名称 必填 类型 说明
  city string 输入城市地区名称查询

返回参数:

名称 类型 说明
  city string 返回的当前查询的地区
  week string 返回时间日期
  date string 返回详细信息
  ipcity string 返回本地地区

返回示例:

{"city":"广州"},"content":{"week":"周日 04月19日","city":"广州","today":{"time":"周日 04月19日 (实时: 27℃)","date":"04月19日","img":["",""],"condition":"多云","wind":"东南风微风","temp":"27℃","link":"http:\/\/www.weather.com.cn\/weather\/101280101.shtml#7d","imgs":{"1":"a1","0":"a1"},"pm25":"56","pollution":"10","pm25url":"\/\/www.baidu.com\/s?wd=%E5%B9%BF%E5%B7%9E%E7%A9%BA%E6%B0%94%E8%B4%A8%E9%87%8F%E6%8C%87%E6%95%B0&tn=baidutop10&rsv_idx=2"},"tomorrow":{"time":"周一","date":"04月20日","img":["",""],"condition":"多云","wind":"南风3-4级","temp":"22 ~ 29","link":"http:\/\/www.weather.com.cn\/weather\/101280101.shtml#7d","imgs":{"1":"a1","0":"a1"},"pm25":"56","pollution":"10","pm25url":"\/\/www.baidu.com\/s?wd=%E5%B9%BF%E5%B7%9E%E7%A9%BA%E6%B0%94%E8%B4%A8%E9%87%8F%E6%8C%87%E6%95%B0&tn=baidutop10&rsv_idx=2"},"thirdday":{"time":"周二","date":"04月21日","img":["",""],"condition":"雷阵雨转中到大雨","wind":"南风3-4级","temp":"20 ~ 28","link":"http:\/\/www.weather.com.cn\/weather\/101280101.shtml#7d","imgs":{"1":"a4","0":"a4"},"pm25":"\/\/www.baidu.com\/s?wd=%E5%B9%BF%E5%B7%9E%E7%A9%BA%E6%B0%94%E8%B4%A8%E9%87%8F%E6%8C%87%E6%95%B0&tn=baidutop10&rsv_idx=2","pollution":"10","pm25url":""},"fourthday":{"time":"周三","date":"04月22日","img":["",""],"condition":"中到大雨转中雨","wind":"无持续风向微风","temp":"17 ~ 25","link":"http:\/\/www.weather.com.cn\/weather\/101280101.shtml#7d","imgs":{"1":"a1","0":"a1"}},"fifthday":{"time":"周四","date":"04月23日","img":["",""],"condition":"中雨转中到大雨","wind":"东北风3-4级","temp":"14 ~ 18","link":"http:\/\/www.weather.com.cn\/weather\/101280101.shtml#7d","imgs":{"1":"a8","0":"a8"}},"linkseven":"http:\/\/www.weather.com.cn\/weather\/101280101.shtml#7d","source":{"name":"中国气象频道","url":"http:\/\/www.mywtv.cn\/"},"cityname":"广州","calendar":{"time":"1587296402914","lunar":"三月廿七","festival":"谷雨","weatherSourceUrl":"http:\/\/www.weather.com.cn\/weather\/101280101.shtml#7d"},"currenttemp":"27℃","pslink":"\/\/www.baidu.com\/s?tn=baidutop10&rsv_idx=2&wd=深圳","weatherType":"aladdin","isauto":false,"ipcity":"深圳","province":"广东"}}} }