Browse codes
Look up the human-readable labels behind a coded dimension’s values (e.g. FREQ=M means “Monthly”), so you can build a valid key or interpret one.
//JAVA 25+
//DEPS com.github.nbbrd.sdmx-dl:sdmx-dl-standalone:3.2.0
import sdmxdl.*;
import sdmxdl.web.SdmxWebManager;
void main() throws Exception {
SdmxWebManager
.ofServiceLoader()
.usingName("ECB")
.listCodes(CodesRequest.builder()
.flowOf("EXR")
.concept("FREQ")
.build())
.forEach((code, label) -> IO.println(code + " = " + label));
}
listCodes resolves the codes of a chosen concept; it accepts an optional query/maxResults to search/limit results, the same way as Browse dimensions and attributes.
sdmx-dl list codes ECB EXR FREQ
- This lists all defined codes for a dimension, regardless of whether they actually occur in the dataset. To narrow codes down to what’s actually available under a key constraint, use Browse availability instead.
- CLI has a dedicated
list codescommand; the API offers the equivalentProvider.listCodes(...); WS exposes it as theListCodesRPC//codes/{dimension}REST endpoint (itsconceptfield on gRPC is the same value as the REST path segment). - To find out which dimension/concept names are available for a flow first, see Browse dimensions and attributes.