/v1/meta
Spec
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/bankofcanada-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bankofcanada-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bankofcanada-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/bankofcanada-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"source": "Bank of Canada Valet API (live)",
"service": "bankofcanada-api",
"endpoints": {
"GET /v1/fx": "Official daily FX rates vs CAD (symbols=USD,EUR,… or all 24).",
"GET /v1/meta": "This document.",
"GET /v1/rates": "Policy interest rate (overnight target) + CORRA, with recent history.",
"GET /v1/yields": "Government of Canada benchmark bond-yield curve (2Y–long) + 10y-2y spread."
},
"description": "Live official Bank of Canada data from the public Valet API: official daily FX rates for 24 currencies against the Canadian dollar (both directions, with date); the policy interest rate (overnight target) plus CORRA with recent history; and the Government of Canada benchmark bond-yield curve (2/3/5/7/10-year and long) with the 10y-2y spread. Live, no key, nothing stored. Distinct from ECB-based FX and US-Treasury yield APIs — this is the Bank of Canada's own central-bank data.",
"upstream_status": "ok"
},
"meta": {
"timestamp": "2026-06-09T11:39:49.717Z",
"request_id": "f4fe6071-d3a7-453b-9463-6b832c0ea82a"
},
"status": "ok",
"message": "Meta",
"success": true
}