[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Elections Canada riding list](https://spiral.ai/integrations/n8n/elections-canada-riding-list)

# How to Use Elections Canada riding list in n8n

Returns federal ridings with district numbers and election-level statistics, including turnout and the elected candidate. Use it to compare districts across a province and identify a riding for closer analysis.

|  |  |
| --- | --- |
| Model | Elections Canada riding list |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Elections Canada riding list in n8n

- Each month, use Elections Canada riding list to compare Ontario's 2021 district names, turnout, and elected candidates with the previous snapshot. Notify me only when a published value changes.
- Every Monday at 9am: use Elections Canada riding list to look this up and give me the result as a table.
- Pull the latest numbers from Elections Canada riding list and tell me what changed since last week.
- Check Elections Canada riding list and summarize what you find in three bullet points.
- Pull the newest data from Elections Canada riding list and give me the result as a table.

## How to set up Elections Canada riding list in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Elections Canada riding list in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Elections Canada riding list, prices it and runs it each time the step fires.

### 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 riding list**: 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/list_ridings",
    "input": {
      "election": "42"
    }
  }'
```

Then paste one of the prompts above: n8n finds Elections Canada riding list on Spiral, shows the price and runs it.

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

## Elections Canada riding list tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| province | NL, PE, NS, NB, QC, ON, MB, SK, AB, BC, YT, NT, NU | — | Only districts of this province or territory (two-letter code). |

## What can you do with Elections Canada riding list in n8n?

Keep an election reference brief current by checking published results and contribution records against an earlier snapshot. Report changes to political recipient totals separately from changes to historical voting tables.

### 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 n8n guides](https://spiral.ai/integrations/n8n)

## Elections Canada riding list in other agents

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

## More n8n guides

- [Elections Canada polling station results](https://spiral.ai/integrations/n8n/elections-canada-polling-station-results)
- [Elections Canada riding results](https://spiral.ai/integrations/n8n/elections-canada-riding-results)
- [Elections Canada political contributions](https://spiral.ai/integrations/n8n/elections-canada-political-contributions)
- [Etimad government tender search](https://spiral.ai/integrations/n8n/etimad-government-tender-search)
- [Elections Canada election summary tables](https://spiral.ai/integrations/n8n/elections-canada-election-summary-tables)
- [Etimad planned procurement projects](https://spiral.ai/integrations/n8n/etimad-planned-procurement-projects)

## Questions about Elections Canada riding list in n8n

**Can n8n use Elections Canada riding list?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Elections Canada riding list like any built-in tool.

**How much does Elections Canada riding list cost in n8n?**

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

**Do I need an Alexandria account to use Elections Canada riding list in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Elections Canada riding list on its own Alexandria account.

**How long does it take to set up Elections Canada riding list in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Elections Canada riding list runs?**

Elections Canada riding list runs in the background. n8n 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.

