daten.sg.ch
Open data portalsCHdaten.sg.ch
OpenDataSoft open data portal daten.sg.ch (199 datasets); example dataset: Heftikarte (WMS).
Capabilities (4)
GET /v1/data/daten-sg-ch/dataset1 creditOne dataset's full metadata: title, description, theme, publisher, licence, record count and the complete field list with types and labels.
GET /v1/data/daten-sg-ch/datasets1 creditSearch over the portal's catalogue: matching datasets with id, title, description, theme, publisher and the fields each dataset exposes, plus the total match count.
GET /v1/data/daten-sg-ch/facets1 creditFacet value counts for one dataset: the distinct values of each faceted field with how many records carry them.
GET /v1/data/daten-sg-ch/records1 creditA page of up to 100 records from one dataset as JSON objects keyed by field name, with the total record count for the query.
Response example
The shape of data from daten-sg-ch/dataset (Dataset metadata). A sample, not live data.
{
"visibility": "domain",
"fields": [],
"dataset_id": "heftikarte-wms",
"dataset_uid": "da_kx0w2h",
"has_records": false,
"features": [],
"attachments": [],
"alternative_exports": [],
"data_visible": true,
"metas": {
"default": {
"title": "Heftikarte (WMS)",
"title_de": "Heftikarte (WMS)",
"title_en": "Heftikarte (WMS)",
"title_it": "Heftikarte (WMS)",
"description": "Karte des Kantons St.Gallen 1:25000 (Heftikarte), entstanden 1902.",
"description_de": "Karte des Kantons St.Gallen 1:25000 (Heftikarte), entstanden 1902.",
"description_en": "Karte des Kantons St.Gallen 1:25000 (Heftikarte), entstanden 1902.",
"description_it": "Karte des Kantons St.Gallen 1:25000 (Heftikarte), entstanden 1902.",
"theme": [
"Geographie",
"Raum und Umwelt"
],
"theme_de": [
"Geographie",
"Raum und Umwelt"
],
"theme_en": [
"Geography",
"Territory and environment"
],
"theme_it": [
"Geography",
"Territory and environment"
],
"keyword": [
"historische-karte"
],
"keyword_de": [
"historische-karte"
],
"keyword_en": [
"historische-karte"
],
"keyword_it": [
"historische-karte"
],
"license": "CC BY",
"license_de": "CC BY",
"license_en": "CC BY",
"license_it": "CC BY",
"license_url": "https://creativecommons.org/licenses/by/4.0/",
"license_url_de": "https://creativecommons.org/licenses/by/4.0/",
"license_url_en": "https://creativecommons.org/licenses/by/4.0/",
"license_url_it": "https://creativecommons.org/licenses/by/4.0/",
"language": "de",
"modified": "2026-08-20T04:00:26+00:00",
"publisher": "Amt für Raumentwicklung und Geoinformation",
"publisher_de": "Amt für Raumentwicklung und Geoinformation",
"publisher_en": "Amt für Raumentwicklung und Geoinformation",
"publisher_it": "Amt für Raumentwicklung und Geoinformation",
"references": "https://metadata.geo.sg.ch/produkte/72, https://services.geo.sg.ch/wss/service/SG00072_WMS/guest?request=GetCapabilities&service=WMS",
"attributions": null,
"update_frequency": null,
"bbox": null,
"data_processed": null,
"federated": false,
"geographic_reference": null,
"geographic_reference_auto": null,
"geometry_types": null,
"metadata_languages": [
"de"
],
"metadata_processed": "2026-10-23T04:00:39.038000+00:00",
"modified_updates_on_data_change": false,
"modified_updates_on_metadata_change": false,
"parent_domain": null,
"records_count": 0,
"shared_catalog": null,
"source_dataset": null,
"source_domain": null,
"source_domain_address": null,
"source_domain_title": null,
"territory": null,
"timezone": "Europe/Zurich"
},
"custom": {
"jahre": null,
"publizierende-organisation": null,
"tags": null
},
"dcat": {
"accessRights": null,
"accrualperiodicity": "http://publications.europa.eu/resource/authority/frequency/UNKNOWN",
"conforms_to": null,
"contact_email": "geodaten@sg.ch",
"contact_name": "Amt für Raumentwicklung und Geoinformation",
"contributor": null,
"created": "2016-09-07",
"creator": "Amt für Raumentwicklung und Geoinformation (AREG) Kanton St. Gallen",
"dataquality": null,
"granularity": null,
"issued": "2020-04-06",
"publisher_type": null,
"relation": null,
"spatial": null,
"temporal": null,
"temporal_coverage_end": null,
"temporal_coverage_start": null
},
"dcat_ap_ch": {
"domain": "amt-fuer-raumentwicklung-und-geoinformation-areg-kanton-st-gallen",
"license": null,
"rights": "NonCommercialAllowed-CommercialAllowed-ReferenceRequired"
}
}
}Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Dataset metadata
Use daten.sg.ch (daten-sg-ch) from fastCRW Pergamon, capability "Dataset metadata" (dataset). You have a dataset id and need its schema, licence or record count before querying it. Example options: id=heftikarte-wms. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "daten-sg-ch" and capability "dataset". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset search
Use daten.sg.ch (daten-sg-ch) from fastCRW Pergamon, capability "Dataset search" (datasets). You want to find datasets on this portal by keyword or theme and do not know a dataset id. Example options: where=theme='Transport', order_by=modified desc, offset=0. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "daten-sg-ch" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset facets
Use daten.sg.ch (daten-sg-ch) from fastCRW Pergamon, capability "Dataset facets" (facets). You want to know the value distribution of a dataset's categorical fields without downloading rows. Example options: id=heftikarte-wms. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "daten-sg-ch" and capability "facets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Dataset records
Use daten.sg.ch (daten-sg-ch) from fastCRW Pergamon, capability "Dataset records" (records). You want the actual rows of a dataset, optionally filtered, sorted, grouped or narrowed to selected fields. Example options: id=heftikarte-wms, select=count(*) as n, where=1=1. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "daten-sg-ch" and capability "records". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
Datasets on this portal declare the licence "CC BY" (https://creativecommons.org/licenses/by/4.0/). Licence is attached per dataset by its publisher; the portal states no separate API licence. Quoted from the dataset metadata returned by the catalogue API.
https://creativecommons.org/licenses/by/4.0/Attribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: daten.sg.ch (Amt für Raumentwicklung und Geoinformation).
Cache: up to 3600s
