Bank of Canada Inflation (CPI)
bankofcanada.rates.inflationGet Canadian Consumer Price Index (CPI) inflation measures published by the Bank of Canada Valet API. Returns four monthly series as year-over-year percentage changes: total_cpi_yoy_pct (all-items CPI), core_cpi_yoy_pct (CPI excluding food and energy), cpiw_yoy_pct (CPIW — basket-weight-adjusted measure), cpi_median_yoy_pct (median year-over-year CPI change). Default: 12 most-recent monthly observations (one year). Use start_date/end_date for historical ranges. These are the Bank of Canada's key inflation tracking measures, used to assess achievement of the 2% inflation target. Source: Bank of Canada, www.bankofcanada.ca — open data, attribution required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recent | No | Number of most-recent monthly observations to return (default 12 = one year). CPI data is published monthly by Statistics Canada. Ignored when start_date or end_date is provided. | |
| end_date | No | End date for historical range in YYYY-MM-DD format (e.g. "2026-05-01"). Defaults to the most recent available month. | |
| start_date | No | Start date for historical range in YYYY-MM-DD format (e.g. "2020-01-01"). Monthly data — use the first of the month. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |