This API is a free of charge programmatic access to statistical metadata and data. This is the interface to use for the automation of metadata and data queries or downloads.

For background information purposes, it may be relevant to consult as well how to perform manual data and metadata downloads through the web based interface.

How are the pages of this API online help structured?

The API online help consists of the following parts:

Which organizations expose this API?

This API is exposed by

Supported protocol

This API is available using the HTTPS protocol.

Support for SOAP and REST

Depending on the type of operations, the API supports Representation State Transfer (REST) and/or Simple Object Access Protocol (SOAP).

The WSDL for SOAP endpoints and WADL for REST endpoints are explained in Getting started.

Note

This online help describes REST operations, as those are primarily recommended for use.

Parameter <api_base_uri> in all operations descriptions

This documentation mentions a parameter <api_base_uri> in the operation description for each REST request. This parameter is specific to each organization exposing the API.

The allowed values for parameter <api_base_uri> are:

Agency

<api_base_uri> value to be used

Eurostat

https://ec.europa.eu/eurostat/api/dissemination

https://ec.europa.eu/eurostat/api/comext/dissemination (Comext and Prodcom datasets)

DG COMP

https://webgate.ec.europa.eu/comp/redisstat/api/dissemination

DG EMPL

https://webgate.ec.europa.eu/empl/redisstat/api/dissemination

DG GROW

https://webgate.ec.europa.eu/grow/redisstat/api/dissemination

API for Comext datasets

Important note: dedicated endpoints of the new API allow to download Comext and Prodcom datasets.

For these datasets, the <api_base_uri> is: https://ec.europa.eu/eurostat/api/comext/dissemination

In the URL above, "comext/" is added to differenciate this base URL from the main one: https://ec.europa.eu/eurostat/api/dissemination

Further note concerning Comext datasets: full datasets cannot be downloaded because of their size. They have to be filtered.

Parameter <agencyID> in all SDMX operations descriptions

This documentation mentions a parameter <agencyID> in the operation description for each SDMX REST request and some other data discovery requests. An agency is the organization or other expert body responsible for the operational maintenance of commonly used metadata artefacts.

The allowed values for parameter <agencyID> are:

Agency

<agency_id> value to be used

Eurostat

ESTAT

DG COMP

COMP

DG EMPL

EMPL

DG GROW

GROW

Supported semantic formats

The API provides responses in:

Statistical Data and Metadata Exchange (SDMX)

The Statistical Data and Metadata Exchange (SDMX) initiative is sponsored by a wide range of public institutions, including Eurostat. This standard describes and universalizes the way to exchange statistical data, and provides standard formats for data and metadata, content guidelines as well as IT architecture for exchange of data and metadata.

The vast majority of operations in this API implement the SDMX Guidelines for the use of Web Services.

Below are some terms that are used in SDMX and their definitions:

Check as well the formal definition of the SDMX information model, and a summary provided by Metadata Technology.

JSON-stat

JSON-stat is a simple lightweight JSON dissemination format best suited for data visualisation, mobile apps or open data initiatives.

It is based on a cube model that arises from the evidence that the most common form of data dissemination is the tabular form.

In this cube model, datasets are organised in dimensions. Dimensions are organised in categories.

The particularity of this format is that it mixes:

Tab-separated values (TSV) file formats

When TSV is specified in the query parameters provided by the user, SDMX 2.1 metadata and data queries can return responses in the corresponding Tab-separated values (TSV) file format.

Does the API provide versioned information?

The API provides:

Following structural artefacts are versioned and final following SDMX specification: code lists, concept schemes and data structure definitions: each version of each item is available and can be downloaded via the API.

For statistical dataset, corresponding SDMX artefacts are non-final and always with version=1.0.

There is no history available on data.