Statec Lu

v0.2.1
io.github.pipeworx-io/statec-lu Checked 1 day ago Published 27 days ago

STATEC (Institut national de la statistique et des études économiques du Grand-Duché de…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_dataflows

Browse or keyword-search STATEC (Luxembourg statistics) datasets, called "dataflows". Each result has an `id` (e.g. "DF_A1100", the dataflowRef you pass to get_data / dataflow_structure) and an English name plus a short description (publication date, periodicity, author, category). STATEC publishes hundreds of datasets, so pass `query` to filter unless you really want the whole catalog. Example: list_dataflows({ query: "population" }) or list_dataflows({ query: "unemployment" }).

ParameterTypeDescription
limitnumberMax results to return (default 50).
querystringCase-insensitive substring filter on dataset id, name, or description, e.g. "population", "inflation", "GDP", "wages".

dataflow_structure

Get the structure (Data Structure Definition) of one STATEC dataset: its ordered dimensions and, for each, the valid codes. Use this BEFORE get_data to learn how to build the dot-separated SDMX `key`. The key has one position per dimension, in `dimension_order`; an empty position is a wildcard. Example: dataflow_structure({ dataflow_id: "DF_A1100" }).

ParameterTypeDescription
dataflow_id *stringSTATEC dataflow id from list_dataflows, e.g. "DF_A1100".

get_data

Pull observations from a STATEC dataset. `key` is a dot-separated SDMX dimension filter, one position per dimension in the order given by dataflow_structure; leave a position empty to wildcard it. Fetch dataflow_structure first to know the dimension order and valid codes. Example: get_data({ dataflow_id: "DF_A1100", key: "Valeur..A", start_period: "2010", end_period: "2020" }) picks VARIABLE=Valeur, wildcards SPECIFICATION, FREQ=A (annual). Omit `key` (or pass "") to fetch all series — caution, this can be large. Returns decoded series with their dimension labels and per-period values.

ParameterTypeDescription
dataflow_id *stringSTATEC dataflow id, e.g. "DF_A1100".
end_periodstringEnd period, e.g. "2020".
keystringDot-separated dimension filter (one position per dimension, empty = wildcard), e.g. "Valeur..A". Omit for all series.
last_nnumberReturn only the last N observations per series.
max_seriesnumberCap the number of decoded series returned (default 200).
start_periodstringStart period, e.g. "2010", "2010-01", "2010-Q1".