get_dimension_codes
Retrieve codes for a specific dimension of a dataflow to find valid values for your data query without loading all codelists at once.
Instructions
Get codes for a specific dimension of a dataflow.
This allows drilling down into specific dimensions without loading all codelists at once.
Useful for finding valid values for a particular dimension in your data query.
Args:
dataflow_id: The dataflow identifier
dimension_id: The dimension identifier
limit: Maximum codes to return (default: 50)
offset: Number of codes to skip for pagination (default: 0)
agency_id: The agency (uses session endpoint if not specified)
endpoint: Optional endpoint key (e.g. "FBOS", "ECB") to target a
specific provider for this call only. Defaults to the session's
current endpoint.
Returns:
Structured result with codes for the dimension
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| endpoint | No | ||
| agency_id | No | ||
| dataflow_id | Yes | ||
| dimension_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codes | Yes | List of code values | |
| usage | Yes | How to use these codes in queries | |
| showing | Yes | Number of codes in this response | |
| position | Yes | Position in the SDMX key | |
| codelist_id | No | Source codelist identifier | |
| dataflow_id | Yes | Parent dataflow identifier | |
| search_term | No | Search term used for filtering | |
| total_codes | Yes | Total codes available | |
| dimension_id | Yes | Dimension identifier | |
| example_keys | Yes | Example key construction hints | |
| discovery_level | No | Discovery workflow level | dimension_codes |