# European Central Bank API

> Returns ECB euro reference rates, rate history, statistical series, HICP inflation data and key interest rates.

Category: Finance & Crypto. Region: EU. 6 endpoints at `https://api.hoshime.com/v1/ecb/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/ecb
## GET /v1/ecb/rates

The latest euro foreign exchange reference rates: units of each currency per one euro.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `base` (string), `rates` (Rate[]), `rates[].currency` (string), `rates[].date` (string), `rates[].rate` (number (double))

```bash
curl "https://api.hoshime.com/v1/ecb/rates" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ecb/history

Euro reference rate of one currency for the last days, oldest first.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `currency` | string | yes | ISO 4217 currency code, such as USD. (e.g. USD) |
| `days` | integer | no | Publication days to return, 1 to 90. (default 30) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `base` (string), `currency` (string), `observations` (Day[]), `observations[].date` (string), `observations[].rate` (number (double))

```bash
curl "https://api.hoshime.com/v1/ecb/history?currency=USD" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ecb/dataflows

The ECB statistical dataflows, such as EXR for exchange rates and FM for money markets, with the names that tell what they hold.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `agency` | string | no | Maintenance agency of the dataflows. Default ECB. (default ECB; e.g. ECB) |
| `query` | string | no | Case-insensitive filter over the dataflow id and name, such as inflation or EXR. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `agency` (string), `items` (Dataflow[]), `items[].agency` (string), `items[].id` (string), `items[].name` (string), `items[].version` (string)

```bash
curl "https://api.hoshime.com/v1/ecb/dataflows?agency=ECB" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ecb/series

Observations of any ECB dataflow series: a dimension key selects the series, and each series comes with its dimensions and its values by period.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `dataflow` | string | yes | ECB dataflow id, such as EXR, FM, ICP or YC. dataflows lists them. (e.g. FM) |
| `key` | string | no | Series key: dimension values dot-joined in the dataflow's order, + for several values, empty between dots for any. Default all series, which is limited to 100. (e.g. D.U2.EUR.4F.KR.DFR.LEV) |
| `from` | string | no | First period, in the series' period format: 2026-11-06, 2026-11, 2026-Q2 or 2026. |
| `to` | string | no | Last period, in the same format as from. |
| `last` | integer | no | Newest observations per series when no window is given, from 1 to 2000. (default 20; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `dataflow` (string), `items` (Series[]), `items[].dimensions` (map), `items[].key` (string), `items[].observations` (Observation[])

```bash
curl "https://api.hoshime.com/v1/ecb/series?dataflow=FM&key=D.U2.EUR.4F.KR.DFR.LEV&last=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ecb/hicp

Harmonised Index of Consumer Prices of the euro area or a member state: annual rates, index levels or contributions by COICOP item, by month.

Scope: `social:read` · Units: 1 · Cached: 360 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `item` | string | no | COICOP item code, comma-separated for several: 000000 overall, 010000 food, 040000 housing, XEF000 excluding energy and food. Default 000000. (default 000000; e.g. 000000) |
| `area` | string | no | Reference area: U2 for the euro area, or a member state such as DE, FR, IT or ES. Default U2. (default U2; e.g. U2) |
| `measure` | string | no | ANR annual rate of change, INX index level, ANR_S seasonally adjusted annual rate, MRR monthly rate, CTG contribution, CTG_S adjusted contribution, WGT weight. Default ANR. (one of ANR, INX, ANR_S, MRR, CTG, CTG_S, WGT; default ANR; e.g. ANR) |
| `from` | string | no | First month, YYYY-MM. |
| `to` | string | no | Last month, YYYY-MM. |
| `last` | integer | no | Newest months per item when no window is given, from 1 to 240. (default 24; e.g. 12) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `dataflow` (string), `items` (Series[]), `items[].dimensions` (map), `items[].key` (string), `items[].observations` (Observation[])

```bash
curl "https://api.hoshime.com/v1/ecb/hicp?item=000000&area=U2&measure=ANR&last=12" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/ecb/keyRates

The ECB key interest rates by day: the main refinancing operations rate, the deposit facility rate and the marginal lending facility rate, with the level between changes.

Scope: `social:read` · Units: 1 · Cached: 360 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `rate` | string | no | Comma-separated rates: MRR_FR (main refinancing), DFR (deposit facility), MLFR (marginal lending facility). Default all three. (e.g. DFR) |
| `from` | string | no | First date, YYYY-MM-DD. |
| `to` | string | no | Last date, YYYY-MM-DD. |
| `last` | integer | no | Newest observations per rate when no window is given, from 1 to 2000. (default 20; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `dataflow` (string), `items` (Series[]), `items[].dimensions` (map), `items[].key` (string), `items[].observations` (Observation[])

```bash
curl "https://api.hoshime.com/v1/ecb/keyRates?rate=DFR&last=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
