腾讯天气预报接口pm25.in


城市ID:

http://mat1.gtimg.com/weather/index2014/wtData_v2.js



天气:

http://weather.gtimg.cn/city/城市ID.js


http://weather.gtimg.cn/city/01012601.js


返回:


var __weather_city ={
  "bi_name": "上海", 
  "zs_xc": "4", 
  "h3": {
    "0": [
      {
        "wd": "4", 
        "ts": "2015-11-16 11:00:00", 
        "tp": "20", 
        "wkd": "1", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-16 14:00:00"
      }, 
      {
        "wd": "4", 
        "ts": "2015-11-16 14:00:00", 
        "tp": "21", 
        "wkd": "1", 
        "wt": "02", 
        "wp": "0", 
        "te": "2015-11-16 17:00:00"
      }, 
      {
        "wd": "4", 
        "ts": "2015-11-16 17:00:00", 
        "tp": "19", 
        "wkd": "1", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-16 20:00:00"
      }, 
      {
        "wd": "4", 
        "ts": "2015-11-16 20:00:00", 
        "tp": "19", 
        "wkd": "1", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-16 23:00:00"
      }, 
      {
        "wd": "8", 
        "ts": "2015-11-16 23:00:00", 
        "tp": "19", 
        "wkd": "1", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-17 2:00:00"
      }, 
      {
        "wd": "8", 
        "ts": "2015-11-17 2:00:00", 
        "tp": "19", 
        "wkd": "2", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-17 5:00:00"
      }, 
      {
        "wd": "8", 
        "ts": "2015-11-17 5:00:00", 
        "tp": "17", 
        "wkd": "2", 
        "wt": "08", 
        "wp": "0", 
        "te": "2015-11-17 8:00:00"
      }, 
      {
        "wd": "8", 
        "ts": "2015-11-17 8:00:00", 
        "tp": "16", 
        "wkd": "2", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-17 11:00:00"
      }, 
      {
        "wd": "1", 
        "ts": "2015-11-17 11:00:00", 
        "tp": "16", 
        "wkd": "2", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-17 14:00:00"
      }, 
      {
        "wd": "1", 
        "ts": "2015-11-17 14:00:00", 
        "tp": "16", 
        "wkd": "2", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-17 17:00:00"
      }, 
      {
        "wd": "1", 
        "ts": "2015-11-17 17:00:00", 
        "tp": "17", 
        "wkd": "2", 
        "wt": "01", 
        "wp": "0", 
        "te": "2015-11-17 20:00:00"
      }, 
      {
        "wd": "1", 
        "ts": "2015-11-17 20:00:00", 
        "tp": "16", 
        "wkd": "2", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-17 23:00:00"
      }, 
      {
        "wd": "1", 
        "ts": "2015-11-17 23:00:00", 
        "tp": "16", 
        "wkd": "2", 
        "wt": "08", 
        "wp": "0", 
        "te": "2015-11-18 2:00:00"
      }, 
      {
        "wd": "1", 
        "ts": "2015-11-18 2:00:00", 
        "tp": "16", 
        "wkd": "3", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-18 5:00:00"
      }, 
      {
        "wd": "1", 
        "ts": "2015-11-18 5:00:00", 
        "tp": "15", 
        "wkd": "3", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-18 8:00:00"
      }, 
      {
        "wd": "1", 
        "ts": "2015-11-18 8:00:00", 
        "tp": "14", 
        "wkd": "3", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-18 11:00:00"
      }
    ], 
    "rt": "2015-11-16 8:00:00"
  }, 
  "zs_cy": "4", 
  "zs_rt": "2015-11-16 8:00:00", 
  "zs_zs": "0", 
  "zs_kqwr": "2", 
  "zs_gj": "1", 
  "zs_xq": "3", 
  "zs_gm": "3", 
  "zs_pj": "3", 
  "zs_cl": "4", 
  "zs_ysh": "3", 
  "sk_vb": "NULL", 
  "zs_kt": "4", 
  "zs_ts": "2015-11-16 8:00:00", 
  "bi_sid": "58367", 
  "zs_dy": "3", 
  "sk_ps": "1010", 
  "sk_tp": "19", 
  "zs_mf": "1", 
  "bi_cid": "01012601", 
  "zs_yd": "3", 
  "sk_wda": "0", 
  "news_txt": [
    {
      "rt": "2014-5-14 5:00:46", 
      "ac": "上海中心气象台2014年05月14日05时00分解除雷电黄色预警信号:据最新气象资料分析,目前影响本市的雷暴已经明显减弱,本市雷电黄色预警信号解除。", 
      "pv": "上海市", 
      "url": "http://3g.mywtv.cn", 
      "uv": "http://mobile.mywtv.cn/video20/zhaowen3_android.3gp", 
      "al": "黄色", 
      "cny": " ", 
      "at": "雷电", 
      "ulc": "更多预警信息点击...", 
      "rlt": "2014-5-14 5:00:46", 
      "ds": "徐家汇(上海)"
    }
  ], 
  "zs_fs": "1", 
  "sk_rt": "2015-11-16 14:08:00", 
  "wk": {
    "0": [
      {
        "wd": "4", 
        "tmin": "NULL", 
        "tmax": "21", 
        "wkd": "1", 
        "ts": "2015-11-16 8:00:00", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-16 20:00:00"
      }, 
      {
        "wd": "4", 
        "tmin": "16", 
        "tmax": "NULL", 
        "wkd": "1", 
        "ts": "2015-11-16 20:00:00", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-17 8:00:00"
      }, 
      {
        "wd": "1", 
        "tmin": "NULL", 
        "tmax": "17", 
        "wkd": "2", 
        "ts": "2015-11-17 8:00:00", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-17 20:00:00"
      }, 
      {
        "wd": "1", 
        "tmin": "14", 
        "tmax": "NULL", 
        "wkd": "2", 
        "ts": "2015-11-17 20:00:00", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-18 8:00:00"
      }, 
      {
        "wd": "1", 
        "tmin": "NULL", 
        "tmax": "17", 
        "wkd": "3", 
        "ts": "2015-11-18 8:00:00", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-18 20:00:00"
      }, 
      {
        "wd": "1", 
        "tmin": "14", 
        "tmax": "NULL", 
        "wkd": "3", 
        "ts": "2015-11-18 20:00:00", 
        "wt": "07", 
        "wp": "0", 
        "te": "2015-11-19 8:00:00"
      }, 
      {
        "wd": "8", 
        "tmin": "NULL", 
        "tmax": "16", 
        "wkd": "4", 
        "ts": "2015-11-19 8:00:00", 
        "wt": "03", 
        "wp": "0", 
        "te": "2015-11-19 20:00:00"
      }, 
      {
        "wd": "8", 
        "tmin": "14", 
        "tmax": "NULL", 
        "wkd": "4", 
        "ts": "2015-11-19 20:00:00", 
        "wt": "02", 
        "wp": "0", 
        "te": "2015-11-20 8:00:00"
      }, 
      {
        "wd": "8", 
        "tmin": "NULL", 
        "tmax": "19", 
        "wkd": "5", 
        "ts": "2015-11-20 8:00:00", 
        "wt": "02", 
        "wp": "0", 
        "te": "2015-11-20 20:00:00"
      }, 
      {
        "wd": "8", 
        "tmin": "15", 
        "tmax": "NULL", 
        "wkd": "5", 
        "ts": "2015-11-20 20:00:00", 
        "wt": "02", 
        "wp": "0", 
        "te": "2015-11-21 8:00:00"
      }, 
      {
        "wd": "3", 
        "tmin": "NULL", 
        "tmax": "19", 
        "wkd": "6", 
        "ts": "2015-11-21 8:00:00", 
        "wt": "03", 
        "wp": "0", 
        "te": "2015-11-21 20:00:00"
      }, 
      {
        "wd": "3", 
        "tmin": "16", 
        "tmax": "NULL", 
        "wkd": "6", 
        "ts": "2015-11-21 20:00:00", 
        "wt": "03", 
        "wp": "0", 
        "te": "2015-11-22 8:00:00"
      }, 
      {
        "wd": "3", 
        "tmin": "NULL", 
        "tmax": "20", 
        "wkd": "7", 
        "ts": "2015-11-22 8:00:00", 
        "wt": "02", 
        "wp": "0", 
        "te": "2015-11-22 20:00:00"
      }, 
      {
        "wd": "3", 
        "tmin": "NULL", 
        "tmax": "NULL", 
        "wkd": "7", 
        "ts": "2015-11-22 20:00:00", 
        "wt": "01", 
        "wp": "0", 
        "te": "2015-11-23 8:00:00"
      }
    ], 
    "rt": "2015-11-16 8:00:00"
  }, 
  "zs_yh": "3", 
  "zs_zwx": "1", 
  "sk_hd": "86", 
  "zs_ys": "2", 
  "zs_fh": "8", 
  "bi_sr": "06:21", 
  "bi_ss": "16:55", 
  "bi_lat": "31.213", 
  "zs_ly": "1", 
  "zs_te": "2015-11-17 8:00:00", 
  "sk_wd": "8", 
  "bi_long": "121.445", 
  "zs_ffz": "3", 
  "sk_ws": "0", 
  "zs_ls": "5", 
  "zs_jt": "2", 
  "zs_hz": "1", 
  "sk_wp": "0", 
  "zs_lk": "2", 
  "zs_ssd": "0", 
  "sk_wt": "02", 
  "zs_hc": "3"
};


你可能感兴趣的:(api)