CBS Gebiedsindelingen modification date

Hi,

How can I programmatically retrieve the modification date for each dataset “CBS Gebiedsindelingen WFS”, for all years from 1995 to 2025?

For example, I can view the modification date manually on this page:
:point_right: CBS Gebiedsindelingen 2025 WFS
under the “Beschrijving” tab - but I’d like to know how to access that same information programmatically.

The Nationaal Georegister uses OpenAPI, so you can retrieve the description in XML or Json. See https://www.nationaalgeoregister.nl/geonetwork/doc/api/index.html.

So in your case that would be
https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/258d470e-4807-47a1-a9d4-8e7ae02db83f
but note that

Accept header should indicate which is the appropriate format to return.

So use accept: application/json or accept: application/xml (whichever you prefer) in your headers. Modification date can be found as the Revision-date.

1 like

Thank you very much!

Each year of the CBS Gebiedsindelingen WFS dataset has its own ID that I can use to access the metadata.
For example, for 1995 the ID is: 258d470e-4807-47a1-a9d4-8e7ae02db83f

Do you know where I can find the IDs for the other years?

Well, you can find them on the pages for each dataset, so you could get them manually. But if you want to automate that as well, you’re better off using the Catalogue Service for the Web (CSW). There are some examples on that page, so that should get you going I think (if not, feel free to ask here :wink: ). You may have to use a translator, because that page is in Dutch I’m afraid.

1 like

Unfortunately, still not able to get the metadata IDs.

My idea was, check the metadata for these two datasets:

And programmatically, get the metadata ID for each service from those 2 datasets, for example, the metadata ID for

And having the Metadata ID of each service, I can check the modification date for each one.

My only blocker for now, is: How to get the metadata ID programmatically of each service from the 2 datasets