BC Data docs

elections_totals

Provincewide totals by party

Seats and votes by party for one election: seats marked elected by the source, seats where a party is currently leading, and total votes. For a preliminary count the leading seats are not results. Ties are not resolved.

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

Parameters

  • election_id (string, optional): min length 3, max length 20, default "2024-ge"

REST

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

MCP

Call the tool elections_totals 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":"elections_totals","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