Using the CKAN API

Brief Description

CKAN is an open source data catalogue software (project website: https://ckan.org/ ). We use CKAN for our data collection https://data.opentransportdata.swiss/.

Through the CKAN API, the metadata of our datasets and APIs (e.g. download links, update date, etc.) can be retrieved and used as needed.

Functional Description

We maintain all of our approximately 90 datasets (1000+ resources or files) as well as our APIs in CKAN. CKAN stores a range of metadata about the datasets and resources, including:

  • Names (titles) and short descriptions of records and resources
  • Creation and updating date and time
  • Media types (mime types)
  • Permalinks, download links and links to documentation (Cookbook)

This metadata is displayed on the web pages. It can also be accessed via the CKAN API and used in an application.

Technical Description

An API key is required to access the API. See instructions here:

https://opentransportdata.swiss/de/cookbook/development-miscellaneous-cookbook/howto-access-apis/

The API is a simple REST API. Essentially, these two endpoints can be used:

The responses are formatted in JSON. The responses and content are largely self-explanatory.

Please note

Further information

 

 

#AutoTranslate