Bank of Canada Valet API
Free Bank of Canada Valet API with no key: official exchange rates, interest rates, bond yields and economic series with decades of history. Tested example.
Endpoint tested and returned HTTP 200 on 20 Aug 2026
What is the Bank of Canada Valet API?
The Bank of Canada Valet API is a free, key-free official API providing Canadian economic data — daily exchange rates, policy interest rates, bond yields and inflation series — with decades of historical coverage.
This is central bank data published directly by the Bank of Canada, which makes it authoritative for anything involving official Canadian exchange rates — the figures used for tax and accounting purposes.
The series-based model is worth understanding: everything is a named time series such as FXUSDCAD for the US dollar rate. You look up the series name once, then request observations, optionally as JSON, XML or CSV.
Quick facts
- Base URL
https://www.bankofcanada.ca/valet- Authentication
- No API key required.
- Rate limit
- No published hard limit; fair use expected.
- Pricing
- Free official central bank data.
- CORS
- Enabled — callable directly from browser JavaScript
- Official docs
- Read the docs
How to use the Bank of Canada Valet API
Every request below was executed against the live API on 20 Aug 2026, and the response shown is the real body it returned — not an illustration.
1. Fetch the latest USD/CAD exchange rate
GET https://www.bankofcanada.ca/valet/observations/FXUSDCAD/json?recent=1
curl 'https://www.bankofcanada.ca/valet/observations/FXUSDCAD/json?recent=1'const res = await fetch("https://www.bankofcanada.ca/valet/observations/FXUSDCAD/json?recent=1");
if (!res.ok) throw new Error(`Request failed: ${res.status}`);
const data = await res.json();
console.log(data);import requests
res = requests.get("https://www.bankofcanada.ca/valet/observations/FXUSDCAD/json?recent=1", timeout=20)
res.raise_for_status()
print(res.json()){
"terms": {
"url": "https://www.bankofcanada.ca/terms/"
},
"seriesDetail": {
"FXUSDCAD": {
"label": "USD/CAD",
"description": "Daily average exchange rate: daily value of the US dollar expressed in Canadian dollars, for 1 unit of US dollar",
"dimension": {
"key": "d",
"name": "Date"
}
}
},
"observations": [
{
"d": "2026-08-19",
"FXUSDCAD": {
"v": "1.3824"
}
}
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
observations/<series>/json | path | Required | Series name and output format. observations/FXUSDCAD/json |
recent | integer | Optional | Number of most recent observations. 10 |
start_date / end_date | string | Optional | Date range as YYYY-MM-DD. 2026-01-01 |
lists/series/json | path | Optional | List every available series. lists/series/json |
Response fields
terms.urlstring- Link to the terms of use.
seriesDetailobject- Metadata for each requested series — label, description, dimensions.
observationsarray- The data points.
observations[].dstring- Observation date.
observations[].<SERIES>.vstring- The value, as a string — parse before use.
What you can build with the Bank of Canada Valet API
- Convert currencies using official Bank of Canada rates for accounting
- Chart Canadian interest rate and bond yield history
- Support Canadian tax and compliance reporting
- Analyse long-run Canadian economic trends
Common errors and how to fix them
404
Unknown series name.
Fix: Series names are specific codes like FXUSDCAD. Request /lists/series/json to find valid names.
Values are strings
Observation values are returned as JSON strings.
Fix: Parse explicitly, and use decimal arithmetic for financial calculations.
No observation for a date
Rates publish on business days only.
Fix: Weekends and Canadian holidays have no observation — read the date field rather than assuming continuity.
Bank of Canada Valet API — frequently asked questions
Is the Bank of Canada API free?
Yes, completely free with no API key. It is official central bank data.
Which series should I use for USD to CAD?
FXUSDCAD gives the daily average US dollar to Canadian dollar rate. Request /lists/series/json to browse the full catalogue.
Are these rates suitable for accounting?
Yes — Bank of Canada rates are the official reference used for Canadian tax and accounting purposes, which is their main advantage over commercial FX APIs.
Why are some dates missing?
Rates are published on business days only, so weekends and Canadian public holidays have no observation.
Tools that pair with this API
JSON Formatter
Format, beautify and minify JSON online with 2-space, 4-space or tab indentation. Sort keys alphabetically and catch syntax errors instantly — free and private.
Percentage Calculator
Calculate what X% of a number is, what percent one number is of another, and percentage increase or decrease between two values — instantly and free.
Unit Converter
Convert between units of length, weight, temperature, area, volume, speed, time and data storage instantly, with a swap button and common conversion tables.
Alternatives to Bank of Canada Valet API
If Bank of Canada Valet does not fit, these finance & crypto apis cover similar ground. Every one was called before publishing, and each links to its own reference page with a working curl command and the response it returned.
| API | What it does | Auth | CORS | Last verified |
|---|---|---|---|---|
| CoinGecko | Free cryptocurrency price API covering 10,000+ coins. Live prices, market cap and volume in any currency, no API key on the public tier. Tested curl example. | No key | Yes | 19 Aug 2026 |
| Binance Public API | Binance public market data API needs no API key: live ticker prices, order books, klines and 24h stats for every trading pair. Tested curl example and response. | No key | Yes | 19 Aug 2026 |
| Coinbase Exchange Rates | Coinbase public exchange rates API with no key: convert any cryptocurrency to 100+ fiat currencies in a single request. Tested curl example and live JSON. | No key | Yes | 19 Aug 2026 |
| Frankfurter | Free currency exchange rate API with no key, built on European Central Bank data. Latest and historical rates, time series and conversion. Tested curl example. | No key | Yes | 19 Aug 2026 |
| Bank of England IADB | Free Bank of England Interactive Database with no key: SONIA, Bank Rate, gilt yields and UK monetary series as CSV by series code and date range. Tested example. | No key | No | 21 Aug 2026 |
| Bank of Lithuania FX Rates | Free Bank of Lithuania FX rates web service with no key: official euro reference rates for every quoted currency as XML, current or for any past date. | No key | No | 21 Aug 2026 |
Bank of Canada Valet is an independent third-party service and is not affiliated with ByteTools or ByteVancer. Details on this page were verified on 20 Aug 2026; always check the official documentation before relying on this API in production, as terms and limits can change.