get_sse_data
Fetch time-series data from the Swiss Stats Explorer API. Use dimension filters and time periods to obtain targeted statistical indicators.
Instructions
Retrieve time-series data from the Swiss Stats Explorer (SSE) API. This is a modern SDMX-based API that works well for time-series data. Use get_sse_metadata first to see available dimensions. You can filter by dimensions and time periods.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| numberBfs | Yes | BFS dataset identifier for SSE (e.g., "DF_LWZ_1") | |
| language | No | Language for results and labels | en |
| query | No | Optional dimension filters as key-value pairs. Example: {"GR_KT_GDE": ["2581", "4001"], "LEERWOHN_TYP": ["4"]} | |
| startPeriod | No | Start period for time-series data (e.g., "2020") | |
| endPeriod | No | End period for time-series data (e.g., "2023") |