Elections Canada

v0.1.0
io.github.pipeworx-io/elections-canada Checked 1 day ago Published 1 day ago

Elections 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" }).

ParameterTypeDescription
query *stringPart of a district name, e.g. "Ottawa" or "Vanier". Accents and dashes are ignored.
provincestringProvince 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 }).

ParameterTypeDescription
district *stringDistrict name (e.g. "Ottawa Centre") or 5-digit district number (e.g. "35079").
limitnumberPolls per page (default 25, max 200).
offsetnumberPolls to skip (default 0).
pollstringOptional polling division number to return only that poll, e.g. "12" or "45A".