bdl_get_data_by_variable
Retrieve statistical data for a specific variable across Polish territorial units like voivodeships, with filters for year, administrative level, and pagination.
Instructions
Fetch statistical values for one variable across territorial units (e.g. all voivodeships). Set unit_level (BDL level id) and optionally unit_parent_id to scope results; year filters which periods are returned. Pagination is 0-based. API: GET /data/by-variable/{var-id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variable_id | Yes | Variable id | |
| years | No | Calendar years to include (repeat year= in API); omit for all available | |
| unit_level | No | BDL territorial level (e.g. 2 = voivodeship) — use BDL /levels or metadata if unsure | |
| unit_parent_id | No | Parent territorial unit id to restrict children (e.g. a voivodeship code) | |
| 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 |