Skip to content

Bank of Canada API

9 endpointsFinance & CryptoCAsocial:read7 real examples

Returns Bank of Canada series observations, descriptions and history, daily exchange rates, and series groups.

View as Markdown
GET/bankofcanada/observationsObservations of one Bank of Canada series, the most recent ones, oldest first.
GET/bankofcanada/fxRatesThe latest daily exchange rates the Bank of Canada publishes, in Canadian dollars.
GET/bankofcanada/seriesThe description of one Bank of Canada series: its label, frequency and unit.
GET/bankofcanada/historyObservations of one Bank of Canada series between two days, oldest first.
GET/bankofcanada/seriesBatchThe most recent observations of up to ten Bank of Canada series in one call, oldest first.
GET/bankofcanada/groupA Bank of Canada series group: its label, description and the series it holds.
GET/bankofcanada/groupRecentThe most recent days of a Bank of Canada series group, with the value of each series per day, oldest first.
GET/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.
GET/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.

observations

GET/v1/bankofcanada/observations

Observations of one Bank of Canada series, the most recent ones, oldest first.

scope social:read1 unitcached 1 h

Parameters

series
string
required
Series name, such as FXUSDCAD.
e.g. FXUSDCAD
recent
integer
Number of most recent observations, from 1 to 1000.
default 10e.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

5 fields
itemsObservation[]
datestring
valuenumber (double)
labelstring
seriesstring
curl "https://api.hoshime.com/v1/bankofcanada/observations?series=FXUSDCAD&recent=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/bankofcanada/fxRates

The latest daily exchange rates the Bank of Canada publishes, in Canadian dollars.

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
datestring
itemsFXRate[]
labelstring
seriesstring
valuenumber (double)
curl "https://api.hoshime.com/v1/bankofcanada/fxRates" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/bankofcanada/series

The description of one Bank of Canada series: its label, frequency and unit.

scope social:read1 unitcached 24 h

Parameters

series
string
required
Series name, such as FXUSDCAD.
e.g. FXUSDCAD
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
descriptionstring
frequencystring
labelstring
namestring
unitstring
curl "https://api.hoshime.com/v1/bankofcanada/series?series=FXUSDCAD" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/bankofcanada/history

Observations of one Bank of Canada series between two days, oldest first.

scope social:read1 unitcached 1 h

Parameters

series
string
required
Series name, such as FXUSDCAD.
e.g. FXUSDCAD
start
string
required
First day in YYYY-MM-DD form.
e.g. 2024-01-02
end
string
Last day in YYYY-MM-DD form. Omit it for the latest day.
e.g. 2024-01-04
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
itemsObservation[]
datestring
valuenumber (double)
labelstring
seriesstring
curl "https://api.hoshime.com/v1/bankofcanada/history?series=FXUSDCAD&start=2024-01-02&end=2024-01-04" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/bankofcanada/seriesBatch

The most recent observations of up to ten Bank of Canada series in one call, oldest first.

scope social:read1 unitcached 30 minpaginated

Parameters

series
string
required
Comma-separated series names, such as FXUSDCAD,FXEURCAD. At most ten.
e.g. FXUSDCAD,FXEURCAD
recent
integer
Number of most recent observations per series, from 1 to 1000.
default 5e.g. 2
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
itemsObservation[]
datestring
valuenumber (double)
labelstring
seriesstring
curl "https://api.hoshime.com/v1/bankofcanada/seriesBatch?series=FXUSDCAD%2CFXEURCAD&recent=2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/bankofcanada/group

A Bank of Canada series group: its label, description and the series it holds.

scope social:read1 unitcached 24 h

Parameters

group
string
required
Group name, such as FX_RATES_DAILY.
e.g. FX_RATES_DAILY
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
descriptionstring
labelstring
namestring
seriesSeries[]
labelstring
namestring
curl "https://api.hoshime.com/v1/bankofcanada/group?group=FX_RATES_DAILY" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/bankofcanada/groupRecent

The most recent days of a Bank of Canada series group, with the value of each series per day, oldest first.

scope social:read1 unitcached 30 min

Parameters

group
string
required
Group name, such as FX_RATES_DAILY.
e.g. FX_RATES_DAILY
recent
integer
Number of most recent days, from 1 to 1000.
default 5e.g. 2
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

4 fields
groupstring
itemsGroupDay[]
datestring
valuesmap
curl "https://api.hoshime.com/v1/bankofcanada/groupRecent?group=FX_RATES_DAILY&recent=2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 24 hpaginated

Parameters

query
string
required
Words to find in a series name, label or description, such as inflation CPI.
e.g. exchange rate
limit
integer
Items per page, 1 to 100.
default 20e.g. 3
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
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

3 fields
descriptionstring
labelstring
namestring
curl "https://api.hoshime.com/v1/bankofcanada/searchSeries?query=exchange+rate&limit=3" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/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.

scope social:read1 unitcached 24 hpaginated

Parameters

query
string
required
Words to find in a group name, label or description, such as mortgage.
e.g. mortgage
limit
integer
Items per page, 1 to 100.
default 20e.g. 3
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
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

3 fields
descriptionstring
labelstring
namestring
curl "https://api.hoshime.com/v1/bankofcanada/searchGroups?query=mortgage&limit=3" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open