Skip to content

European Central Bank API

6 endpointsFinance & CryptoEUsocial:read6 real examples

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

View as Markdown
GET/ecb/ratesThe latest euro foreign exchange reference rates: units of each currency per one euro.
GET/ecb/historyEuro reference rate of one currency for the last days, oldest first.
GET/ecb/dataflowsThe ECB statistical dataflows, such as EXR for exchange rates and FM for money markets, with the names that tell what they hold.
GET/ecb/seriesObservations of any ECB dataflow series: a dimension key selects the series, and each series comes with its dimensions and its values by period.
GET/ecb/hicpHarmonised Index of Consumer Prices of the euro area or a member state: annual rates, index levels or contributions by COICOP item, by month.
GET/ecb/keyRatesThe 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.

rates

GET/v1/ecb/rates

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

scope social:read1 unitcached 1 h

Parameters

tunnel
string
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
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
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

5 fields
basestring
ratesRate[]
currencystring
datestring
ratenumber (double)
curl "https://api.hoshime.com/v1/ecb/rates" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "base": "EUR",
    "rates": [
      {
        "currency": "ARS",
        "date": "2020-10-30",
        "rate": 91.5953
      },
      {
        "currency": "AUD",
        "date": "2026-11-06",
        "rate": 1.625
      }
    ]
  },
  "meta": {
    "cached": false,
    "endpoint": "rates",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "ecb",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

history

GET/v1/ecb/history

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

scope social:read1 unitcached 1 h

Parameters

currency
string
required
ISO 4217 currency code, such as USD.
e.g. USD
days
integer
Publication days to return, 1 to 90.
default 30
tunnel
string
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
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
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

5 fields
basestring
currencystring
observationsDay[]
datestring
ratenumber (double)
curl "https://api.hoshime.com/v1/ecb/history?currency=USD" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "base": "EUR",
    "currency": "USD",
    "observations": [
      {
        "date": "2026-09-28",
        "rate": 1.1378
      },
      {
        "date": "2026-09-29",
        "rate": 1.1355
      }
    ]
  },
  "meta": {
    "cached": false,
    "endpoint": "history",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "ecb",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

dataflows

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:read1 unitcached 24 h

Parameters

agency
string
Maintenance agency of the dataflows. Default ECB.
default ECBe.g. ECB
query
string
Case-insensitive filter over the dataflow id and name, such as inflation or EXR.
tunnel
string
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
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
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

6 fields
agencystring
itemsDataflow[]
agencystring
idstring
namestring
versionstring
curl "https://api.hoshime.com/v1/ecb/dataflows?agency=ECB" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "agency": "ECB",
    "items": [
      {
        "agency": "ECB",
        "id": "AGR",
        "name": "AGR",
        "version": "1.0"
      },
      {
        "agency": "ECB",
        "id": "AME",
        "name": "AMECO",
        "version": "1.0"
      }
    ]
  },
  "meta": {
    "cached": false,
    "endpoint": "dataflows",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "ecb",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

series

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:read1 unitcached 1 h

Parameters

dataflow
string
required
ECB dataflow id, such as EXR, FM, ICP or YC. dataflows lists them.
e.g. FM
key
string
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
First period, in the series' period format: 2026-11-06, 2026-11, 2026-Q2 or 2026.
to
string
Last period, in the same format as from.
last
integer
Newest observations per series when no window is given, from 1 to 2000.
default 20e.g. 5
tunnel
string
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
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
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

7 fields
dataflowstring
itemsSeries[]
dimensionsmap
keystring
observationsObservation[]
periodstring
valuenumber (double)
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"
200 Real response
{
  "data": {
    "dataflow": "FM",
    "items": [
      {
        "dimensions": {
          "CURRENCY": "EUR",
          "DATA_TYPE_FM": "LEV",
          "FREQ": "D",
          "INSTRUMENT_FM": "KR",
          "PROVIDER_FM": "4F",
          "PROVIDER_FM_ID": "DFR",
          "REF_AREA": "U2"
        },
        "key": "D.U2.EUR.4F.KR.DFR.LEV",
        "observations": [
          {
            "period": "2026-11-02",
            "value": 2.5
          },
          {
            "period": "2026-11-03",
            "value": 2.5
          }
        ]
      }
    ]
  },
  "meta": {
    "cached": false,
    "endpoint": "series",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "ecb",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

hicp

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:read1 unitcached 6 h

Parameters

item
string
COICOP item code, comma-separated for several: 000000 overall, 010000 food, 040000 housing, XEF000 excluding energy and food. Default 000000.
default 000000e.g. 000000
area
string
Reference area: U2 for the euro area, or a member state such as DE, FR, IT or ES. Default U2.
default U2e.g. U2
measure
string
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.
ANRINXANR_SMRRCTGCTG_SWGT
default ANRe.g. ANR
from
string
First month, YYYY-MM.
to
string
Last month, YYYY-MM.
last
integer
Newest months per item when no window is given, from 1 to 240.
default 24e.g. 12
tunnel
string
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
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
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

7 fields
dataflowstring
itemsSeries[]
dimensionsmap
keystring
observationsObservation[]
periodstring
valuenumber (double)
curl "https://api.hoshime.com/v1/ecb/hicp?item=000000&area=U2&measure=ANR&last=12" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "dataflow": "ICP",
    "items": [
      {
        "dimensions": {
          "ADJUSTMENT": "N",
          "FREQ": "M",
          "ICP_ITEM": "000000",
          "ICP_SUFFIX": "ANR",
          "REF_AREA": "U2",
          "STS_INSTITUTION": "4"
        },
        "key": "M.U2.N.000000.4.ANR",
        "observations": [
          {
            "period": "2025-01",
            "value": 2.5
          },
          {
            "period": "2025-02",
            "value": 2.3
          }
        ]
      }
    ]
  },
  "meta": {
    "cached": false,
    "endpoint": "hicp",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "ecb",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

keyRates

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:read1 unitcached 6 h

Parameters

rate
string
Comma-separated rates: MRR_FR (main refinancing), DFR (deposit facility), MLFR (marginal lending facility). Default all three.
e.g. DFR
from
string
First date, YYYY-MM-DD.
to
string
Last date, YYYY-MM-DD.
last
integer
Newest observations per rate when no window is given, from 1 to 2000.
default 20e.g. 5
tunnel
string
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
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
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

7 fields
dataflowstring
itemsSeries[]
dimensionsmap
keystring
observationsObservation[]
periodstring
valuenumber (double)
curl "https://api.hoshime.com/v1/ecb/keyRates?rate=DFR&last=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "dataflow": "FM",
    "items": [
      {
        "dimensions": {
          "CURRENCY": "EUR",
          "DATA_TYPE_FM": "LEV",
          "FREQ": "D",
          "INSTRUMENT_FM": "KR",
          "PROVIDER_FM": "4F",
          "PROVIDER_FM_ID": "DFR",
          "REF_AREA": "U2"
        },
        "key": "D.U2.EUR.4F.KR.DFR.LEV",
        "observations": [
          {
            "period": "2026-11-02",
            "value": 2.5
          },
          {
            "period": "2026-11-03",
            "value": 2.5
          }
        ]
      }
    ]
  },
  "meta": {
    "cached": false,
    "endpoint": "keyRates",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "ecb",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open