Air Quality
Overview
The Air Quality API returns current conditions and hourly forecasts for air pollutants, AQI indices, and pollen levels. Data is sourced from the Copernicus Atmosphere Monitoring Service (CAMS).
Endpoint
GET /air-quality/{lat},{lon}Parameters
Parameter | Required | Default | Description |
|---|---|---|---|
| Yes | — | Latitude and longitude as path parameter (e.g. |
Example Request
GET /air-quality/47.37,8.55
Example Response
{
"latitude": 47.37,
"longitude": 8.55,
"timezone": "UTC",
"current": {
"time": 1709132400,
"europeanAqi": 42,
"usAqi": 58,
"pm25": 12.5,
"pm10": 18.3,
"ozone": 68.2,
"nitrogenDioxide": 15.8,
"sulphurDioxide": 3.2,
"carbonMonoxide": 245.6
},
"hourly": {
"data": [
{
"time": 1709132400,
"europeanAqi": 42,
"usAqi": 58,
"pm25": 12.5,
"pm10": 18.3,
"ozone": 68.2,
"nitrogenDioxide": 15.8,
"sulphurDioxide": 3.2,
"carbonMonoxide": 245.6
}
]
}
}Response Fields
current / hourly data
Field | Type | Unit | Description |
|---|---|---|---|
| integer | — | Unix timestamp |
| integer | — | European Air Quality Index (0–500) |
| integer | — | US Air Quality Index (0–500) |
| float | µg/m³ | Fine particulate matter (PM2.5) |
| float | µg/m³ | Coarse particulate matter (PM10) |
| float | µg/m³ | Ground-level ozone (O₃) |
| float | µg/m³ | Nitrogen dioxide (NO₂) |
| float | µg/m³ | Sulphur dioxide (SO₂) |
| float | µg/m³ | Carbon monoxide (CO) |
Additional fields (CAMS Europe only)
These fields are only available for European locations:
Field | Type | Unit | Description |
|---|---|---|---|
| float | — | Dust aerosol optical depth |
| float | µg/m³ | Birch pollen concentration |
| float | µg/m³ | Grass pollen concentration |
| float | µg/m³ | Olive pollen concentration |
| float | µg/m³ | Ragweed pollen concentration |
| float | µg/m³ | Alder pollen concentration |
| float | µg/m³ | Mugwort pollen concentration |
Errors
Status | Description |
|---|---|
| Invalid coordinates or parameters |
| Invalid API key |
| Rate limit exceeded |
| Air quality data not loaded |