Open Government, Switzerland API
Overview
The Switzerland Open Government Data API (opendata.swiss) provides a CKAN-based catalog of datasets from Swiss federal, cantonal, and municipal authorities. No API key is required, and it supports search, filtering, and direct dataset access. It is a reliable source for Swiss statistics, geography, and government records.
Beginner Tip
Use the CKAN API endpoint at opendata.swiss/api/3/action/ — start with package_list to see all dataset IDs, then use package_show?id=DATASET_ID to get download links for a specific dataset.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Open Government, Switzerland",
"description": "Switzerland Government Open Data",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
success Indicates whether the API action completed successfully result.results Array of dataset objects matching the search query result.count Total number of datasets matching the query result.results[].title Multilingual dataset title keyed by language code (de, fr, it, en) result.results[].resources List of downloadable files with format, url, and description Implementation Example
const url = "https://handbook.opendata.swiss/de/content/nutzen/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Bank Negara Malaysia Open Data
⭐ Beginner's PickBank Negara Malaysia Open Data provides free access to official financial data published by Malaysia's central bank, including exchange rates, interest rates, and key economic indicators.
BCLaws
BCLaws gives you free access to the full text of British Columbia's laws and regulations.
Brazil
⭐ Beginner's PickBrasilAPI is a free, community-driven API that centralizes public data about Brazil in one easy-to-use place.
Brazil Central Bank Open Data
The Brazil Central Bank Open Data API provides free access to official financial and economic data from Brazil s central bank (Banco Central do Brasil).
Brazil Receita WS
Brazil Receita WS lets you look up official information about Brazilian companies using their CNPJ (tax registration number).