get_selection_data
Fetch actual statistical data from a predefined selection as CSV. Use a selection code to retrieve data, optionally limiting rows.
Instructions
Fetch actual statistical data from a predefined selection as CSV.
This is the primary and most reliable way to get data. Find selection codes via search_selections() or get_dataset_selections().
Args: selection_code: Selection code (e.g., CEN0101HT01). max_rows: Maximum number of data rows to return (default 100). Set to 0 for unlimited (use with caution — some tables are very large).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selection_code | Yes | ||
| max_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |