Pushbuild

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

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.

FieldTypeDescription
presetslist of stringsHeadline Canadian series. Default when nothing is chosen: CPI, unemployment rate, monthly GDP and retail sales.
vectorIdslist of stringsAny Statistics Canada vector id, with or without the v prefix, for example v2062815 (unemployment rate). Up to 300.
lastNintegerMost recent reference periods per vector. Ignored when startDate is set. Default: 12.
startDatestringReturn every reference period from this date, for example 2020-01-01. Optional.
endDatestringLast reference period to include when startDate is set. Optional.
changesbooleanAdd the change from the previous period in the same vector. Default: true.
maxItemsintegerMaximum 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.

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

(617) 299-8887

Tell us about your project

A few questions so we can come back with a written scope. We reply within one business day.