A python package to use the Luchtmeetnet 2020 OpenAPI.
$ pip3 install pyluchtmeetnet
from pyluchtmeetnet import Luchtmeetnet
latitude = 52.0808
longitude = 4.3063
lmn = Luchtmeetnet()
# Get nearest station
station = lmn.get_nearest_station_data(latitude, longitude)
print(station)
# Get latest LKI from station
lki = lmn.get_latest_station_lki(station["number"])
print(lki)
# Get latest measurements from station
measurements = lmn.get_latest_station_measurements(station["number"])
print(measurements)