Skip to main content
All providers

opendata.fr.ch

Open data portalsCH

opendata.fr.ch

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

Capabilities (5)

GET /v1/data/opendata-fr-ch/dataset1 credit

One dataset's full metadata: title, description, theme, publisher, licence, record count and the complete field list with types and labels.

id
GET /v1/data/opendata-fr-ch/datasets1 credit

Search over the portal's catalogue: matching datasets with id, title, description, theme, publisher and the fields each dataset exposes, plus the total match count.

where?order_by?offset?select?refine?lang?
GET /v1/data/opendata-fr-ch/export-json1 credit

The dataset's records as a flat JSON array (no envelope, no total count), suitable for bulk download of small and medium datasets.

idselect?where?order_by?
GET /v1/data/opendata-fr-ch/facets1 credit

Facet value counts for one dataset: the distinct values of each faceted field with how many records carry them.

idfacet?refine?
GET /v1/data/opendata-fr-ch/records1 credit

A page of up to 100 records from one dataset as JSON objects keyed by field name, with the total record count for the query.

idselect?where?order_by?group_by?refine?offset?

Response example

The shape of data from opendata-fr-ch/dataset (Dataset metadata). A sample, not live data.

Example truncated, full shape in JSON from the API.

JSON
{
  "visibility": "domain",
  "fields": [
    {
      "name": "year",
      "description": null,
      "annotations": {
        "timeserie_precision": "year"
      },
      "label": "Année",
      "type": "date",
      "label_fr": "Année",
      "label_de": "Jahr",
      "description_fr": null,
      "description_de": null
    },
    {
      "name": "country",
      "description": null,
      "annotations": {},
      "label": "Niveau géographique",
      "type": "text",
      "label_fr": "Niveau géographique",
      "label_de": "Geografische Ebene",
      "description_fr": null,
      "description_de": null
    },
    {
      "name": "solar_potential_usage",
      "description": null,
      "annotations": {},
      "label": "Taux d’exploitation du potentiel solaire",
      "type": "double",
      "label_fr": "Taux d’exploitation du potentiel solaire",
      "label_de": "Ausschöpfungsgrad des Solarpotenzials",
      "description_fr": null,
      "description_de": null
    },
    {
      "name": "solar_power_installed_kwp",
      "description": null,
      "annotations": {},
      "label": "Puissance des installations photovoltaïques, en kWp",
      "type": "int",
      "label_fr": "Puissance des installations photovoltaïques, en kWp",
      "label_de": "Leistung der Photovoltaikanlagen, in kWp",
      "description_fr": null,
      "description_de": null
    },
    {
      "name": "solar_power_installed_wp_per_capita",
      "description": null,
      "annotations": {},
      "label": "Puissance des installations photovoltaïques, en Wp/habitant",
      "type": "double",
      "label_fr": "Puissance des installations photovoltaïques, en Wp/habitant",
      "label_de": "Leistung der Photovoltaikanlagen, in Wp/Kopf",
      "description_fr": null,
      "description_de": null
    }
  ],
  "dataset_id": "08_02_energie_solaire",
  "dataset_uid": "da_gt93sm",
  "has_records": true,
  "features": [
    "analyze",
    "timeserie"
  ],
  "attachments": [],
  "alternative_exports": [],
  "data_visible": true,
  "metas": {
    "default": {
      "title": "Énergie solaire, dès 2020",
      "title_fr": "Énergie solaire, dès 2020",
      "title_de": "Solarenergie ab 2020",
      "description": "<p>Ce jeu de données présente les chiffres annuels du taux d’exploitation du potentiel solaire et de la puissance des installations photovoltaïques, dans le canton de Fribourg et l'ensemble de la Suisse, depuis 2020.</p><p>Le potentiel solaire des toits correspond à la part de la surface des bâtiments qui pourrait être utilisée pour produire de l’électricité grâce au photovoltaïque. Le taux d’exploitation du potentiel solaire, quant à lui, indique la part de ce potentiel réellement utilisée.  Autrement dit, il s’agit d’un indicateur qui mesure dans quelle proportion les toits disponibles sont effectivement équipés de panneaux solaires par rapport à leur capacité théorique maximale.</p><p>La puissance des installations photovoltaïques par habitant est un indicateur clé pour mesurer le développement de l’énergie solaire dans une région. Elle exprime la puissance totale des panneaux solaires installés, rapportée au nombre d’habitants. Cette puissance est exprimée en Wp (Watt peak), ou Watt-crête, une unité qui indique la puissance maximale qu’un panneau solaire peut produire dans des conditions idéales : un ensoleillement de 1000 W/m², une température de 25°C et une orientation optimale.</p><p><a href=\"https://energiereporter.energyapps.ch/methodology?params=%7B%22lang%22%3A%22fr-CH%22%7D#heading-%C3%A9nergie-solaire\" target=\"_blank\">Fiche descriptive : Énergie solaire</a><br></p><br><div><br></div>",
      "description_fr": "<p>Ce jeu de données présente les chiffres annuels du taux d’exploitation du potentiel solaire et de la puissance des installations photovoltaïques, dans le canton de Fribourg et l'ensemble de la Suisse, depuis 2020.</p><p>Le potentiel solaire des toits correspond à la part de la surface des bâtiments qui pourrait être utilisée po

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>

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.

https://creativecommons.org/licenses/by-sa/4.0/

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

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

Cache: up to 3600s