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

Returns rolled up results for the National Election for Province and Municipality

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.

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.

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",
  "RegisteredVoters": 7,
  "SpoiltVotes": 8,
  "Section24AVotes": 9,
  "SpecialVotes": 10,
  "PercVoterTurnout": 11.1,
  "TotalVotesCast": 12,
  "TotalValidVotes": 13,
  "VDCount": 14,
  "VDWithResultsCaptured": 15,
  "bResultsComplete": true,
  "PartyBallotResults": [
    {
      "ID": 1,
      "Name": "sample string 2",
      "ValidVotes": 3,
      "PercOfVotes": 4.1,
      "PartyAbbr": "sample string 5"
    },
    {
      "ID": 1,
      "Name": "sample string 2",
      "ValidVotes": 3,
      "PercOfVotes": 4.1,
      "PartyAbbr": "sample string 5"
    },
    {
      "ID": 1,
      "Name": "sample string 2",
      "ValidVotes": 3,
      "PercOfVotes": 4.1,
      "PartyAbbr": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<NPEBallotMunicipalityResult 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>
    <NPEBallotPartyResult>
      <ID>1</ID>
      <Name>sample string 2</Name>
      <PartyAbbr>sample string 5</PartyAbbr>
      <PercOfVotes>4.1</PercOfVotes>
      <ValidVotes>3</ValidVotes>
    </NPEBallotPartyResult>
    <NPEBallotPartyResult>
      <ID>1</ID>
      <Name>sample string 2</Name>
      <PartyAbbr>sample string 5</PartyAbbr>
      <PercOfVotes>4.1</PercOfVotes>
      <ValidVotes>3</ValidVotes>
    </NPEBallotPartyResult>
    <NPEBallotPartyResult>
      <ID>1</ID>
      <Name>sample string 2</Name>
      <PartyAbbr>sample string 5</PartyAbbr>
      <PercOfVotes>4.1</PercOfVotes>
      <ValidVotes>3</ValidVotes>
    </NPEBallotPartyResult>
  </PartyBallotResults>
  <PercVoterTurnout>11.1</PercVoterTurnout>
  <Province>sample string 4</Province>
  <ProvinceID>3</ProvinceID>
  <RegisteredVoters>7</RegisteredVoters>
  <Section24AVotes>9</Section24AVotes>
  <SpecialVotes>10</SpecialVotes>
  <SpoiltVotes>8</SpoiltVotes>
  <TotalValidVotes>13</TotalValidVotes>
  <TotalVotesCast>12</TotalVotesCast>
  <VDCount>14</VDCount>
  <VDWithResultsCaptured>15</VDWithResultsCaptured>
  <bResultsComplete>true</bResultsComplete>
</NPEBallotMunicipalityResult>