天气API接口

转载文章

天气API接口

年份
2020
分类
转载文章

已废弃
API地址:http://t.weather.sojson.com/api/weather/city/101210101

使用说明:

  1. 地址最后的“101210101”代表杭州
  2. 想要测试自己城市,把最后的101210101换成自己的城市代码(city_code)即可
[

  {

    "id": 1,

    "pid": 0,

    "city_code": "101010100",

    "city_name": "北京",

    "post_code": "100000",

    "area_code": "010",

    "ctime": "2019-07-11 17:30:06"

  },

  {

    "id": 2,

    "pid": 0,

    "city_code": "",

    "city_name": "安徽",

    "post_code": null,

    "area_code": null,

    "ctime": null

  }
]