# Bank of Canada Valet API

Category: [Currency and finance](https://free-web-services.com/web-services/unit-convertors/)  
Page: https://free-web-services.com/web-services/unit-convertors/bank-of-canada-valet-api.html  
Documentation: https://www.bankofcanada.ca/valet/docs

The Valet API from the Bank of Canada gives its exchange rates and other financial series, for example the latest US dollar rate in Canadian dollars. Requests are GET calls with JSON answers. Free, no key needed, with the Bank of Canada credited as the source. The rates are indicative and not meant as a benchmark for executing trades.

- API key: Not needed
- Pricing: Free, no key needed, with the Bank of Canada credited as the source.
- Commercial use: Allowed on the free plan
- From the browser: Yes (CORS)
- Formats: JSON, XML, CSV
- Interface: REST, HTTP-GET
- Provider: bankofcanada.ca

Example request:

```sh
curl 'https://www.bankofcanada.ca/valet/observations/FXUSDCAD/json?recent=1'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

