@varve/agency-sdks

SDMX Metadata

Use Eurostat SDMX 3.0 endpoints to discover dataflows, structures, codelists, concepts, and CSV exports.

Eurostat's SDMX endpoints are useful when you need provider metadata or pipeline-friendly CSV output.

Dataflows

const dataflows = await client.getDataflows();
const flow = await client.getDataflow('DEMO_GIND');
 
const summaries = await client.listDataflows();

Use listDataflows() when you want a compact list of IDs and names. Use the raw SDMX response methods when you need full fidelity.

Structures, codelists, and concepts

const structures = await client.getDataStructures({ resourceId: '*' });
const codelists = await client.getCodelists({ resourceId: '*' });
const concepts = await client.getConceptSchemes();

Eurostat SDMX JSON can contain deeply nested artefacts, so the schemas are intentionally tolerant where the official structure is broad.

SDMX CSV

Use getSdmxCsvData() when a downstream job expects CSV instead of JSON-stat.

const csv = await client.getSdmxCsvData('DEMO_GIND', {
  filters: {
    freq: 'A',
    indic_de: 'JAN',
    geo: 'DE',
    TIME_PERIOD: 'ge:2020+le:2024',
  },
  labels: 'id',
});
 
console.log(csv.slice(0, 500));

The method requests SDMX-CSV 2.0 from the official SDMX 3.0 data endpoint.

On this page