Version 0

Version 0 of the API is not considered stable, and it may change in backwards-incompatible ways without notice.

Base URL: https://api.ov.duinn.nl

GET /api/v0/emissions?...

Returns raw emission data. Output format is not yet properly documented. Just eyeball it for now. Query parameters:

format (deprecated alias: output)

group_by

time_period

Deprecated: use years=all or months=all instead.

years

years and months are mutually exclusive.

months

years and months are mutually exclusive.

transport_type

Comma separated list of:

Values should be specified in lowercase, but are case insensitive for backwards compatibility.

Requesting just one transport type removes that nesting level from the JSON output (for backwards compatibility).

fields

GET /api/v0/emissions/graph?...

Plots the data in a chart. Query parameters:

group_by, time_period

Same as above.

y_axis

The name of the data column to plot (default: numTrips).

Example

https://api.ov.duinn.nl/api/v0/emissions?output=csv&group_by=concession&time_period=month

License

This data is published under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license:

For attribution, the following is acceptable:

Duinn, Openbaar Vervoer OpenData, 2019 (https://ov.duinn.nl)

If you would like to use this data under different license terms, please contact us.