How to Use Statistics Canada table updates in VS Code
Returns the identifiers and release times of Statistics Canada tables that changed. Use it to decide which economic datasets need refreshing before fetching their values.
Prompts to try with Statistics Canada table updates in VS Code
Copy an example into VS Code, or ask in your own words.
Use Statistics Canada table updates to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Statistics Canada table updates and tell me what changed since last week.
Check Statistics Canada table updates and summarize what you find in three bullet points.
Pull the newest data from Statistics Canada table updates and give me the result as a table.
Check Statistics Canada table updates every morning and tell me only when something changed.
How to set up Statistics Canada table updates in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Statistics Canada table updates
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "statcan-gc-ca/economic-statistics/changed_tables", "input": { "date": "<date>" } }'
Then paste one of the prompts above: VS Code finds Statistics Canada table updates on Spiral, shows the price and runs it.
Statistics Canada table updates providers and prices
Spiral runs Statistics Canada table updates through Alexandria. Open a card for today's price, with every fee included.
What can you do with Statistics Canada table updates in VS Code?
Build a Canadian economic dashboard with StatCan observations and links to the releases behind them. A coding agent can turn the source's table definitions and series into chart data and explanatory text in your project.
Prepare an inflation briefing
Find the latest CPI announcement, read its explanation, identify the supporting table, inspect its definitions, and compare observations with a known vector series. Check table updates before refreshing the briefing.
Write a provincial labor market report
Discover the latest Labour Force Survey release, locate the monthly labor table, confirm the available provincial categories, and compare unemployment observations. Reuse identified vectors for later editions and check which tables changed.
Maintain a Canadian economic dashboard
Discover relevant releases and datasets, check table definitions, and populate charts with selected observations or known vectors. Use changed-table results to choose what to refresh and Daily articles to explain new movements.
Check statistics before publication
Trace an economic claim to its Daily article and statistical table. Confirm the categories, compare table observations with the cited vector, and check for table updates before publishing the final report.
Refresh established chart series
Check whether the source tables changed, then retrieve observations for the table selections or vectors already used in an inflation or employment chart.
More on Statistics Canada table updates and VS Code
Overview
Statistics Canada table updates in other agents
Questions about Statistics Canada table updates in VS Code
Can VS Code use Statistics Canada table updates?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Statistics Canada table updates like any built-in tool.
How much does Statistics Canada table updates cost in VS Code?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need an Alexandria account to use Statistics Canada table updates in VS Code?
No. Spiral runs Statistics Canada table updates on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Statistics Canada table updates in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while Statistics Canada table updates runs?
Statistics Canada table updates runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.
Does Statistics Canada provide individual survey responses?
The public data API provides aggregate statistics and metadata. Its documented coverage is public statistical databases, rather than individual survey responses.
When does Statistics Canada publish new information?
The Daily normally appears Monday through Friday at 8:30 a.m. Eastern time, excluding holidays. Statistics Canada's data service also publishes updates each business day.
Are archived tables still updated?
No. Statistics Canada defines an archived table as publicly available but no longer updated, so an accessible historical table may not contain current observations.
Can published observations be preliminary or revised?
Yes. Statistics Canada identifies preliminary observations with p and revised observations with r; those distinctions matter when comparing a published release with later table values.
Does every statistic cover the same geographic areas?
No. Available geography depends on the table: monthly CPI table 18-10-0004-01 includes national, provincial or territorial, and selected municipal and metropolitan geography types.
Start using Statistics Canada table updates in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


