← Return to tool atlas

statcan

Statistics Canada tools: search tables, retrieve metadata, fetch time series data, and monitor data changes.

15tools
All tools accept lang: "en" | "fr". Open each tool below for its source-derived parameters.
01

sc_search_cubes

Search Statistics Canada tables (cubes) by keyword using BM25 ranking.

Use forfinding relevant Statistics Canada data tables when you know a

statcan, statistics canada, table, cube, search, find, catalog, browse, dataset, survey, subject, BM25, keyword, lookup

ParameterTypeDefault
querystrrequired
limitint10
langLiteral['en', 'fr']'en'
02

sc_get_cube_metadata

Get full metadata and dimension structure for a Statistics Canada table.

Use forretrieving table title, frequency, date range, and all dimension

statcan, statistics canada, table, metadata, dimensions, product id, cube, structure, frequency, geography, members, schema

ParameterTypeDefault
product_idintrequired
langLiteral['en', 'fr']'en'
03

sc_get_code_sets

Get all WDS code sets for decoding numeric codes in StatCan responses.

Use fordecoding frequencyCode, scalarFactorCode, statusCode, symbolCode,

statcan, statistics canada, code sets, frequency, scalar, status, symbol, uom, decode, legend, reference, lookup

ParameterTypeDefault
langLiteral['en', 'fr']'en'
04

sc_get_series_info_by_vector

Get series metadata by vectorId (title, frequency, scalar factor, units).

Use forlooking up series title, frequency, and scalar factor when you

statcan, statistics canada, series, vector, metadata, vectorId, frequency, scalar, units, title, time series, info

ParameterTypeDefault
vector_idintrequired
langLiteral['en', 'fr']'en'
05

sc_get_series_info_by_coord

Get series metadata by productId + coordinate (dot-separated dimension members).

Use forlooking up a series when you know the table (productId) and the

statcan, statistics canada, series, coordinate, product id, table, dimension, members, metadata, frequency, scalar, time series

ParameterTypeDefault
product_idintrequired
coordinatestrrequired
langLiteral['en', 'fr']'en'
06

sc_get_data_by_vector

Get the latest N observations for a Statistics Canada series by vectorId.

Use forfetching recent data points for a known series (vectorId). Returns

statcan, statistics canada, observations, data, vector, vectorId, latest, recent, time series, values, historical, n periods

ParameterTypeDefault
vector_idintrequired
nint10
langLiteral['en', 'fr']'en'
07

sc_get_data_by_coord

Get the latest N observations for a Statistics Canada series by productId + coordinate.

Use forfetching recent data points when you know the table (productId)

statcan, statistics canada, observations, data, coordinate, product id, dimension, latest, recent, time series, n periods, values

ParameterTypeDefault
product_idintrequired
coordinatestrrequired
nint10
langLiteral['en', 'fr']'en'
08

sc_get_data_by_date_range

Get Statistics Canada observations within a reference period date range.

Use forfetching all data points between two reference period dates for a

statcan, statistics canada, observations, date range, reference period, vector, time series, historical, start date, end date, range, filter

ParameterTypeDefault
vector_idintrequired
start_datestrrequired
end_datestrrequired
langLiteral['en', 'fr']'en'
09

sc_get_bulk_vector_data

Get observations for multiple Statistics Canada series within a release date range.

Use forefficiently fetching data for many series at once when you care

statcan, statistics canada, bulk, multiple, vectors, release date, observations, batch, parallel, time series, data, efficient

ParameterTypeDefault
vector_idslist[int]required
start_releasestrrequired
end_releasestrrequired
langLiteral['en', 'fr']'en'
10

sc_get_changed_series

Get the list of Statistics Canada series (vectors) that changed today.

Use formonitoring which series were updated in today's release cycle.

statcan, statistics canada, changed, updated, series, vectors, today, monitoring, release, daily, changes, refresh

ParameterTypeDefault
langLiteral['en', 'fr']'en'
11

sc_get_changed_cubes

Get the list of Statistics Canada tables (cubes) that changed on a specific date.

Use forfinding which tables were updated on a given date (YYYY-MM-DD).

statcan, statistics canada, changed, updated, cubes, tables, date, monitoring, release, history, changes, refresh

ParameterTypeDefault
datestrrequired
langLiteral['en', 'fr']'en'
12

sc_get_sdmx_structure

Get SDMX dimension codelists for a Statistics Canada table.

Use forfetching dimension codelists for a StatCan table before building

SDMX, structure, codelist, dimension, filter, server-side, statcan, table, metadata, key, codes, schema

ParameterTypeDefault
product_idintrequired
langLiteral['en', 'fr']'en'
13

sc_get_sdmx_data

Get server-side filtered StatCan observations using SDMX key syntax.

Use forretrieving server-side filtered StatCan observations using SDMX

SDMX, data, filter, observations, key, server-side, statcan, dimension, date range, lastN, period, time series

ParameterTypeDefault
product_idintrequired
keystr''
start_periodstr | NoneNone
end_periodstr | NoneNone
last_nint | NoneNone
dimensionsdict | NoneNone
langLiteral['en', 'fr']'en'
14

sc_get_sdmx_vector_data

Get observations for a single StatCan vector via SDMX with date range filtering.

Use forretrieving observations for a single StatCan vector via SDMX with

SDMX, vector, observations, date range, time series, statcan, vectorId, filter, period, single series, SDMX-JSON

ParameterTypeDefault
vector_idintrequired
start_periodstr | NoneNone
end_periodstr | NoneNone
langLiteral['en', 'fr']'en'
15

sc_fetch_vectors_to_store

Fetch multiple StatCan vectors and store them to the shared datastore for SQL queries.

Use forfetching multiple StatCan vectors and storing them directly to the

composite, store, fetch, vectors, datastore, SQL, statcan, bridge, persist, table, bulk, cross-module

ParameterTypeDefault
vector_idslist[int]required
start_releasestrrequired
end_releasestrrequired
table_namestrrequired
langLiteral['en', 'fr']'en'