C:查询天津当前限行
HTTP GET
http://elef.top/weather/carlimit_tianjin.php
限号返回 |
{"status": "1" ,"todaylimit":[4,9],"update":"2019-03-28 14:32:15"}
|
不限号 |
{"status": "1" ,"todaylimit":[],"update":"2019-03-30 11:00:00"}
|
A:查询实时PM2.5接口
HTTP GET
http://elef.top/weather/pm.php?city=tianjin
支持city代码
- 天津市
- tianjin
返回结果 { "city":"天津","memo":"二级(良)","pm25":"33","pm10":"61","unit":"μg/m3","update":"2019-03-28 13:00:00"}
B1:查询天气接口(实时)
HTTP GET
http://elef.top/weather/now.php?city=120000
返回结果{"status":"1","count":"1","info":"OK","infocode":"10000","lives":[{"province":"天津","city":"天津市","adcode":"120000","weather":"阴","temperature":"8","winddirection":"东南","windpower":"≤3","humidity":"22","reporttime":"2019-03-28 13:56:19"}]}
B2:查询天气接口(预报)
HTTP GET
http://elef.top/weather/forecast.php?city=120000
支持city代码
- 天津市
- 120000
- 天津市市辖区
- 120100
- 和平区
- 120101
- 河东区
- 120102
- 河西区
- 120103
- 南开区
- 120104
- 河北区
- 120105
- 红桥区
- 120106
- 东丽区
- 120110
- 西青区
- 120111
- 津南区
- 120112
- 北辰区
- 120113
- 武清区
- 120114
- 宝坻区
- 120115
- 滨海新区
- 120116
- 宁河区
- 120117
- 静海区
- 120118
- 蓟州区
- 120119
关于更多数据格式说明,点击这里