# Statistics Canada API: CPI, Jobs, GDP, Retail & Housing

Statistics Canada data from the official Web Data Service: CPI and core inflation, unemployment and employment, wages, monthly and quarterly GDP, retail and manufacturing sales, housing starts and prices, building permits, exports and population. 20 presets or any vector, with release times.

$0.16 per 1,000 observations

[Get an API key](https://pushbuild.com/apis/app/signup?api=statistics-canada-data)

Example request

```
POST /statistics-canada-data/run
{
  "presets": [
    "cpi",
    "unemployment-rate",
    "gdp-monthly",
    "retail-sales"
  ],
  "maxItems": 20
}
```

## What a response looks like

POST /statistics-canada-data/run{"maxItems": 5, "presets": ["cpi", "unemployment-rate", "gdp-monthly", "retail-sales"]}

```
{"count": 5, "items": [{ "change": null, "frequency": "Monthly", "preset": "unemployment-rate", "refPeriod": "2025-11-01", "releaseTime": "2026-06-05T08:30", "scale": "units", "status": null, "table": 14100287, "tableTitle": "Labour force characteristics, monthly, seasonally ad… "title": "Canada;Unemployment rate;Total - Gender;15 years and over… … ]}
```

`change` by `frequency` in this sample response

| change | frequency | preset | refPeriod | releaseTime | scale |
| --- | --- | --- | --- | --- | --- |
|  | Monthly | unemployment-rate | 2025-11-01 | 2026-06-05T08:30 | units |
| 0.2 | Monthly | unemployment-rate | 2025-12-01 | 2026-07-10T08:30 | units |
| -0.3 | Monthly | unemployment-rate | 2026-01-01 | 2026-08-07T08:30 | units |
| 0.2 | Monthly | unemployment-rate | 2026-02-01 | 2026-09-04T08:30 | units |
| 0 | Monthly | unemployment-rate | 2026-03-01 | 2026-10-09T08:30 | units |

Real rows returned by this API on 2026-11-09 for the request shown.

## What it returns

Canadian economic statistics from Statistics Canada's official Web Data Service, one row per vector and reference period, with the release time and the change from the previous period.

| field | meaning |
| --- | --- |
| `vectorId`, `vector`, `preset` | the Statistics Canada vector and preset name |
| `table`, `tableTitle`, `title` | the source table and the series' dimension labels |
| `unit`, `scale`, `frequency` | unit of measure, scalar factor (units, thousands, millions) and frequency |
| `refPeriod`, `value`, `change` | reference period, value and change from the previous period |
| `releaseTime` | when Statistics Canada released this value (Eastern time); a revision moves it to the revision's release |
| `status`, `terminated`, `source` | observation status, whether the series is discontinued, and the table on statcan.gc.ca |

## Request

`POST https://api.pushbuild.com/statistics-canada-data/run` with a JSON body. Send your key in the `X-API-Key` header.

| Field | Type | Description |
| --- | --- | --- |
| `presets` | list of strings | Headline Canadian series. Default when nothing is chosen: CPI, unemployment rate, monthly GDP and retail sales. |
| `vectorIds` | list of strings | Any Statistics Canada vector id, with or without the v prefix, for example v2062815 (unemployment rate). Up to 300. |
| `lastN` | integer | Most recent reference periods per vector. Ignored when startDate is set. Default: `12`. |
| `startDate` | string | Return every reference period from this date, for example 2020-01-01. Optional. |
| `endDate` | string | Last reference period to include when startDate is set. Optional. |
| `changes` | boolean | Add the change from the previous period in the same vector. Default: `true`. |
| `maxItems` | integer | Maximum items to return (1-500). Default: `100`. |

### Example

```
curl -X POST https://api.pushbuild.com/statistics-canada-data/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"presets": ["cpi", "unemployment-rate", "gdp-monthly", "retail-sales"], "maxItems": 20}'
```

### Response

```
{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}
```

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

## Pricing

Pay only for results returned: $0.16 per 1,000 observations. No charge for errors or empty searches.

| Observations | Cost |
| --- | --- |
| 1,000 | $0.16 |
| 10,000 | $1.60 |
| 100,000 | $16.00 |
| 1,000,000 | $160.00 |
| 6,249 a month | Free ($1 monthly credit) |

## Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: `https://api.pushbuild.com/mcp/statistics-canada-data`. Add it to any assistant that supports remote MCP servers, with your key in the `X-API-Key` header. Same prices. [Setup for each app](https://pushbuild.com/apis/mcp.html).

## Related APIs

- [UK ONS Statistics API: CPI, GDP, Jobs & Wages API](https://pushbuild.com/apis/uk-ons-statistics.html): UK Office for National Statistics time series: CPI, CPIH, core and services inflation, RPI, GDP growth, monthly GDP, unemployment, employment, pay growth, retail sales, public borrowing and trade.
- [SingStat API: Singapore CPI, Core Inflation, GDP & NODX API](https://pushbuild.com/apis/singapore-singstat-data.html): Singapore Department of Statistics data from the official Table Builder API: CPI, MAS core inflation, GDP, unemployment, retail sales, industrial production and non-oil domestic exports presets, any Table Builder table, and table search..
- [Statistics Iceland API: CPI, Population & Tables API](https://pushbuild.com/apis/statistics-iceland-data.html): Official Statistics Iceland (Hagstofa) data: monthly CPI and inflation, quarterly population, GDP, a folder browser, table search and any official Icelandic table with filters, from the PxWeb API..
- [US Census Economic Indicators API: Retail, Housing, Durables API](https://pushbuild.com/apis/census-economic-indicators.html): US Census Bureau economic indicators, seasonally adjusted: retail sales (total, ex autos, ex gas), housing starts, permits and completions, new home sales and supply, durable and core capital goods orders, business inventories and the trade balance.
- [Statistics Denmark API: Statbank Tables, CPI, GDP & Rates API](https://pushbuild.com/apis/statistics-denmark.html): Any of Statistics Denmark's ~2,300 Statbank tables by id with dimension filters, plus presets for CPI, unemployment, GDP, population and Nationalbank policy rates, and a table search.
- [State Rulemaking Tracker: Proposed Rules and Hearings API](https://pushbuild.com/apis/state-rulemaking-tracker.html): Proposed, emergency and final state agency rules from state registers (WA, DE, NE, WI, TX, VA, PA): agency, rule numbers, purpose, public hearing date and comment deadline.

## Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

[hello@pushbuild.com](mailto:hello@pushbuild.com?subject=API%20question)

## New APIs and data, twice a month

New data APIs, coverage changes and analysis from Pushbuild. No spam; one click to leave.

---
As of 2026-12-03. Source: https://pushbuild.com/apis/statistics-canada-data.html
