Skip to main content

Notes

  • Free and keyless; no credentials.
  • Datasets are addressed by their online data code (nama_10_gdp, DEMO_R_D3DENS); find codes with eurostat.toc or in the Eurostat data browser.
  • eurostat.statistics filters by dimension name (geo, unit, freq, time); for any other dimension use eurostat.sdmx.data, whose key covers every dimension in order.
  • Regional datasets are large: always filter by geo or geoLevel and by time.
  • Comext and Prodcom trade datasets live under a different base (api/comext/dissemination) not covered here.

Endpoints

Get dataset values as JSON-stat

  • Use only one time filter, except sinceTimePeriod with untilTimePeriod.
  • Values come back as a flat ‘value’ object indexed by position across the dimension sizes in ‘id’/‘size’; decode with the ‘dimension’ index.

Get dataset values by SDMX key

  • Get the dimension order from eurostat.sdmx.datastructure.
  • A very large result is delivered asynchronously (a placeholder response to fetch later) rather than inline.

Get a dataset’s structure

  • Returns SDMX-ML structure XML.

List datasets

  • Plain text of the whole catalogue (large); hierarchy is shown by 4-space indentation of titles.