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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"numberBfs": "<numberBfs>"
},
"name": "get_sse_data"
}
}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") |