bdl_get_data_by_unit
Retrieve statistical data for specific territorial units by providing variable IDs, enabling analysis of regional metrics and trends.
Instructions
Fetch values for one territorial unit for one or more variables (numeric variable ids). Requires at least one variable id. Optional year list and paging. API: GET /data/by-unit/{unit-id} with repeated var-id query params.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit_id | Yes | Territorial unit id from bdl_search_units (e.g. TERYT-style code) | |
| variable_ids | Yes | One or more variable ids | |
| years | No | Calendar years to include | |
| aggregate_id | No | Aggregation level id (default 1) | |
| page | No | Page index — 0-based | |
| page_size | No | Rows per page | |
| lang | No | Response language | pl |