[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Elections Canada polling station results](https://spiral.ai/integrations/opencode/elections-canada-polling-station-results)

# How to Use Elections Canada polling station results in opencode

Returns candidate votes within a riding at polling station level, with elector counts, rejected ballots, and merged or void poll indicators. Use it to examine local voting patterns beneath the riding total.

|  |  |
| --- | --- |
| Model | Elections Canada polling station results |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Elections Canada polling station results in opencode

- Use Elections Canada polling station results for Halifax in 2021 to create a table of candidate votes, rejected ballots, and electors, preserving merged and void poll indicators.
- Use Elections Canada polling station results to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Elections Canada polling station results and tell me what changed since last week.
- Check Elections Canada polling station results and summarize what you find in three bullet points.
- Pull the newest data from Elections Canada polling station results and give me the result as a table.

## How to set up Elections Canada polling station results in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Elections Canada polling station results**: One request; the result comes back by polling or a webhook.

```bash
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": "elections-ca/elections/poll_results",
    "input": {
      "election": "42",
      "district_number": "<district_number>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Elections Canada polling station results on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Elections Canada polling station results tools and prices

- [Elections Canada official voting results and political contributions · Poll results](https://spiral.ai/tools/alexandria/elections-ca/elections/poll_results) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 500 | 100 | Polls per page. |
| offset | 0 to … | 0 | Index of the first poll to return. |

## What can you do with Elections Canada polling station results in opencode?

Build an election reference app with federal riding navigation, candidate results, and aggregate political funding summaries. Use Elections Canada's polling station records and published summary tables to check the calculations behind each view.

### Prepare a provincial election backgrounder

Build an Ontario briefing with a district overview, candidate margins, selected polling station breakdowns, and provincial totals. Add a separate section summarizing published contributions to the federal parties discussed.

### Build a federal election teaching exercise

Let students move from national totals to riding outcomes and polling station results. Include recipient-level contribution summaries as a separate exercise in reading political financing disclosures.

### Study party funding alongside electoral outcomes

Compare published party contribution totals with vote shares and seats, then examine selected ridings and polling stations. Keep funding and voting measures separate and describe associations without claiming that contributions caused an outcome.

### Create a public election reference browser

Provide province and riding navigation, candidate results, polling station tables, national comparisons, and aggregate funding summaries for political recipients. Keep contribution displays focused on institutions and campaigns.

### Check an election analysis against official totals

Match district identifiers, total candidate votes, inspect merged polling stations, and compare the resulting figures with official riding and summary tables.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Elections Canada polling station results in other agents

- [Amp](https://spiral.ai/integrations/amp/elections-canada-polling-station-results)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/elections-canada-polling-station-results)
- [Claude](https://spiral.ai/integrations/claude-desktop/elections-canada-polling-station-results)
- [Claude Code](https://spiral.ai/integrations/claude-code/elections-canada-polling-station-results)
- [Cline](https://spiral.ai/integrations/cline/elections-canada-polling-station-results)
- [Codex](https://spiral.ai/integrations/codex/elections-canada-polling-station-results)
- [Cursor](https://spiral.ai/integrations/cursor/elections-canada-polling-station-results)
- [Devin](https://spiral.ai/integrations/devin/elections-canada-polling-station-results)
- [dots](https://spiral.ai/integrations/dots/elections-canada-polling-station-results)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/elections-canada-polling-station-results)
- [Gemini](https://spiral.ai/integrations/gemini/elections-canada-polling-station-results)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/elections-canada-polling-station-results)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/elections-canada-polling-station-results)
- [goose](https://spiral.ai/integrations/goose/elections-canada-polling-station-results)
- [Grok](https://spiral.ai/integrations/grok/elections-canada-polling-station-results)
- [Grok Build](https://spiral.ai/integrations/grok-build/elections-canada-polling-station-results)
- [Hermes](https://spiral.ai/integrations/hermes/elections-canada-polling-station-results)
- [Instinct](https://spiral.ai/integrations/instinct/elections-canada-polling-station-results)
- [Manus](https://spiral.ai/integrations/manus/elections-canada-polling-station-results)
- [Muse](https://spiral.ai/integrations/muse/elections-canada-polling-station-results)
- [Muse Code](https://spiral.ai/integrations/muse-code/elections-canada-polling-station-results)
- [n8n](https://spiral.ai/integrations/n8n/elections-canada-polling-station-results)
- [Notion](https://spiral.ai/integrations/notion/elections-canada-polling-station-results)
- [OpenClaw](https://spiral.ai/integrations/openclaw/elections-canada-polling-station-results)
- [Perplexity](https://spiral.ai/integrations/perplexity/elections-canada-polling-station-results)
- [Raycast](https://spiral.ai/integrations/raycast/elections-canada-polling-station-results)
- [VS Code](https://spiral.ai/integrations/vscode/elections-canada-polling-station-results)
- [Windsurf](https://spiral.ai/integrations/windsurf/elections-canada-polling-station-results)
- [Zapier](https://spiral.ai/integrations/zapier/elections-canada-polling-station-results)

## More opencode guides

- [Elections Canada political contributions](https://spiral.ai/integrations/opencode/elections-canada-political-contributions)
- [Elections Canada riding list](https://spiral.ai/integrations/opencode/elections-canada-riding-list)
- [Elections Canada election summary tables](https://spiral.ai/integrations/opencode/elections-canada-election-summary-tables)
- [Elections Canada riding results](https://spiral.ai/integrations/opencode/elections-canada-riding-results)
- [Elections Alberta voting location results](https://spiral.ai/integrations/opencode/elections-alberta-voting-location-results)
- [Etimad government tender search](https://spiral.ai/integrations/opencode/etimad-government-tender-search)

## Questions about Elections Canada polling station results in opencode

**Can opencode use Elections Canada polling station results?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Elections Canada polling station results like any built-in tool.

**How much does Elections Canada polling station results cost in opencode?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use Elections Canada polling station results in opencode?**

No. Spiral runs Elections Canada polling station results on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Elections Canada polling station results in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Elections Canada polling station results runs?**

Elections Canada polling station results runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does Elections Canada provide results outside the national totals?**

Yes. Its 2021 official results are available for individual federal electoral districts, each province or territory, and all of Canada.

**How detailed are the official voting results?**

The polling station files report candidate votes, rejected ballots, and listed electors. They also identify void polls and results merged into another polling station.

**What do the election summary tables cover?**

The 2021 release has 13 summary tables. They cover turnout, voting methods, special ballots, party votes and seats, candidate results, electoral districts, and returning officers.

**How far back do the maintained contribution downloads go?**

The maintained downloads cover contributions to all political entities from January 2004 to the present. Elections Canada updates those downloads weekly; that schedule does not establish when an individual search result changes.

**How soon do financial reports become public?**

Elections Canada generally publishes an original financial report within approximately 10 business days of receiving a complete signed version. That interval starts when the report is received, rather than when a contribution is made.

