## 接口说明
> 服务简介:
> 空气质量指数提供实时空气质量情况,目前支持全国161个城市;服务支持功能包括:实时查询空气质量,小时粒度;实时给出空气质量AQI指数,并给出空气质量级别和首要污染物
## 接口定义
+++
get:/apistore/aqiservice/aqi
*cityname#城市名称
<<<
success
{
"errNum": 0,
"retMsg": "success",
"retData": {
"city": "洛阳",
"time": "2015-09-09T16:00:00Z",
"aqi": 77,
"level": "良",
"core": "颗粒物(PM10)"
}
}
<<<
error
{
"errNum": 0,
"retMsg": "success",
"retData": []
}
+++
## 完整代码
下面是本接口示例的完整定义代码:
~~~
+++
get:/apistore/aqiservice/aqi
*cityname#城市名称
<<<
success
{
"errNum": 0,
"retMsg": "success",
"retData": {
"city": "洛阳",
"time": "2015-09-09T16:00:00Z",
"aqi": 77,
"level": "良",
"core": "颗粒物(PM10)"
}
}
<<<
error
{
"errNum": 0,
"retMsg": "success",
"retData": []
}
+++
~~~