statcan_bc_latest
Latest B.C. values from a Statistics Canada table
The latest N reference periods of one British Columbia series from a curated Statistics Canada table, fetched live from the Web Data Service. For the two city tables (18100001 gasoline prices, 46100092 asking rents) pass geography, one named city: there is no B.C. total and cities are never added together. Values keep their unit, scalar factor, status and revision flags; a value that is suppressed or not available is null with its status spelled out. Use statcan_table_dimensions to pick members.
Cost: 5 units of your allowance (see Rate limits).
Parameters
product_id(integer, required): min 10000000, max 99999999geography(string, optional): City tables only (gasoline prices 18100001, asking rents 46100092): the British Columbia city to answer for, from statcan_tables. Required there, refused elsewhere.. min length 1, max length 80latest_n(integer, optional): min 1, max 24, default3members(object, optional): Dimension name to member name, from statcan_table_dimensions. Unnamed dimensions take their total or root member.
REST
curl -X POST https://api.bcmcp.ca/v1/tools/statcan_bc_latest \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-d '{"product_id":10000000}'MCP
Call the tool statcan_bc_latest with these arguments. Over raw JSON-RPC:
curl -X POST https://api.bcmcp.ca/mcp \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"statcan_bc_latest","arguments":{"product_id":10000000}}}'What comes back
Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.