List valid codes of a dimension
ilo_list_dimension_valuesRetrieve valid codes and labels for any ILOSTAT dimension (e.g., country, sex) to build accurate data filters. Search by name to resolve codes for a dataflow.
Instructions
Valid codes (id + label) of one dimension of an ILOSTAT dataflow — e.g. the country/area codes of REF_AREA (ISO 3166-1 alpha-3 such as BRA, plus X-codes for aggregates such as X01 World) or the categories of SEX (SEX_T/SEX_M/SEX_F) and AGE. Use search to resolve a name to a code (e.g. search "Brazil") instead of paging through hundreds of codes; codelists are shared across dataflows, so a code found here is valid wherever the same codelist is used. Use to build correct ilo_get_data filters. Does not return statistical values, does not say which codes actually have data for a given dataflow, and is not applicable to the time dimension (filter it via start_period/end_period in ilo_get_data).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum codes returned (default 200) | |
| offset | No | Codes to skip, for pagination (default 0) | |
| search | No | Case-insensitive filter on code id or label | |
| dataflow | Yes | Dataflow id the dimension belongs to | |
| dimension | Yes | Dimension id from ilo_get_indicator_metadata (e.g. "REF_AREA", "SEX") | |
| provenance_mode | No | Provenance verbosity: 'concise' (default — source, url, vintage, retrieval date, citation, license) or 'detailed' (full canonical block with dataset, dimension key and notices) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | Yes | ||
| values | Yes | ||
| showing | Yes | ||
| codelist | Yes | ||
| dataflow | Yes | ||
| has_more | Yes | ||
| dimension | Yes | ||
| provenance | Yes | ||
| attribution | Yes | ||
| next_offset | No | ||
| total_codes | Yes |