> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Eurostat

> Eurostat EU statistics (prices and inflation, energy, labour, trade, GDP, population, regions) as JSON-stat or SDMX, keyless.

![](https://mintcdn.com/webrouter/gPu3tCeozwRcDBjt/logo/data-apis/eurostat.webp?fit=max\&auto=format\&n=gPu3tCeozwRcDBjt\&q=85\&s=8ed0c47a1ff0ec132a5bac0dbf8fd0b1)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

No key needed

Endpoints

4

Auth

None

[Vendor docs](https://ec.europa.eu/eurostat/web/user-guides/data-browser/api-data-access)

## 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

Get dataset values as JSON-stat

Values of a Eurostat dataset filtered by geography, unit, frequency and time, as JSON-stat 2.0.

[Open](#eurostat-statistics)

GET

Get dataset values by SDMX key

Values of a dataset for a dot-separated key over every dimension, as SDMX-CSV, TSV, JSON-stat or SDMX-ML.

[Open](#eurostat-sdmx-data)

GET

Get a dataset's structure

The data structure definition: dimensions in key order and their codelists.

[Open](#eurostat-sdmx-datastructure)

GET

List datasets

Eurostat's table of contents: every dataset and table with code, title, last update, data start and end, and value count.

[Open](#eurostat-toc)

### Get dataset values as JSON-stat

GET

`/statistics/1.0/data/{datasetCode}`

`eurostat.statistics`

Values of a Eurostat dataset filtered by geography, unit, frequency and time, as JSON-stat 2.0.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`datasetCode` required</td><td>string</td><td>path</td><td>Online data code of the dataset. Example `nama_10_gdp`</td></tr>
    <tr><td>`lang`</td><td>string</td><td>query</td><td>Label language; default EN. One of `EN`, `FR`, `DE`</td></tr>
    <tr><td>`geo`</td><td>string</td><td>query</td><td>Geography code (EU27\_2020, FR, FR41); not with geoLevel. Example `EU27_2020`</td></tr>
    <tr><td>`geoLevel`</td><td>string</td><td>query</td><td>All geographies at one level; not with geo. One of `aggregate`, `country`, `nuts1`, `nuts2`, `nuts3`, `city`</td></tr>

    <tr>
      <td>
        `unit`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Unit code, when the dataset has a unit dimension.
      </td>
    </tr>

    <tr>
      <td>
        `freq`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Frequency code (A annual, M monthly, ...), when the dataset has one.
      </td>
    </tr>

    <tr><td>`time`</td><td>string</td><td>query</td><td>One time period, e.g. 2022. Example `2022`</td></tr>

    <tr>
      <td>
        `sinceTimePeriod`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Periods from this one, inclusive.
      </td>
    </tr>

    <tr>
      <td>
        `untilTimePeriod`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Periods up to this one, inclusive.
      </td>
    </tr>

    <tr>
      <td>
        `lastTimePeriod`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        The N latest periods; not with time.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://ec.europa.eu/eurostat/web/user-guides/data-browser/api-data-access/api-detailed-guidelines/api-statistics) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

```python Python theme={null}
router.call_data_api("eurostat.statistics", {'datasetCode': 'nama_10_gdp', 'geo': 'EU27_2020', 'time': '2022'})
```

```text MCP theme={null}
call_data_api(endpoint="eurostat.statistics", params={"datasetCode": "nama_10_gdp", "geo": "EU27_2020", "time": "2022"})
```

> [!NOTE]
>
> * 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

`/sdmx/2.1/data/{resourceID}/{key}`

`eurostat.sdmx.data`

Values of a dataset for a dot-separated key over every dimension, as SDMX-CSV, TSV, JSON-stat or SDMX-ML.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`resourceID` required</td><td>string</td><td>path</td><td>Dataset code. Example `NAMA_10_GDP`</td></tr>

    <tr>
      <td>
        `key`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Dimension values in the dataset structure's order, dot-separated; an empty position is a wildcard.
      </td>
    </tr>

    <tr><td>`format`</td><td>string</td><td>query</td><td>Default SDMX-ML 2.1 Generic XML; JSON means JSON-stat. One of `SDMX_2.1_STRUCTURED`, `SDMX-CSV`, `JSON`, `TSV` Example `SDMX-CSV`</td></tr>

    <tr>
      <td>
        `startPeriod`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Start period.
      </td>
    </tr>

    <tr>
      <td>
        `endPeriod`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        End period.
      </td>
    </tr>

    <tr>
      <td>
        `firstNObservations`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        First N observations per series.
      </td>
    </tr>

    <tr>
      <td>
        `lastNObservations`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Last N observations per series.
      </td>
    </tr>

    <tr><td>`detail`</td><td>string</td><td>query</td><td>Amount of detail. One of `dataonly`, `serieskeysonly`, `nodata`</td></tr>
    <tr><td>`returnData`</td><td>string</td><td>query</td><td>TSV and SDMX-CSV only: include series with no data (ALL) or not (DATA\_ONLY, default). One of `ALL`, `DATA_ONLY`</td></tr>
  </tbody>
</table>

[Vendor docs](https://ec.europa.eu/eurostat/web/user-guides/data-browser/api-data-access/api-detailed-guidelines/sdmx2-1/data-query) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart)

> [!NOTE]
>
> * 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

GET

`/sdmx/2.1/datastructure/ESTAT/{resourceID}/latest`

`eurostat.sdmx.datastructure`

The data structure definition: dimensions in key order and their codelists.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`resourceID` required</td><td>string</td><td>path</td><td>Dataset code. Example `NAMA_10_GDP`</td></tr>
  </tbody>
</table>

[Vendor docs](https://ec.europa.eu/eurostat/web/user-guides/data-browser/api-data-access/api-detailed-guidelines/sdmx2-1/data-query) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-parameters-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata)

```python Python theme={null}
router.call_data_api("eurostat.sdmx.datastructure", {'resourceID': 'NAMA_10_GDP'})
```

```text MCP theme={null}
call_data_api(endpoint="eurostat.sdmx.datastructure", params={"resourceID": "NAMA_10_GDP"})
```

> [!NOTE]
>
> * Returns SDMX-ML structure XML.

### List datasets

GET

`/catalogue/toc/txt`

`eurostat.toc`

Eurostat's table of contents: every dataset and table with code, title, last update, data start and end, and value count.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`lang`</td><td>string</td><td>query</td><td>Title language. One of `en`, `fr`, `de` Example `en`</td></tr>
  </tbody>
</table>

[Vendor docs](https://ec.europa.eu/eurostat/web/user-guides/data-browser/api-data-access/api-detailed-guidelines/catalogue-api/toc) · Same job: [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-groups-search), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-objects-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-lists), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-datasets-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-list), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-tables-query)

```python Python theme={null}
router.call_data_api("eurostat.toc", {'lang': 'en'})
```

```text MCP theme={null}
call_data_api(endpoint="eurostat.toc", params={"lang": "en"})
```

> [!NOTE]
>
> * Plain text of the whole catalogue (large); hierarchy is shown by 4-space indentation of titles.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.