Bank of Canada API
Returns Bank of Canada series observations, descriptions and history, daily exchange rates, and series groups.
View as Markdown| GET | /bankofcanada/observations | Observations of one Bank of Canada series, the most recent ones, oldest first. |
| GET | /bankofcanada/fxRates | The latest daily exchange rates the Bank of Canada publishes, in Canadian dollars. |
| GET | /bankofcanada/series | The description of one Bank of Canada series: its label, frequency and unit. |
| GET | /bankofcanada/history | Observations of one Bank of Canada series between two days, oldest first. |
| GET | /bankofcanada/seriesBatch | The most recent observations of up to ten Bank of Canada series in one call, oldest first. |
| GET | /bankofcanada/group | A Bank of Canada series group: its label, description and the series it holds. |
| GET | /bankofcanada/groupRecent | The most recent days of a Bank of Canada series group, with the value of each series per day, oldest first. |
| GET | /bankofcanada/searchSeries | Bank of Canada series whose name, label or description contains every word of a query, such as exchange rate or inflation, with cursor paging. |
| GET | /bankofcanada/searchGroups | Bank of Canada series groups whose name, label or description contains every word of a query, such as mortgage or treasury bills, with cursor paging. |
observations
/v1/bankofcanada/observationsObservations of one Bank of Canada series, the most recent ones, oldest first.
Parameters
seriesstring required | Series name, such as FXUSDCAD. e.g. FXUSDCAD |
recentinteger | Number of most recent observations, from 1 to 1000. default 10e.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
5 fields
items | Observation[] |
date | string |
value | number (double) |
label | string |
series | string |
curl "https://api.hoshime.com/v1/bankofcanada/observations?series=FXUSDCAD&recent=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bankofcanada/observations?series=FXUSDCAD&recent=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/bankofcanada/observations?series=FXUSDCAD&recent=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "date": "2026-11-05", "value": 1.3989 }, { "date": "2026-11-04", "value": 1.3961 } ], "label": "USD/CAD", "series": "FXUSDCAD" }, "meta": { "cached": false, "endpoint": "observations", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bankofcanada", "requestId": "req_2Xb9kQ…", "units": 1 } }
fxRates
/v1/bankofcanada/fxRatesThe latest daily exchange rates the Bank of Canada publishes, in Canadian dollars.
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
date | string |
items | FXRate[] |
label | string |
series | string |
value | number (double) |
curl "https://api.hoshime.com/v1/bankofcanada/fxRates" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bankofcanada/fxRates", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bankofcanada/fxRates", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "date": "2026-04-30", "items": [ { "label": "RUB/CAD", "series": "FXRUBCAD", "value": 0.01819 }, { "label": "SAR/CAD", "series": "FXSARCAD", "value": 0.3633 } ] }, "meta": { "cached": false, "endpoint": "fxRates", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bankofcanada", "requestId": "req_2Xb9kQ…", "units": 1 } }
series
/v1/bankofcanada/seriesThe description of one Bank of Canada series: its label, frequency and unit.
Parameters
seriesstring required | Series name, such as FXUSDCAD. e.g. FXUSDCAD |
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
description | string |
frequency | string |
label | string |
name | string |
unit | string |
curl "https://api.hoshime.com/v1/bankofcanada/series?series=FXUSDCAD" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bankofcanada/series?series=FXUSDCAD", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bankofcanada/series?series=FXUSDCAD", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "description": "Daily average exchange rate of the US dollar in Canadian dollars.", "frequency": "Business daily", "label": "USD/CAD", "name": "FXUSDCAD", "unit": "Canadian dollars per US dollar" }, "meta": { "cached": false, "endpoint": "series", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bankofcanada", "requestId": "req_2Xb9kQ…", "units": 1 } }
history
/v1/bankofcanada/historyObservations of one Bank of Canada series between two days, oldest first.
Parameters
seriesstring required | Series name, such as FXUSDCAD. e.g. FXUSDCAD |
startstring required | First day in YYYY-MM-DD form. e.g. 2024-01-02 |
endstring | Last day in YYYY-MM-DD form. Omit it for the latest day. e.g. 2024-01-04 |
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
items | Observation[] |
date | string |
value | number (double) |
label | string |
series | string |
curl "https://api.hoshime.com/v1/bankofcanada/history?series=FXUSDCAD&start=2024-01-02&end=2024-01-04" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bankofcanada/history?series=FXUSDCAD&start=2024-01-02&end=2024-01-04", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bankofcanada/history?series=FXUSDCAD&start=2024-01-02&end=2024-01-04", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "date": "2024-01-02", "value": 1.3316 }, { "date": "2024-01-03", "value": 1.3356 } ], "label": "USD/CAD", "series": "FXUSDCAD" }, "meta": { "cached": false, "endpoint": "history", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bankofcanada", "requestId": "req_2Xb9kQ…", "units": 1 } }
seriesBatch
/v1/bankofcanada/seriesBatchThe most recent observations of up to ten Bank of Canada series in one call, oldest first.
Parameters
seriesstring required | Comma-separated series names, such as FXUSDCAD,FXEURCAD. At most ten. e.g. FXUSDCAD,FXEURCAD |
recentinteger | Number of most recent observations per series, from 1 to 1000. default 5e.g. 2 |
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
items | Observation[] |
date | string |
value | number (double) |
label | string |
series | string |
curl "https://api.hoshime.com/v1/bankofcanada/seriesBatch?series=FXUSDCAD%2CFXEURCAD&recent=2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bankofcanada/seriesBatch?series=FXUSDCAD%2CFXEURCAD&recent=2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bankofcanada/seriesBatch?series=FXUSDCAD%2CFXEURCAD&recent=2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "items": [ { "date": "2026-11-05", "value": 1.3989 }, { "date": "2026-11-04", "value": 1.3961 } ], "label": "USD/CAD", "series": "FXUSDCAD" }, { "items": [ { "date": "2026-11-05", "value": 1.5703 }, { "date": "2026-11-04", "value": 1.5688 } ], "label": "EUR/CAD", "series": "FXEURCAD" } ], "meta": { "cached": false, "endpoint": "seriesBatch", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bankofcanada", "requestId": "req_2Xb9kQ…", "units": 1 } }
group
/v1/bankofcanada/groupA Bank of Canada series group: its label, description and the series it holds.
Parameters
groupstring required | Group name, such as FX_RATES_DAILY. e.g. FX_RATES_DAILY |
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
description | string |
label | string |
name | string |
series | Series[] |
label | string |
name | string |
curl "https://api.hoshime.com/v1/bankofcanada/group?group=FX_RATES_DAILY" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bankofcanada/group?group=FX_RATES_DAILY", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bankofcanada/group?group=FX_RATES_DAILY", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "description": "Daily average exchange rates for various foreign currencies currently or historically published by the Bank of Canada, representing the valu…", "label": "Daily exchange rates", "name": "FX_RATES_DAILY", "series": [ { "label": "AUD/CAD", "name": "FXAUDCAD" }, { "label": "BRL/CAD", "name": "FXBRLCAD" } ] }, "meta": { "cached": false, "endpoint": "group", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bankofcanada", "requestId": "req_2Xb9kQ…", "units": 1 } }
groupRecent
/v1/bankofcanada/groupRecentThe most recent days of a Bank of Canada series group, with the value of each series per day, oldest first.
Parameters
groupstring required | Group name, such as FX_RATES_DAILY. e.g. FX_RATES_DAILY |
recentinteger | Number of most recent days, from 1 to 1000. default 5e.g. 2 |
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
4 fields
group | string |
items | GroupDay[] |
date | string |
values | map |
curl "https://api.hoshime.com/v1/bankofcanada/groupRecent?group=FX_RATES_DAILY&recent=2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bankofcanada/groupRecent?group=FX_RATES_DAILY&recent=2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bankofcanada/groupRecent?group=FX_RATES_DAILY&recent=2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "group": "FX_RATES_DAILY", "items": [ { "date": "2019-12-31", "values": { "FXVNDCAD": 0.000056 } }, { "date": "2019-12-30", "values": { "FXVNDCAD": 0.000056 } } ] }, "meta": { "cached": false, "endpoint": "groupRecent", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bankofcanada", "requestId": "req_2Xb9kQ…", "units": 1 } }
searchSeries
/v1/bankofcanada/searchSeriesBank of Canada series whose name, label or description contains every word of a query, such as exchange rate or inflation, with cursor paging.
Parameters
querystring required | Words to find in a series name, label or description, such as inflation CPI. e.g. exchange rate |
limitinteger | Items per page, 1 to 100. default 20e.g. 3 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
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
3 fields
description | string |
label | string |
name | string |
curl "https://api.hoshime.com/v1/bankofcanada/searchSeries?query=exchange+rate&limit=3" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bankofcanada/searchSeries?query=exchange+rate&limit=3", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bankofcanada/searchSeries?query=exchange+rate&limit=3", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "…", "label": "…", "name": "…" } ], "meta": { "cached": false, "endpoint": "searchSeries", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bankofcanada", "requestId": "req_2Xb9kQ…", "units": 1 } }
searchGroups
/v1/bankofcanada/searchGroupsBank of Canada series groups whose name, label or description contains every word of a query, such as mortgage or treasury bills, with cursor paging.
Parameters
querystring required | Words to find in a group name, label or description, such as mortgage. e.g. mortgage |
limitinteger | Items per page, 1 to 100. default 20e.g. 3 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
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
3 fields
description | string |
label | string |
name | string |
curl "https://api.hoshime.com/v1/bankofcanada/searchGroups?query=mortgage&limit=3" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bankofcanada/searchGroups?query=mortgage&limit=3", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bankofcanada/searchGroups?query=mortgage&limit=3", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "…", "label": "…", "name": "…" } ], "meta": { "cached": false, "endpoint": "searchGroups", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bankofcanada", "requestId": "req_2Xb9kQ…", "units": 1 } }