bfs_price_index
Retrieve Swiss construction price index series or residential property price index source links from the Federal Statistical Office, filtered by an optional starting year.
Instructions
Swiss price indices not carried by STAT-TAB: Baupreisindex & IMPI.
baupreisindex: the construction price index — returns the national semi-annual index series (Schweiz, Baugewerbe Total), parsed from the BFS DAM XLSX selected via opendata.swiss (CKAN) metadata.impi: the residential property price index — BFS publishes this only as PDF/HTML, so this returns the official source links plus an explicit limitation rather than parsed values.
Data flows through opendata.swiss (CKAN), which rejects default User-Agents with HTTP 403; a custom User-Agent is always sent. Results are cached for 24h.
Args: params (PriceIndexInput): - index (str): 'baupreisindex' or 'impi' - since_year (int | None): optional earliest year to include
Returns:
PriceIndexResult with series (baupreisindex) or source_links (impi).
On error, error/hint are set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | ||
| hint | No | ||
| note | No | ||
| error | No | ||
| index | No | ||
| title | No | ||
| series | No | ||
| source | No | Bundesamt für Statistik (BFS) — Preisindizes via opendata.swiss (CKAN) und BFS DAM-Asset-API. Open Government Data, freie Weiterverwendung. | |
| dataset | No | ||
| coverage | No | ||
| provenance | No | ||
| source_links | No |