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

# European Central Bank

> ECB Data Portal SDMX API: euro reference exchange rates, ECB interest rates, inflation, money and banking statistics, keyless.

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

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

No key needed

Endpoints

4

Auth

None

[Vendor docs](https://data.ecb.europa.eu/help/api/overview)

## Notes

* Free and keyless; no credentials.
* Data is addressed by dataflow (e.g. EXR, exchange rates) and a series key: dimension codes in the dataflow's order joined by dots, e.g. EXR + D.USD.EUR.SP00.A (daily USD per EUR reference rate).
* In a key, an empty position is a wildcard (D..EUR.SP00.A = every currency) and + is OR (D.USD+JPY.EUR.SP00.A).
* The default response is SDMX-ML XML; pass format=jsondata for SDMX-JSON or format=csvdata for CSV.
* Find dataflows with ecb.dataflows and a dataflow's dimensions and codes with ecb.datastructure (references=children).

## Endpoints

GET

Get time series data

Observations of every series in a dataflow matching a series key, filtered by period.

[Open](#ecb-data)

GET

List dataflows

Every dataflow (dataset) the ECB publishes, with names.

[Open](#ecb-dataflows)

GET

Get a dataflow's structure

Dimensions of a data structure definition and, with references=children, the codelists for each dimension.

[Open](#ecb-datastructure)

GET

Get a codelist

Codes and labels of one codelist (e.g. CL\_FREQ, the frequency codes).

[Open](#ecb-codelist)

### Get time series data

GET

`/data/{flowRef}/{key}`

`ecb.data`

Observations of every series in a dataflow matching a series key, filtered by period.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`flowRef` required</td><td>string</td><td>path</td><td>Dataflow id, optionally AGENCY,FLOW,VERSION. Example `EXR`</td></tr>
    <tr><td>`key` required</td><td>string</td><td>path</td><td>Series key; empty positions wildcard, + for OR. Example `D.USD.EUR.SP00.A`</td></tr>
    <tr><td>`format`</td><td>string</td><td>query</td><td>Response format; default genericdata (SDMX-ML XML). One of `jsondata`, `csvdata`, `structurespecificdata`, `genericdata` Example `jsondata`</td></tr>
    <tr><td>`startPeriod`</td><td>string</td><td>query</td><td>Start period: YYYY, YYYY-S1, YYYY-Q1, YYYY-MM, YYYY-W01 or YYYY-MM-DD by frequency. Example `2024-01-01`</td></tr>

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

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        End period, same formats.
      </td>
    </tr>

    <tr><td>`lastNObservations`</td><td>integer</td><td>query</td><td>Only the N most recent observations per series. Example `1`</td></tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only the N first observations per series.
      </td>
    </tr>

    <tr>
      <td>
        `updatedAfter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        ISO 8601 timestamp; only observations added, revised or deleted since then.
      </td>
    </tr>

    <tr><td>`detail`</td><td>string</td><td>query</td><td>full (default) data and attributes; dataonly without attributes; serieskeysonly lists matching series only; nodata series and attributes without observations. One of `full`, `dataonly`, `serieskeysonly`, `nodata`</td></tr>

    <tr>
      <td>
        `includeHistory`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Also return previous versions of the data; default false.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://data.ecb.europa.eu/help/api/data) · 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("ecb.data", {'flowRef': 'EXR', 'key': 'D.USD.EUR.SP00.A', 'format': 'jsondata', 'startPeriod': '2024-01-01', 'lastNObservations': 1})
```

```text MCP theme={null}
call_data_api(endpoint="ecb.data", params={"flowRef": "EXR", "key": "D.USD.EUR.SP00.A", "format": "jsondata", "startPeriod": "2024-01-01", "lastNObservations": 1})
```

> [!NOTE]
>
> * A whole dataflow with no key can be very large and slow; always give a key.
> * detail=serieskeysonly lists the series a wildcard key matches without the data.

### List dataflows

GET

`/dataflow/ECB`

`ecb.dataflows`

Every dataflow (dataset) the ECB publishes, with names.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`detail`</td><td>string</td><td>query</td><td>allstubs returns only id, agency, version and name. One of `full`, `allstubs`, `referencestubs`</td></tr>
  </tbody>
</table>

[Vendor docs](https://data.ecb.europa.eu/help/api/metadata) · 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("ecb.dataflows")
```

```text MCP theme={null}
call_data_api(endpoint="ecb.dataflows")
```

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

### Get a dataflow's structure

GET

`/datastructure/ECB/{resourceID}`

`ecb.datastructure`

Dimensions of a data structure definition and, with references=children, the codelists for each dimension.

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>Data structure definition id. Example `ECB_EXR1`</td></tr>
    <tr><td>`references`</td><td>string</td><td>query</td><td>Also return related artefacts; children adds the codelists and concept schemes used. One of `none`, `parents`, `parentsandsiblings`, `children`, `descendants`, `all`</td></tr>
    <tr><td>`detail`</td><td>string</td><td>query</td><td>Amount of detail. One of `full`, `allstubs`, `referencestubs`</td></tr>
  </tbody>
</table>

[Vendor docs](https://data.ecb.europa.eu/help/api/metadata) · 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("ecb.datastructure", {'resourceID': 'ECB_EXR1'})
```

```text MCP theme={null}
call_data_api(endpoint="ecb.datastructure", params={"resourceID": "ECB_EXR1"})
```

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

### Get a codelist

GET

`/codelist/ECB/{resourceID}`

`ecb.codelist`

Codes and labels of one codelist (e.g. CL\_FREQ, the frequency codes).

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>Codelist id. Example `CL_FREQ`</td></tr>
  </tbody>
</table>

[Vendor docs](https://data.ecb.europa.eu/help/api/metadata) · 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("ecb.codelist", {'resourceID': 'CL_FREQ'})
```

```text MCP theme={null}
call_data_api(endpoint="ecb.codelist", params={"resourceID": "CL_FREQ"})
```

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


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