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

Get LGE Ballot Results for a specific electoral event, province, municipality, ward and voting district. Note that this call is also applicable to By-Election results.

Request Information

Parameters

NameDescriptionAdditional information
ElectoralEventID
Valid Electoral Event IDs can be obtain 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.

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

Define this parameter in the request URI.

VDNumber
Valid Voting District Numbers can be obtained by invoking the Delimitation Controller's Get Action and passing an ElectoralEventID, ProvinceID, MunicipalityID and WardID: api/v1/Delimitation?ElectoralEventID={ElectoralEventID}&ProvinceID={ProvinceID}&MunicipalityID={MunicipalityID}&WardID={WardID}

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",
  "MunicipalityID": 5,
  "Municipality": "sample string 6",
  "WardID": 7,
  "VDNumber": 8,
  "RegisteredVoters": 9,
  "SpoiltVotes": 10,
  "SpecialVotes": 11,
  "PercVoterTurnout": 12.1,
  "TotalVotesCast": 13,
  "TotalValidVotes": 14,
  "VDCount": 15,
  "VDWithResultsCaptured": 16,
  "bResultsComplete": true,
  "ReportDate": "2024-12-03T13:09:15.1648687+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:
<LGEBallotVotingDistrictResult 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>
  <Municipality>sample string 6</Municipality>
  <MunicipalityID>5</MunicipalityID>
  <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>12.1</PercVoterTurnout>
  <Province>sample string 4</Province>
  <ProvinceID>3</ProvinceID>
  <RegisteredVoters>9</RegisteredVoters>
  <ReportDate>2024-12-03T13:09:15.1648687+02:00</ReportDate>
  <SpecialVotes>11</SpecialVotes>
  <SpoiltVotes>10</SpoiltVotes>
  <TotalValidVotes>14</TotalValidVotes>
  <TotalVotesCast>13</TotalVotesCast>
  <VDCount>15</VDCount>
  <VDNumber>8</VDNumber>
  <VDWithResultsCaptured>16</VDWithResultsCaptured>
  <WardID>7</WardID>
  <bResultsComplete>true</bResultsComplete>
</LGEBallotVotingDistrictResult>