中国气象台API(2017.09)

中国气象台网站淘来的接口,找到的有:获取地方code的接口,某地方的实时天气接口,以及某地方今明两日的天气接口。


json格式,utf-8编码。


获取省级列表,后面会用到相应的“code”值:

http://www.nmc.cn/f/rest/province

[{"code":"ABJ",
"name":"北京市",
"url":"/publish/forecast/ABJ.html"},
{"code":"ATJ",
"name":"天津市",
"url":"/publish/forecast/ATJ.html"},
{"code":"AHE",
"name":"河北省",
"url":"/publish/forecast/AHE.html"},
{"code":"ASX",
"name":"山西省",
"url":"/publish/forecast/ASX.html"},
{"code":"ANM",
"name":"内蒙古自治区",
"url":"/publish/forecast/ANM.html"},
{"code":"ALN",
"name":"辽宁省",
"url":"/publish/forecast/ALN.html"},
{"code":"AJL",
"name":"吉林省",
"url":"/publish/forecast/AJL.html"},
{"code":"AHL",
"name":"黑龙江省",
"url":"/publish/forecast/AHL.html"},
{"code":"ASH",
"name":"上海市",
"url":"/publish/forecast/ASH.html"},
{"code":"AJS",
"name":"江苏省",
"url":"/publish/forecast/AJS.html"},
{"code":"AZJ",
"name":"浙江省",
"url":"/publish/forecast/AZJ.html"},
{"code":"AAH",
"name":"安徽省",
"url":"/publish/forecast/AAH.html"},
{"code":"AFJ",
"name":"福建省",
"url":"/publish/forecast/AFJ.html"},
{"code":"AJX",
"name":"江西省",
"url":"/publish/forecast/AJX.html"},
{"code":"ASD",
"name":"山东省",
"url":"/publish/forecast/ASD.html"},
{"code":"AHA",
"name":"河南省",
"url":"/publish/forecast/AHA.html"},
{"code":"AHB",
"name":"湖北省",
"url":"/publish/forecast/AHB.html"},
{"code":"AHN",
"name":"湖南省",
"url":"/publish/forecast/AHN.html"},
{"code":"AGD",
"name":"广东省",
"url":"/publish/forecast/AGD.html"},
{"code":"AGX",
"name":"广西壮族自治区",
"url":"/publish/forecast/AGX.html"},
{"code":"AHI",
"name":"海南省",
"url":"/publish/forecast/AHI.html"},
{"code":"ACQ",
"name":"重庆市",
"url":"/publish/forecast/ACQ.html"},
{"code":"ASC",
"name":"四川省",
"url":"/publish/forecast/ASC.html"},
{"code":"AGZ",
"name":"贵州省",
"url":"/publish/forecast/AGZ.html"},
{"code":"AYN",
"name":"云南省",
"url":"/publish/forecast/AYN.html"},
{"code":"AXZ",
"name":"西藏自治区",
"url":"/publish/forecast/AXZ.html"},
{"code":"ASN",
"name":"陕西省",
"url":"/publish/forecast/ASN.html"},
{"code":"AGS",
"name":"甘肃省",
"url":"/publish/forecast/AGS.html"},
{"code":"AQH",
"name":"青海省",
"url":"/publish/forecast/AQH.html"},
{"code":"ANX",
"name":"宁夏回族自治区",
"url":"/publish/forecast/ANX.html"},
{"code":"AXJ",
"name":"新疆维吾尔自治区",
"url":"/publish/forecast/AXJ.html"},
{"code":"AXG",
"name":"香港特别行政区",
"url":"/publish/forecast/AXG.html"},
{"code":"AAM",
"name":"澳门特别行政区",
"url":"/publish/forecast/AAM.html"},
{&
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值