Child pages
  • API - Introduction - english

General introduction

In addition to the online database, it is possible to access Eurostat's datasets through REST API web services  described in this online help section.

Eurostat datasets are updated twice a day, at 11:00 and at 23:00 CET, if newer data is available or for structural changes, for example for the dimensions in the dataset.

The Eurostat database always contains the latest version of the datasets, meaning that there is no versioning or documentation of past versions of the data.

These APIs are 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.

Supported semantic formats

The following formats are used in responses :

  • SDMX-ML, i.e. Statistical Data and Metadata Exchange (SDMX) messages as XML document

  • SDMX-CSV, i.e. Statistical Data and Metadata Exchange (SDMX) messages as SDMX-CSV document

  • JSON-stat, i.e. a simple lightweight JSON format for data dissemination

  • TSV (Tab-Separated Values) files that include a ‘tab delimited’ sequence of values in each line

What can you find in this online help section

The API online help consists of the following parts:

  • This introductory page summarizes basic information about the semantic formats of data and metadata responses.

  • Getting started section provides a brief overview about the different APIs. It is strongly recommended to read this page, before proceeding.

  • Detailed guidelines section provided complete details for each API.
  • A Frequently asked questions section.


Important note for "DS- prefixed" / "Comext and PRODCOM" datasets :

For technical reason Comext and Prodcom datasets (DS- prefixed dataset code, i.e DS-057555) are provided on a different API endpoints starting with 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

Please consult API - Getting started for DS- prefixed datasets from Comext database for more details on these datasets.

APIs documentation

The following REST APIs are available:

  • STATISTICS, which ensure business continuity with previous Eurostat JSON web service;
  • SDMX 3.0, used for metadata and data queries following SDMX 3.0 specification;
  • SDMX 2.1, used for metadata and data queries following SDMX 2.1 specification;
  • CATALOGUE, which is used for dataset discovery;

STATISTICS API

Statistics API is a REST web service for data query focused on supporting Eurostat Visualisations Tools and open for public use.

This web service:

  • provides data in JSON-stat 2.0 format;

  • supports only REpresentation State Transfer (REST) protocol;

  • supports Cross-Origin Resource Sharing (CORS) 
  • delivers responses in English, French or German.

API - Getting started with statistics API

API - Detailed guidelines - API Statistics

SDMX 3.0 API

The SDMX 3.0 API is a programmatic access to metadata and data, in line with SDMX technical specifications for version 3.0, with the possibility to:

  • Get a complete list of publicly available datasets

  • Get the complete structure definition for a specific dataset

  • Download a dataset in full, or a subset of a specific dataset. This supports customised requests for data.

Processing time and the data response depend on the query and the target dataset size:

  • A request for a small subset of a dataset could result in a response with few kilobytes, and can be returned within seconds

  • A request for full dataset could result in a response of up to several megabytes, and can be returned after several minutes. When submitting this kind of request, asynchronous requests (described hereafter), may be useful.

This API supports returning data in formats other than SDMX-ML 3.0:

  • SDMX-CSV 2.0

  • JSON-stat 2.0
  • TSV

  • SDMX-ML 2.1 (for usage of new API query with content backward compatibility)

API - Getting started with SDMX3.0 API

API - Detailed guidelines - SDMX3.0 API

SDMX 2.1 API

The SDMX 2.1 API  is a programmatic access to metadata and data, in line with SDMX technical specifications for version 2.1, with the possibility to:

  • Get a complete list of publicly available datasets

  • Get the complete structure definition for a specific dataset

  • Download a dataset in full, or a subset of a specific dataset. This supports customized requests for data.

Processing time and the data response depend on the query, i.e.

  • A request for a small subset of a dataset could result in a response with few kilobytes, and can be returned within seconds

  • A request for full dataset could result in a response of up to several megabytes, and can be returned after several minutes. When submitting this kind of request, asynchronous requests (described hereafter), may be useful.

This API supports returning data in formats other than SDMX-ML 2.1:

  • SDMX-CSV 1.0
  • JSON-stat 2.0
  • TSV

API - Getting started with SDMX2.1 API

API - Detailed guidelines - SDMX2.1 API

CATALOGUE API

The CATALOGUE API serves dataset discovery purposes via programmatic access to catalogue of datasets.

API - Getting started with catalogue API

API - Detailed guidelines - Catalogue API

APIs endpoints

Eurostat API endpoints

REDISSTAT APIs endpoints

Eurostat is providing other Commission Directorates-General, through the REDISSTAT project, with a reusable solution for statistics dissemination that also exposes API endpoints.


  • No labels
_