Elections Canada
v0.1.0Elections Canada pack: official voting results by electoral district and polling division for the…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
elections_canada_districts
Find Canadian federal electoral districts (ridings) and their 5-digit district numbers from the Elections Canada official results for the 45th general election (2025). Filter by a name fragment and/or province. query is required; province optionally narrows it. Example: elections_canada_districts({ query: "Ottawa" }).
| Parameter | Type | Description |
|---|---|---|
query * | string | Part of a district name, e.g. "Ottawa" or "Vanier". Accents and dashes are ignored. |
province | string | Province or territory name, e.g. "Ontario", or the 2-digit province prefix of the district number, e.g. "35". |
elections_canada_poll_results
Official poll-by-poll votes by candidate for one Canadian federal electoral district in the 45th general election (28 April 2025), from Elections Canada official voting results: per polling division valid votes for each candidate with party, rejected ballots and electors, plus district totals and the elected candidate. Optionally narrow to one polling division number. Paged: use offset and limit. Example: elections_canada_poll_results({ district: "Ottawa Centre", limit: 5 }).
| Parameter | Type | Description |
|---|---|---|
district * | string | District name (e.g. "Ottawa Centre") or 5-digit district number (e.g. "35079"). |
limit | number | Polls per page (default 25, max 200). |
offset | number | Polls to skip (default 0). |
poll | string | Optional polling division number to return only that poll, e.g. "12" or "45A". |