Firecrawl Alexandria

Elections Canada official voting results and political contributions

Elections Canada (elections.ca): official voting results of the 42nd (2015), 43rd (2019) and 44th (2021) federal general elections by electoral district (riding) and by poll, the 13 official summary tables (votes and seats by party, turnout, voting methods, candidates, returning officers), and the political financing contributions search (contributions to parties, riding associations, candidates and contestants). Results are read from the official CSV files Elections Canada publishes under the Open Government Licence - Canada; contributions from the anonymous search of the political financing database, whose records Elections Canada also publishes under that licence. Every output carries its source URL and the licence attribution.

Try Elections Canada official voting results and political contributions now.

Choose an example or ask your own question.

Elections Canada official voting results and political contributions
TRY ASKING
1Request
stringRequired

General election number: 44 (2021-09-20), 43 (2019-10-21) or 42 (2015-10-19). Elections Canada publishes these official voting results under the Open Government Licence - Canada; the 45th general election and by-elections are not yet released under that licence and are not served.

string

Only districts of this province or territory (two-letter code).

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "elections-ca",
    capability: "elections/list_ridings",
    options: {
      election: "44",
      province: "PE",
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from Elections Canada official voting results and political contributions.

{
  "count": 4,
  "election": {
    "date": "2021-09-20",
    "name": "44th General Election",
    "number": "44",
    "results_url": "https://www.elections.ca/res/rep/off/ovr2021app/home.html"
  },
  "licence": {
    "attribution": "Contains information licensed under the Open Government Licence - Canada. Source: Elections Canada, 44th General Election official voting results.",
    "dataset_url": "https://open.canada.ca/data/en/dataset/065439a9-c194-4259-9c95-245a852be4a1",
    "name": "Open Government Licence - Canada",
    "url": "https://open.canada.ca/en/open-government-licence-canada"
  },
  "observed_at_ms": 1792969367831,
  "province": "PE",
  "ridings": [
    {
      "district_name": "Cardigan",
      "district_number": "11001",
      "elected_candidate": "MacAulay, Lawrence Liberal/Libéral",
      "electors": 30843,
      "polling_stations": 93,
      "population": 36615,
      "province": "Prince Edward Island",
      "province_code": "PE",
      "rejected_ballots": 199,
      "rejected_ballots_pct": 0.9,
      "total_ballots_cast": 22293,
      "turnout_pct": 72.3,
      "valid_ballots": 22094,
      "valid_ballots_pct": 99.1
    },
    {
      "district_name": "Charlottetown",
      "district_number": "11002",
      "elected_candidate": "Casey, Sean Liberal/Libéral",
      "electors": 27383,
      "polling_stations": 71,
      "population": 36094,
      "province": "Prince Edward Island",
      "province_code": "PE",
      "rejected_ballots": 198,
      "rejected_ballots_pct": 1,
      "total_ballots_cast": 19298,
      "turnout_pct": 70.5,
      "valid_ballots": 19100,
      "valid_ballots_pct": 99
    },
    {
      "district_name": "Egmont",
      "district_number": "11003",
      "elected_candidate": "Morrissey, Bobby Liberal/Libéral",
      "electors": 28729,
      "polling_stations": 97,
      "population": 34168,
      "province": "Prince Edward Island",
      "province_code": "PE",
      "rejected_ballots": 244,
      "rejected_ballots_pct": 1.2,
      "total_ballots_cast": 19805,
      "turnout_pct": 68.9,
      "valid_ballots": 19561,
      "valid_ballots_pct": 98.8
    },
    {
      "district_name": "Malpeque",
      "district_number": "11004",
      "elected_candidate": "MacDonald, Heath Liberal/Libéral",
      "electors": 32009,
      "polling_stations": 87,
      "population": 36030,
      "province": "Prince Edward Island",
      "province_code": "PE",
      "rejected_ballots": 174,
      "rejected_ballots_pct": 0.7,
      "total_ballots_cast": 23881,
      "turnout_pct": 74.6,
      "valid_ballots": 23707,
      "valid_ballots_pct": 99.3
    }
  ],
  "source_url": "https://www.elections.ca/res/rep/off/ovr2021app/53/data_donnees/table_tableau11.csv"
}
Browse the library