Public APIs
Open Government, Switzerland favicon

Open Government, Switzerland

Government

Switzerland Government Open Data.

Open Government, Switzerland's website screenshot

About Open Government, Switzerland

opendata.swiss is a Swiss open government data portal built on the open-source CKAN platform, which exposes a REST API for accessing the metadata of its open data catalog. The API can be reached through a browser, the command line (e.g. cURL), or specialized tools such as ckanapi, with all requests structured around a base URL followed by an action name and optional parameters. Responses are returned as JSON objects containing a help link, a success flag, and a result field holding the requested data.

The API follows CKAN's action-based model, where most platform functions are exposed as callable actions, and search queries use Apache Lucene syntax via the underlying Apache Solr search engine. Metadata is organized across organization, dataset, and resource levels, with documented fields such as dataset title, publisher, organization, update frequency, and resource details including download URL, format, and usage rights.

This resource is intended for application developers who want to programmatically search, retrieve, or integrate Swiss open government data into their own software rather than browse it through the web interface. The handbook page provides an introductory guide, with a link to the fuller CKAN API documentation for further reference.

Key features

  • CKAN-based Action API for querying open government dataset metadata
  • Search datasets and resources using Apache Lucene/Solr syntax
  • Access via browser, command line (cURL), or the ckanapi tool
  • Responses returned as JSON objects with help, success, and result fields
  • Dataset and resource-level metadata including publisher, organization, format, and download URLs

Frequently asked questions

Is the opendata.swiss API free to use?

The page does not state a pricing model; it describes public access to open government metadata via the API.

What technology powers the API?

opendata.swiss is built on the open-source CKAN platform, which provides an extensive API for the metadata of the open data catalog.

How do I access the API?

You can access it via a browser, the command line using cURL, or specialized tools like ckanapi, using the base URL https://ckan.opendata.swiss/api/3/action/.

What kind of data can I query?

You can search all metadata in opendata.swiss, including organization, dataset, and resource-level metadata such as publisher, format, and download URL.

Who is this API for?

It is intended for application developers who want to programmatically interact with the metadata on the opendata.swiss platform.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product