BC Data docs

municipal_datasets

Municipal open data datasets (links)

Find datasets listed on the Surrey, Victoria and Abbotsford open data portals by a word or part of a word in the title or keywords (use the stem: tree finds Street Trees), optionally one portal and a modified-since date. Returns the title, the portal, the date the portal says the dataset was modified, its formats, and the portal page to open. The data itself is not fetched or stored. Vancouver and Chilliwack are not served (see municipal_portals).

Cost: 1 unit of your allowance (see Rate limits).

Parameters

  • portal (surrey, victoria, abbotsford, vancouver, chilliwack, optional)
  • query (string, optional): min length 1, max length 80
  • modified_since (string, optional)
  • limit (integer, optional): min 1, max 50, default 20

REST

curl -X POST https://api.bcmcp.ca/v1/tools/municipal_datasets \
  -H "Authorization: Bearer $BCDATA_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

MCP

Call the tool municipal_datasets 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":"municipal_datasets","arguments":{}}}'

What comes back

Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.

On this page