DanskAdresseAPIv1
Miljø og støj

Air quality at a coordinate

Modelled air quality (annual mean, µg/m³) for the 1 km cell the point falls in. Give either lat+lon (WGS84) or x+y (EPSG:25832). Each pollutant is returned with the national mean, minimum and maximum, so the value can be read in relation to the rest of the country. If the point lies outside the model area: 404. Source: DCE — Aarhus University, via the Danish Environmental Portal (CC BY 4.0).

GET/v1/luftkvalitet

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

latnumberquery

Latitude in WGS84 (EPSG:4326).

lonnumberquery

Longitude in WGS84 (EPSG:4326).

xnumberquery

X coordinate in the coordinate system given by srid.

ynumberquery

Y coordinate in the coordinate system given by srid.

fieldsstringquery

Comma-separated list of fields to include in the response (sparse fieldset). Omitted = all fields.

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/v1/luftkvalitet" \
  --header "Authorization: Bearer $API_NOEGLE"

Response

application/json

Luftkvalitet for cellen

o3object | null
aarinteger
no2object | null
pm10object | null
pm25object | null
celleobject
kildestring
licensstring
200Eksempel
{
  "o3": {},
  "aar": 0,
  "no2": {},
  "pm10": {},
  "pm25": {},
  "celle": {},
  "kilde": "…",
  "licens": "…"
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}