Statistics Canada (www150.statcan.gc.ca) · Table metadata
statcan-gc-ca/economic-statistics/table_metadataGet market and financial data with Statistics Canada (www150.statcan.gc.ca) · Table metadata from Alexandria through one Spiral API key. After search_tables, to see a table's dimensions and member names before calling table_data; or to resolve a table number pasted from a page. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
url | text | — | A StatCan table-viewer URL (https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000401), instead of table. |
table | text | — | Table id in any StatCan spelling: 18100004, 1810000401, 18-10-0004-01 or 18-10-0004. |
max_members | number 1 to 5000 | 200 | Members listed per dimension at most. |
member_query | text | — | Only members whose English or French name contains this text. |
include_footnotes | true or false | — | include_footnotes |
Same request in code
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/table_metadata",
"input": {
"url": "<url>"
}
}'Frequently asked questions
How much does Statistics Canada (www150.statcan.gc.ca) · Table metadata cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use Statistics Canada (www150.statcan.gc.ca) · Table metadata through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "statcan-gc-ca/economic-statistics/table_metadata"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use Statistics Canada (www150.statcan.gc.ca) · Table metadata?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use Statistics Canada (www150.statcan.gc.ca) · Table metadata?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.