get_value
Retrieve a single specific value from a statistical dataset using exact dimension and item codes. Ideal for obtaining precise data points like the number of municipalities in Czech Republic in 2023.
Instructions
Get a single specific value from a dataset.
This is the most precise way to query data — returns exactly one value. Requires knowing the exact dimension and item codes from get_dataset() and get_dimension_items().
Args: dataset_code: Dataset code (e.g., RSO01). indicator_code: Indicator code (e.g., 3971b). dimension_codes: List of dimension codes (e.g., ["CasR", "TYPPROSJED", "UZ023H2U"]). item_codes: List of item codes matching dimension_codes order (e.g., ["2023", "501", "CZ"]). version: Dataset version (optional, defaults to latest).
Example: Number of municipalities in Czech Republic in 2023: get_value("RSO01", "3971b", ["CasR","TYPPROSJED","UZ023H2U"], ["2023","501","CZ"])
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_code | Yes | ||
| indicator_code | Yes | ||
| dimension_codes | Yes | ||
| item_codes | Yes | ||
| version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |