License

Usage
When using data from NILU API the following conditions must be met:

Contents
The contents retrieved from NILU API https://api.nilu.no cannot be modified, but can be combined with other data sets.

Acknowledgements
The contents retrieved from NILU API https://api.nilu.no/ must refer to www.luftkvalitet.info and www.nilu.no



Responses

The api supports content-types application/json and application/xml.
Either set the Content-Type in the request header or force it as an option in the url to get the response type you want.

Example of setting Content-Type through the url:

GET /aq/utd.json



Up to date data

Gets the last measured value and index within the last 3 hours.
Only valid data are shown.
Sometimes a station or a timeseries can be "turned off" because of maintenance. Data will not be available when this is the case.

GET /aq/utd

Filter areas=[area1;area2;...]&stations=[station1;station2;...]&components=[component1;component2;...]&within=[lat;lng;radius]&nearest=[lat;lng;radius]



Historical data (BETA - Changes may occur)

Gets the measured values and index between to dates.
Please use the following datetime format: yyyy.mm.dd.
Add hh24:mi to the date if you want to specify hours.
Only valid data are shown.
One component and maximum 6 months per request is enabled.
If you select a date within 3 hours of the current time, some stations or a timeseries can be "turned off" because of maintenance. Data will not be available when this is the case.

GET /aq/historical/[component]?fromtime=[yyyy.mm.dd hh24:mi]&totime=[yyyy.mm.dd hh24:mi]

Filter areas=[area1;area2;...]&[stations=station1;station2;...]&within=[lat;lng;radius]&nearest=[lat;lng;radius]



Forecast data

Gets the forecasted index for today and tomorrow.
Forecast is not available all year. Typically they are created in the period from October to end of April.
There may also not be a forecast for all the areas you can get utd data for.

GET /aq/forecast

Filter areas=[area1;area2;...]



Areas lookup

Gets all available areas.

GET /lookup/areas



Station lookup

Gets all available stations.

GET /lookup/stations



Component lookup

Gets all available components.

GET /lookup/components



AQI lookup

Gets range and description per component.

GET /lookup/aqis