Search Swiss open-data catalogues
search_datasetsSearch national and Zürich open-data catalogues by keyword, publisher, format, or date to locate datasets, then retrieve their metadata or queryable rows.
Instructions
Full-text search over the national open-data catalogue opendata.swiss (default) or the City of Zürich portal (portal='stadt-zuerich'): statistics (population, prices, energy…), geodata, transport, health and more. Each hit lists its resource formats and whether it is queryable (has CSV/JSON/GeoJSON). Filter by publisher (slug from list_data_publishers), by format (e.g. 'CSV'), sort by 'modified' for the newest. Then call query_dataset {id} for the actual rows, or get_dataset {id} for metadata. Examples: {query: 'Mietpreisindex'}, {query: 'Bevölkerung Gemeinde', format: 'CSV'}, {publisher: 'bundesamt-fur-statistik-bfs', sort: 'modified'}, {query: 'Velo', portal: 'stadt-zuerich'}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_datasets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language for titles/descriptions: de, fr, it or en (default en; falls back to de) | |
| sort | No | relevance (default), modified (newest updates first), created, name | |
| limit | No | ||
| query | No | Search terms, e.g. 'rent index', 'STATPOP', 'Luftqualität'. German terms match best. Optional if publisher/format is given | |
| format | No | Only datasets with a resource of this format, e.g. 'CSV', 'JSON', 'GeoJSON', 'XLSX' | |
| offset | No | Skip this many hits (paging) | |
| portal | No | Catalogue: 'opendata.swiss' (default, national), 'stadt-zuerich' (City of Zürich, data.stadt-zuerich.ch) or 'envidat' (WSL/ETH environmental research data: snow, glaciers, forests, biodiversity, climate) | |
| publisher | No | Optional publisher (organization) slug, e.g. 'bundesamt-fur-statistik-bfs'; see list_data_publishers |