> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Bank of Canada

> Bank of Canada Valet API: exchange rates, interest rates and other Bank of Canada statistical series, keyless.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/bankofcanada.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=a9aa75026a3ab66cc8fade92512596bb)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

No key needed

Endpoints

7

Auth

None

[Vendor docs](https://www.bankofcanada.ca/valet/docs)

## Notes

* Free and keyless; no credentials.
* Data is organised as series (one time series, e.g. FXUSDCAD) and groups (a named set of series, e.g. FX\_RATES\_DAILY). Find names with bankofcanada.search.series / bankofcanada.search.groups or bankofcanada.lists.
* Most paths end in a format segment: json, csv or xml. Use json unless a file is wanted.
* Exchange-rate series are named FX\[currency1]\[currency2] (FXUSDCAD); rates are indicative, published once each business day by 16:30 ET.
* Data can lag publication briefly; if today's value is missing, check again later in the day.

## Endpoints

GET

Get series observations

Observations of one or more series (exchange rates, interest rates, statistics), filtered by date range or most recent N.

[Open](#bankofcanada-observations-series)

GET

Get group observations

Observations of every series in a group (e.g. all daily exchange rates), filtered by date range or most recent N.

[Open](#bankofcanada-observations-group)

GET

Get series details

Label and description of one series.

[Open](#bankofcanada-series-get)

GET

Get group details

A group's details and the series it contains.

[Open](#bankofcanada-groups-get)

GET

List all series or groups

Names of every available series or every group.

[Open](#bankofcanada-lists)

GET

Search series

Paginated series whose label matches a query.

[Open](#bankofcanada-search-series)

GET

Search groups

Paginated groups whose label matches a query.

[Open](#bankofcanada-search-groups)

### Get series observations

GET

`/observations/{seriesNames}/{format}`

`bankofcanada.observations.series`

Observations of one or more series (exchange rates, interest rates, statistics), filtered by date range or most recent N.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`seriesNames` required</td><td>string</td><td>path</td><td>Comma-separated series names. Example `FXUSDCAD,FXEURCAD`</td></tr>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `csv`, `xml` Example `json`</td></tr>
    <tr><td>`start_date`</td><td>string</td><td>query</td><td>Observations on or after this date (YYYY-MM-DD). Example `2023-01-23`</td></tr>
    <tr><td>`end_date`</td><td>string</td><td>query</td><td>Observations on or before this date (YYYY-MM-DD). Example `2023-07-19`</td></tr>

    <tr>
      <td>
        `recent`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        The most recent N observations per series.
      </td>
    </tr>

    <tr>
      <td>
        `recent_weeks`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        The last N weeks of observations per series.
      </td>
    </tr>

    <tr>
      <td>
        `recent_months`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        The last N months of observations per series.
      </td>
    </tr>

    <tr>
      <td>
        `recent_years`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        The last N years of observations per series.
      </td>
    </tr>

    <tr><td>`order_dir`</td><td>string</td><td>query</td><td>Order of observations per series. One of `asc`, `desc`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.bankofcanada.ca/valet/docs) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-quotes-historical)

```python Python theme={null}
router.call_data_api("bankofcanada.observations.series", {'seriesNames': 'FXUSDCAD,FXEURCAD', 'format': 'json', 'start_date': '2023-01-23', 'end_date': '2023-07-19'})
```

```text MCP theme={null}
call_data_api(endpoint="bankofcanada.observations.series", params={"seriesNames": "FXUSDCAD,FXEURCAD", "format": "json", "start_date": "2023-01-23", "end_date": "2023-07-19"})
```

> [!NOTE]
>
> * recent, recent\_weeks, recent\_months and recent\_years cannot be combined with start\_date/end\_date.
> * Date filters apply only to time series.

### Get group observations

GET

`/observations/group/{groupName}/{format}`

`bankofcanada.observations.group`

Observations of every series in a group (e.g. all daily exchange rates), filtered by date range or most recent N.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`groupName` required</td><td>string</td><td>path</td><td>Group name. Example `FX_RATES_DAILY`</td></tr>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `csv`, `xml` Example `json`</td></tr>

    <tr>
      <td>
        `start_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Observations on or after this date (YYYY-MM-DD).
      </td>
    </tr>

    <tr>
      <td>
        `end_date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Observations on or before this date (YYYY-MM-DD).
      </td>
    </tr>

    <tr>
      <td>
        `recent`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        The most recent N observations per series.
      </td>
    </tr>

    <tr>
      <td>
        `recent_weeks`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        The last N weeks of observations per series.
      </td>
    </tr>

    <tr>
      <td>
        `recent_months`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        The last N months of observations per series.
      </td>
    </tr>

    <tr>
      <td>
        `recent_years`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        The last N years of observations per series.
      </td>
    </tr>

    <tr><td>`order_dir`</td><td>string</td><td>query</td><td>Order of observations per series. One of `asc`, `desc`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.bankofcanada.ca/valet/docs) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Binance](https://docs.webrouter.net/data-apis/binance.md#binance-klines), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-quotes-historical)

```python Python theme={null}
router.call_data_api("bankofcanada.observations.group", {'groupName': 'FX_RATES_DAILY', 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="bankofcanada.observations.group", params={"groupName": "FX_RATES_DAILY", "format": "json"})
```

> [!NOTE]
>
> * recent\_\* parameters cannot be combined with start\_date/end\_date.

### Get series details

GET

`/series/{seriesName}/{format}`

`bankofcanada.series.get`

Label and description of one series.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`seriesName` required</td><td>string</td><td>path</td><td>Series name. Example `FXUSDCAD`</td></tr>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `csv`, `xml` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.bankofcanada.ca/valet/docs) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-parameters-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata), [CISA Known Exploited Vulnerabilities (KEV) catalog](https://docs.webrouter.net/data-apis/cisa-kev.md#cisa-kev-catalog-schema)

```python Python theme={null}
router.call_data_api("bankofcanada.series.get", {'seriesName': 'FXUSDCAD', 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="bankofcanada.series.get", params={"seriesName": "FXUSDCAD", "format": "json"})
```

### Get group details

GET

`/groups/{groupName}/{format}`

`bankofcanada.groups.get`

A group's details and the series it contains.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`groupName` required</td><td>string</td><td>path</td><td>Group name. Example `FX_RATES_DAILY`</td></tr>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `csv`, `xml` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.bankofcanada.ca/valet/docs) · Same job: [Affinity](https://docs.webrouter.net/data-apis/affinity.md#affinity-companies-fields), [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-parameters-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata), [CISA Known Exploited Vulnerabilities (KEV) catalog](https://docs.webrouter.net/data-apis/cisa-kev.md#cisa-kev-catalog-schema)

```python Python theme={null}
router.call_data_api("bankofcanada.groups.get", {'groupName': 'FX_RATES_DAILY', 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="bankofcanada.groups.get", params={"groupName": "FX_RATES_DAILY", "format": "json"})
```

### List all series or groups

GET

`/lists/{type}/{format}`

`bankofcanada.lists`

Names of every available series or every group.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`type` required</td><td>string</td><td>path</td><td>Which list to return. One of `groups`, `series` Example `groups`</td></tr>
    <tr><td>`format` required</td><td>string</td><td>path</td><td>Response format. One of `json`, `csv`, `xml` Example `json`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.bankofcanada.ca/valet/docs) · Same job: [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-groups-search), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-objects-list), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-datasets-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-list), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-tables-query), [CMS Open Payments](https://docs.webrouter.net/data-apis/cms-open-payments.md#cms-open-payments-datasets-list)

```python Python theme={null}
router.call_data_api("bankofcanada.lists", {'type': 'groups', 'format': 'json'})
```

```text MCP theme={null}
call_data_api(endpoint="bankofcanada.lists", params={"type": "groups", "format": "json"})
```

> [!NOTE]
>
> * The series list is large; prefer bankofcanada.search.series to find a series by keyword.

### Search series

GET

`/search/series`

`bankofcanada.search.series`

Paginated series whose label matches a query.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`search`</td><td>string</td><td>query</td><td>Search query; quoted phrases supported. Example `overnight rate`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, starting at 1.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.bankofcanada.ca/valet/docs) · Same job: [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-groups-search), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-objects-list), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-datasets-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-list), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-tables-query), [CMS Open Payments](https://docs.webrouter.net/data-apis/cms-open-payments.md#cms-open-payments-datasets-list)

```python Python theme={null}
router.call_data_api("bankofcanada.search.series", {'search': 'overnight rate'})
```

```text MCP theme={null}
call_data_api(endpoint="bankofcanada.search.series", params={"search": "overnight rate"})
```

> [!NOTE]
>
> * No match or a page past the end returns 200 with a message field, not an error.

### Search groups

GET

`/search/groups`

`bankofcanada.search.groups`

Paginated groups whose label matches a query.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search query; quoted phrases supported.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, starting at 1.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.bankofcanada.ca/valet/docs) · Same job: [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-groups-search), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-objects-list), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-datasets-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-list), [Clay](https://docs.webrouter.net/data-apis/clay.md#clay-tables-query), [CMS Open Payments](https://docs.webrouter.net/data-apis/cms-open-payments.md#cms-open-payments-datasets-list)

```python Python theme={null}
router.call_data_api("bankofcanada.search.groups")
```

```text MCP theme={null}
call_data_api(endpoint="bankofcanada.search.groups")
```

> [!NOTE]
>
> * No match or a page past the end returns 200 with a message field, not an error.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.