GET api/NPEBallotResults/ElectoralEventID/{ElectoralEventID}

Returns rolled up results for the National Election

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.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "ElectoralEventID": 1,
  "ElectoralEvent": "sample string 2",
  "RegisteredVoters": 3,
  "SpoiltVotes": 4,
  "Section24AVotes": 5,
  "SpecialVotes": 6,
  "PercVoterTurnout": 7.1,
  "TotalVotesCast": 8,
  "TotalValidVotes": 9,
  "VDCount": 10,
  "VDWithResultsCaptured": 11,
  "bResultsComplete": true,
  "PartyBallotResults": [
    {
      "ID": 1,
      "Name": "sample string 2",
      "ValidVotes": 3,
      "PercOfVotes": 4.1,
      "PartyAbbr": "sample string 5",
      "BallotTypeID": 6,
      "BallotType": "sample string 7",
      "bIsIndependent": true
    },
    {
      "ID": 1,
      "Name": "sample string 2",
      "ValidVotes": 3,
      "PercOfVotes": 4.1,
      "PartyAbbr": "sample string 5",
      "BallotTypeID": 6,
      "BallotType": "sample string 7",
      "bIsIndependent": true
    },
    {
      "ID": 1,
      "Name": "sample string 2",
      "ValidVotes": 3,
      "PercOfVotes": 4.1,
      "PartyAbbr": "sample string 5",
      "BallotTypeID": 6,
      "BallotType": "sample string 7",
      "bIsIndependent": true
    }
  ]
}

application/xml, text/xml

Sample:
<NPEBallotElectoralElectionResult 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>
    <NPEBallotPartyResult>
      <BallotType>sample string 7</BallotType>
      <BallotTypeID>6</BallotTypeID>
      <ID>1</ID>
      <Name>sample string 2</Name>
      <PartyAbbr>sample string 5</PartyAbbr>
      <PercOfVotes>4.1</PercOfVotes>
      <ValidVotes>3</ValidVotes>
      <bIsIndependent>true</bIsIndependent>
    </NPEBallotPartyResult>
    <NPEBallotPartyResult>
      <BallotType>sample string 7</BallotType>
      <BallotTypeID>6</BallotTypeID>
      <ID>1</ID>
      <Name>sample string 2</Name>
      <PartyAbbr>sample string 5</PartyAbbr>
      <PercOfVotes>4.1</PercOfVotes>
      <ValidVotes>3</ValidVotes>
      <bIsIndependent>true</bIsIndependent>
    </NPEBallotPartyResult>
    <NPEBallotPartyResult>
      <BallotType>sample string 7</BallotType>
      <BallotTypeID>6</BallotTypeID>
      <ID>1</ID>
      <Name>sample string 2</Name>
      <PartyAbbr>sample string 5</PartyAbbr>
      <PercOfVotes>4.1</PercOfVotes>
      <ValidVotes>3</ValidVotes>
      <bIsIndependent>true</bIsIndependent>
    </NPEBallotPartyResult>
  </PartyBallotResults>
  <PercVoterTurnout>7.1</PercVoterTurnout>
  <RegisteredVoters>3</RegisteredVoters>
  <Section24AVotes>5</Section24AVotes>
  <SpecialVotes>6</SpecialVotes>
  <SpoiltVotes>4</SpoiltVotes>
  <TotalValidVotes>9</TotalValidVotes>
  <TotalVotesCast>8</TotalVotesCast>
  <VDCount>10</VDCount>
  <VDWithResultsCaptured>11</VDWithResultsCaptured>
  <bResultsComplete>true</bResultsComplete>
</NPEBallotElectoralElectionResult>