GET api/v1/LGEBallotResults?ElectoralEventID={ElectoralEventID}&ProvinceID={ProvinceID}

Get LGE Ballot Results for a specific electoral event and province

Request Information

Parameters

NameDescriptionAdditional information
ElectoralEventID
Valid Electoral Event IDs can be obtained by invoking the ElectoralEvent Controller's Get action and passing an ElectoralEventTypeID: api/v1/ElectoralEvent?ElectoralEventTypeID={ElectoralEventTypeID}

Define this parameter in the request URI.

ProvinceID
Valid Province IDs can be obtained by invoking the Delimitation Controller's Get Action and passing an ElectoralEventID: api/v1/Delimitation?ElectoralEventID={ElectoralEventID}

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "ElectoralEventID": 1,
  "ElectoralEvent": "sample string 2",
  "ProvinceID": 3,
  "Province": "sample string 4",
  "RegisteredVoters": 5,
  "SpoiltVotes": 6,
  "SpecialVotes": 7,
  "PercVoterTurnout": 8.1,
  "TotalVotesCast": 9,
  "TotalValidVotes": 10,
  "VDCount": 11,
  "VDWithResultsCaptured": 12,
  "bResultsComplete": true,
  "ReportDate": "2024-03-28T14:34:36.2321266+02:00",
  "PartyBallotResults": [
    {
      "ID": 1,
      "Name": "sample string 2",
      "Ward_ValidVotes": 3,
      "PR_ValidVotes": 4,
      "DC40Perc_ValidVotes": 5,
      "TotalValidVotes": 6,
      "PercOfVotes": 7.1,
      "IsOnNational": true,
      "Color": "sample string 9"
    },
    {
      "ID": 1,
      "Name": "sample string 2",
      "Ward_ValidVotes": 3,
      "PR_ValidVotes": 4,
      "DC40Perc_ValidVotes": 5,
      "TotalValidVotes": 6,
      "PercOfVotes": 7.1,
      "IsOnNational": true,
      "Color": "sample string 9"
    },
    {
      "ID": 1,
      "Name": "sample string 2",
      "Ward_ValidVotes": 3,
      "PR_ValidVotes": 4,
      "DC40Perc_ValidVotes": 5,
      "TotalValidVotes": 6,
      "PercOfVotes": 7.1,
      "IsOnNational": true,
      "Color": "sample string 9"
    }
  ]
}

application/xml, text/xml

Sample:
<LGEBallotProvinceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IECService.Models">
  <ElectoralEvent>sample string 2</ElectoralEvent>
  <ElectoralEventID>1</ElectoralEventID>
  <PartyBallotResults>
    <LGEBallotPartyResult>
      <Color>sample string 9</Color>
      <DC40Perc_ValidVotes>5</DC40Perc_ValidVotes>
      <ID>1</ID>
      <IsOnNational>true</IsOnNational>
      <Name>sample string 2</Name>
      <PR_ValidVotes>4</PR_ValidVotes>
      <PercOfVotes>7.1</PercOfVotes>
      <TotalValidVotes>6</TotalValidVotes>
      <Ward_ValidVotes>3</Ward_ValidVotes>
    </LGEBallotPartyResult>
    <LGEBallotPartyResult>
      <Color>sample string 9</Color>
      <DC40Perc_ValidVotes>5</DC40Perc_ValidVotes>
      <ID>1</ID>
      <IsOnNational>true</IsOnNational>
      <Name>sample string 2</Name>
      <PR_ValidVotes>4</PR_ValidVotes>
      <PercOfVotes>7.1</PercOfVotes>
      <TotalValidVotes>6</TotalValidVotes>
      <Ward_ValidVotes>3</Ward_ValidVotes>
    </LGEBallotPartyResult>
    <LGEBallotPartyResult>
      <Color>sample string 9</Color>
      <DC40Perc_ValidVotes>5</DC40Perc_ValidVotes>
      <ID>1</ID>
      <IsOnNational>true</IsOnNational>
      <Name>sample string 2</Name>
      <PR_ValidVotes>4</PR_ValidVotes>
      <PercOfVotes>7.1</PercOfVotes>
      <TotalValidVotes>6</TotalValidVotes>
      <Ward_ValidVotes>3</Ward_ValidVotes>
    </LGEBallotPartyResult>
  </PartyBallotResults>
  <PercVoterTurnout>8.1</PercVoterTurnout>
  <Province>sample string 4</Province>
  <ProvinceID>3</ProvinceID>
  <RegisteredVoters>5</RegisteredVoters>
  <ReportDate>2024-03-28T14:34:36.2321266+02:00</ReportDate>
  <SpecialVotes>7</SpecialVotes>
  <SpoiltVotes>6</SpoiltVotes>
  <TotalValidVotes>10</TotalValidVotes>
  <TotalVotesCast>9</TotalVotesCast>
  <VDCount>11</VDCount>
  <VDWithResultsCaptured>12</VDWithResultsCaptured>
  <bResultsComplete>true</bResultsComplete>
</LGEBallotProvinceResult>