BC Data docs

catalogue_search

Search the BC Data Catalogue

Keyword search over the metadata of the province's open data catalogue: dataset title, description, publisher, licence, tags and formats. Filter by licence access (open, review, access_only), publisher name or file format. Returns datasets and where to get them, not the data files.

Cost: 2 units of your allowance (see Rate limits).

Parameters

  • query (string, required): min length 1, max length 200
  • access (open, review, access_only, optional)
  • organization (string, optional): min length 1, max length 100
  • format (string, optional): min length 1, max length 20
  • limit (integer, optional): min 1, max 25, default 10

REST

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

MCP

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

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