监测站数据
监测站数据API提供各个国家或地区监测站的污染物浓度值。
警告: 监测站的观测值仅供参考,可能由于故障、移除、维护或当地法律法规等各种原因导致数据延迟或缺失,我们无法确保该数据的可用性。
请求路径#
GET /airquality/v1/stations/{locationId}参数#
路径参数
-
locationId(必选) 空气质量监测站的LocationID,LocationID可通过GeoAPI获取。例如P58911
查询参数
-
lang多语言设置,请阅读多语言文档,了解我们的多语言是如何工作、如何设置以及数据是否支持多语言。
请求示例#
curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your-api-host/airquality/v1/stations/P58911?lang=zh'
请将your_token替换为你的JWT身份认证,将your_api_host替换为你的API Host
返回数据#
{
"metadata": {
"tag": "71f704ff6230d81546fee77b35952f0ec55bbdc7255eacd974a85006b7c1834f",
"attributions": [
"https://developer.qweather.com/attribution.html"
]
},
"pollutants": [
{
"code": "pm2p5",
"name": "PM 2.5",
"fullName": "Fine particulate matter (<2.5µm)",
"concentration": {
"value": 17.0,
"unit": "μg/m3"
}
},
{
"code": "pm10",
"name": "PM 10",
"fullName": "Inhalable particulate matter (<10µm)",
"concentration": {
"value": 47.0,
"unit": "μg/m3"
}
},
{
"code": "no2",
"name": "NO2",
"fullName": "Nitrogen dioxide",
"concentration": {
"value": 29.0,
"unit": "μg/m3"
}
},
{
"code": "o3",
"name": "O3",
"fullName": "Ozone",
"concentration": {
"value": 45.73,
"unit": "μg/m3"
}
}
]
}
-
metadataobject 当前响应的元数据-
tagstring 数据唯一标识 -
attributionsarray 数据归因信息,必须与当前数据共同显示
-
-
pollutantsarray 污染物列表-
codestring 污染物的Code -
namestring 污染物的名字 -
fullNamestring 污染物的全称 -
concentrationobject 污染物的浓度值,可能为空-
valuenumber 数值 -
unitstring 单位
-
-