| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
domain |
string | 必填 | air |
数据领域,首期仅 air(空气质量);water/hydro 即将上线 |
action |
string | 必填 | - | 查询动作:stations(站点目录)/ station_data(站点明细,需 city+station_name)/ city_data(城市综合,需 province+city)/ merged(合并查询) |
province |
string | 选填 | - | 省份(city_data 必填;stations/merged 选填过滤) |
city |
string | 选填 | - | 地市(station_data/city_data 必填;stations/merged 选填过滤) |
station_name |
string | 选填 | - | 站点名称(station_data 必填,可先用 action=stations 查询) |
start_time |
string | 选填 | - | 起始时间,格式 YYYY-MM-DD HH:00:00(选填,默认近一月) |
end_time |
string | 选填 | - | 结束时间,格式 YYYY-MM-DD HH:00:00(选填) |
page |
int | 选填 | 1 |
页码,默认1,每页100条 |
| 字段名 | 类型 | 说明 |
|---|---|---|
code | int | 状态码,0=成功 |
desc | string | 状态描述 |
data− |
object | 业务数据(成功时返回) |
domain |
string | 数据领域回显 |
action |
string | 查询动作回显 |
record_count |
int | 本页返回条数 |
total_count |
int | 总条数 |
total_page |
int | 总页数 |
current_page |
int | 当前页码 |
cost |
float | 本次上游成本(元,按条数×0.001) |
data_source_notice |
string | 数据来源合规声明 |
list− |
array | 数据数组,结构随 action 不同(stations 为站点目录,其余为监测数据) |
province |
string | 省份 |
city |
string | 城市 |
station |
string | 站点名称(stations/station_data) |
aqi |
float | 空气质量指数(非 stations 档) |
quality |
string | 空气质量等级 |
primary_pollutant |
string | 首要污染物(—表示无) |
pubtime |
string | 发布时间 |
so2 |
float | 二氧化硫浓度 |
no2 |
float | 二氧化氮浓度 |
co |
float | 一氧化碳浓度(可为 null) |
o3 |
float | 臭氧浓度 |
pm10 |
float | PM10 浓度 |
pm2_5 |
float | PM2.5 浓度 |
station_code |
string | 站点编码(station_data) |
district |
string | 区县(station_data) |
longitude |
float | 经度(station_data) |
latitude |
float | 纬度(station_data) |
request_id | string | 请求追踪ID |
{
"code": 0,
"desc": "success",
"data": { ... },
"request_id": "abc123..."
}
{
"code": 999,
"desc": "错误描述",
"request_id": "abc123..."
}
© 网程科技(林州网程科技有限公司) | 豫ICP备2025120409号-2 | 豫B2-20230220 | 豫公网安备 41058102000262号