bdl_search_variables
Search Polish statistical variables by name, subject, level, or year to find identifiers for retrieving data from the BDL database.
Instructions
Search BDL statistical variables (characteristics). Filter by name text (N1…N5), subject-id, level, and years. Use results' numeric id with bdl_get_data_by_variable or bdl_get_data_by_unit. API: GET /variables/search. Pagination is 0-based.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Text matched in N1…N5 fields (e.g. Polish variable label fragment) | |
| subject_id | No | Parent subject id from bdl_search_subjects or BDL tree (e.g. P1312) | |
| level | No | Territorial / variable level filter when applicable | |
| years | No | Limit to variables available for these calendar years | |
| page | No | Page index — 0-based | |
| page_size | No | Results per page (max 100) | |
| sort | No | Sort order (optional) | |
| lang | No | Response language | pl |