Skip to main content
fastCRW Pergamon
Government · CH

opendata.fr.ch

opendata.fr.ch

OpenDataSoft open data portal opendata.fr.ch (125 datasets); example dataset: Énergie solaire, dès 2020.

Showing the catalogue

1Request

The `dataset_id` used in this portal's URLs (slug-like, may contain dots and dashes).

1 credit⌘ ↵
Code follows the fields above
curl "https://api.fastcrw.com/v1/data/opendata-fr-ch/dataset?id=08_02_energie_solaire" \
  -H "Authorization: Bearer $FASTCRW_API_KEY"

2Response example

A sample shape. Press Run to see live data from opendata.fr.ch.

namedescriptionannotationslabeltypelabel_frlabel_dedescription_fr
year{"timeserie_precision":"year"}AnnéedateAnnéeJahr
country{}Niveau géographiquetextNiveau géographiqueGeografische Ebene
solar_potential_usage{}Taux d’exploitation du potentiel solairedoubleTaux d’exploitation du potentiel solaireAusschöpfungsgrad des Solarpotenzials
solar_power_installed_kwp{}Puissance des installations photovoltaïques, en kWpintPuissance des installations photovoltaïques, en kWpLeistung der Photovoltaikanlagen, in kWp
solar_power_installed_wp_per_capita{}Puissance des installations photovoltaïques, en Wp/habitantdoublePuissance des installations photovoltaïques, en Wp/habitantLeistung der Photovoltaikanlagen, in Wp/Kopf

1 more column in JSON.

Attribution: Source: opendata.fr.ch (Geoimpact, Office fédéral de l'énergie (OFEN)).

Licence: Datasets on this portal declare the licence "CC BY-SA 4.0" (https://creativecommons.org/licenses/by-sa/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.

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 opendata.fr.ch (opendata-fr-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=08_02_energie_solaire. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "opendata-fr-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 opendata.fr.ch (opendata-fr-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 "opendata-fr-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 export as JSON

    Use opendata.fr.ch (opendata-fr-ch) from fastCRW Pergamon, capability "Dataset export as JSON" (export-json). You want the whole dataset, or a filtered slice of it, as a plain JSON array rather than a paged envelope. Example options: id=08_02_energie_solaire. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "opendata-fr-ch" and capability "export-json". 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 opendata.fr.ch (opendata-fr-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=08_02_energie_solaire. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "opendata-fr-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>