European Central Bank API
Returns ECB euro reference rates, rate history, statistical series, HICP inflation data and key interest rates.
View as Markdown| GET | /ecb/rates | The latest euro foreign exchange reference rates: units of each currency per one euro. |
| GET | /ecb/history | Euro reference rate of one currency for the last days, oldest first. |
| GET | /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. |
| GET | /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. |
| GET | /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. |
| GET | /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. |
rates
/v1/ecb/ratesThe latest euro foreign exchange reference rates: units of each currency per one euro.
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
base | string |
rates | Rate[] |
currency | string |
date | string |
rate | number (double) |
curl "https://api.hoshime.com/v1/ecb/rates" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ecb/rates", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ecb/rates", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/ecb/historyEuro reference rate of one currency for the last days, oldest first.
Parameters
currencystring required | ISO 4217 currency code, such as USD. e.g. USD |
daysinteger | Publication days to return, 1 to 90. default 30 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
base | string |
currency | string |
observations | Day[] |
date | string |
rate | number (double) |
curl "https://api.hoshime.com/v1/ecb/history?currency=USD" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ecb/history?currency=USD", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ecb/history?currency=USD", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/ecb/dataflowsThe ECB statistical dataflows, such as EXR for exchange rates and FM for money markets, with the names that tell what they hold.
Parameters
agencystring | Maintenance agency of the dataflows. Default ECB. default ECBe.g. ECB |
querystring | Case-insensitive filter over the dataflow id and name, such as inflation or EXR. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
agency | string |
items | Dataflow[] |
agency | string |
id | string |
name | string |
version | string |
curl "https://api.hoshime.com/v1/ecb/dataflows?agency=ECB" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ecb/dataflows?agency=ECB", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ecb/dataflows?agency=ECB", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/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.
Parameters
dataflowstring required | ECB dataflow id, such as EXR, FM, ICP or YC. dataflows lists them. e.g. FM |
keystring | 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 |
fromstring | First period, in the series' period format: 2026-11-06, 2026-11, 2026-Q2 or 2026. |
tostring | Last period, in the same format as from. |
lastinteger | Newest observations per series when no window is given, from 1 to 2000. default 20e.g. 5 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
dataflow | string |
items | Series[] |
dimensions | map |
key | string |
observations | Observation[] |
period | string |
value | number (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"
const res = await fetch("https://api.hoshime.com/v1/ecb/series?dataflow=FM&key=D.U2.EUR.4F.KR.DFR.LEV&last=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ecb/series?dataflow=FM&key=D.U2.EUR.4F.KR.DFR.LEV&last=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/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.
Parameters
itemstring | COICOP item code, comma-separated for several: 000000 overall, 010000 food, 040000 housing, XEF000 excluding energy and food. Default 000000. default 000000e.g. 000000 |
areastring | Reference area: U2 for the euro area, or a member state such as DE, FR, IT or ES. Default U2. default U2e.g. U2 |
measurestring | 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_SWGTdefault ANRe.g. ANR |
fromstring | First month, YYYY-MM. |
tostring | Last month, YYYY-MM. |
lastinteger | Newest months per item when no window is given, from 1 to 240. default 24e.g. 12 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
dataflow | string |
items | Series[] |
dimensions | map |
key | string |
observations | Observation[] |
period | string |
value | number (double) |
curl "https://api.hoshime.com/v1/ecb/hicp?item=000000&area=U2&measure=ANR&last=12" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ecb/hicp?item=000000&area=U2&measure=ANR&last=12", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ecb/hicp?item=000000&area=U2&measure=ANR&last=12", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/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.
Parameters
ratestring | Comma-separated rates: MRR_FR (main refinancing), DFR (deposit facility), MLFR (marginal lending facility). Default all three. e.g. DFR |
fromstring | First date, YYYY-MM-DD. |
tostring | Last date, YYYY-MM-DD. |
lastinteger | Newest observations per rate when no window is given, from 1 to 2000. default 20e.g. 5 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
dataflow | string |
items | Series[] |
dimensions | map |
key | string |
observations | Observation[] |
period | string |
value | number (double) |
curl "https://api.hoshime.com/v1/ecb/keyRates?rate=DFR&last=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/ecb/keyRates?rate=DFR&last=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/ecb/keyRates?rate=DFR&last=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }