Current Air Quality
The Current Air Quality API provides real-time air quality data worldwide for a specified location at 1-kilometer resolution, including:
- AQI, category, color and primary pollutant based on local standards for each country or region
- Generic QWeather AQI
- Pollutant concentrations and sub-indexes
- Health guidance
Endpoint#
GET /airquality/v1/current/{latitude}/{longitude}Parameters#
Path parameters
-
latitude requirednumberLatitude of the requested location in decimal degrees
-
longitude requirednumberLongitude of the requested location in decimal degrees
Query parameters
-
langstringLanguage setting. See Language for behavior, configuration, and data availability
Request example#
curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your-api-host/airquality/v1/current/39.92/116.41'
Replace your_token and your_api_host with your JWT Authentication and API Host
Response#
{
"metadata": {
"tag": "d75a323239766b831889e8020cba5aca9b90fca5080a1175c3487fd8acb06e84",
"attributions": [
"https://developer.qweather.com/attribution.html"
]
},
"indexes": [
{
"code": "us-epa",
"name": "AQI (US)",
"aqi": 46,
"aqiDisplay": "46",
"level": "1",
"category": "Good",
"color": {
"red": 0,
"green": 228,
"blue": 0,
"alpha": 1
},
"primaryPollutant": {
"code": "pm2p5",
"name": "PM 2.5",
"fullName": "Fine particulate matter (<2.5µm)"
},
"health": {
"effect": "No health effects.",
"advice": {
"generalPopulation": "Everyone can continue their outdoor activities normally.",
"sensitivePopulation": "Everyone can continue their outdoor activities normally."
}
}
},
{
"code": "qaqi",
"name": "QAQI",
"aqi": 0.9,
"aqiDisplay": "0.9",
"level": "1",
"category": "Excellent",
"color": {
"red": 80,
"green": 240,
"blue": 230,
"alpha": 1
},
"primaryPollutant": {
"code": "pm2p5",
"name": "PM 2.5",
"fullName": "Fine particulate matter (<2.5µm)"
},
"health": {
"effect": "No health implications.",
"advice": {
"generalPopulation": "Enjoy your outdoor activities.",
"sensitivePopulation": "Enjoy your outdoor activities."
}
}
}
],
"pollutants": [
{
"code": "pm2p5",
"name": "PM 2.5",
"fullName": "Fine particulate matter (<2.5µm)",
"concentration": {
"value": 11.0,
"unit": "μg/m3"
},
"subIndexes": [
{
"code": "us-epa",
"aqi": 46,
"aqiDisplay": "46"
},
{
"code": "qaqi",
"aqi": 0.9,
"aqiDisplay": "0.9"
}
]
},
{
"code": "pm10",
"name": "PM 10",
"fullName": "Inhalable particulate matter (<10µm)",
"concentration": {
"value": 12.0,
"unit": "μg/m3"
},
"subIndexes": [
{
"code": "us-epa",
"aqi": 12,
"aqiDisplay": "12"
},
{
"code": "qaqi",
"aqi": 0.5,
"aqiDisplay": "0.5"
}
]
},
{
"code": "no2",
"name": "NO2",
"fullName": "Nitrogen dioxide",
"concentration": {
"value": 6.77,
"unit": "ppb"
},
"subIndexes": [
{
"code": "us-epa",
"aqi": 7,
"aqiDisplay": "7"
},
{
"code": "qaqi",
"aqi": 0.1,
"aqiDisplay": "0.1"
}
]
},
{
"code": "o3",
"name": "O3",
"fullName": "Ozone",
"concentration": {
"value": 0.02,
"unit": "ppb"
},
"subIndexes": [
{
"code": "us-epa",
"aqi": 21,
"aqiDisplay": "21"
},
{
"code": "qaqi",
"aqi": 0.2,
"aqiDisplay": "0.2"
}
]
},
{
"code": "co",
"name": "CO",
"fullName": "Carbon monoxide",
"concentration": {
"value": 0.25,
"unit": "ppm"
},
"subIndexes": [
{
"code": "us-epa",
"aqi": 3,
"aqiDisplay": "3"
},
{
"code": "qaqi",
"aqi": 0.1,
"aqiDisplay": "0.1"
}
]
}
],
"stations": [
{
"id": "P51762",
"name": "North Holywood"
},
{
"id": "P58056",
"name": "Pasadena"
},
{
"id": "P57327",
"name": "Los Angeles - N. Main Street"
}
]
}
-
metadataobjectMetadata for this response
-
tagstringUnique data identifier
-
attributionsarrayData attribution or statements that must be displayed with the response data
-
-
indexesarrayAir quality index list. See Supported AQIs
-
codestringAir quality index code
-
namestringName of air quality index
-
aqinumberNumeric air quality index value, including a numeric conversion when the standard value contains non-numeric characters, for use in calculations
-
aqiDisplaystringStandard display value of the air quality index, which may contain non-numeric characters and is recommended for display to users
-
levelstringLevel of air quality index
-
categorystringCategory of air quality index
-
colorobjectRGBA color for the air quality index
-
rednumberRed component, range [0, 255]
-
greennumberGreen component, range [0, 255]
-
bluenumberBlue component, range [0, 255]
-
alphanumberAlpha component, range [0, 1]
-
-
primaryPollutantobjectThe primary pollutant is the main component responsible for the current air pollution
-
codestringPrimary pollutant code
-
namestringName of primary pollutant
-
fullNamestringFull name of primary pollutant
-
-
healthobjectAir quality health effects and guidance for the general and sensitive populations
-
effectstringHealth effects of air quality, maybe NULL
-
adviceobjectHealth advice, may be NULL
-
generalPopulationstringHealth advice for general population, maybe NULL
-
sensitivePopulationstringHealth advice for sensitive population, maybe NULL
-
-
-
-
pollutantsarrayPollutant list
-
codestringPollutant code. Available values:
pm10,pm2p5,co,no,no2,so2,o3, andnmhc -
namestringName of pollutant
-
fullNamestringFull name of pollutant
-
concentrationobjectConcentration of pollutant
-
valuenumberValue
-
unitstring
-
-
subIndexesarrayAir quality sub-indexes for the pollutant. The highest pollutant sub-index generally determines the current AQI and the primary pollutant
-
codestringAir quality index code associated with the sub-index
-
aqinumberSub-index value for pollutant
-
aqiDisplaystringSub-index for display
-
-