For presidential and midterm general elections, the Advance Turnout
API method returns state-by-state data on advance voting, including how
many absentee ballots have been requested, sent and returned, demographic
data and in-person voting data. Also included is a comparison to the historical
data, such as 2020 presidential primaries, 2018 midterm general election
and 2016 general election.
XML
Element |
JSON Property |
Description |
Vote |
|
|
@ApiVersion |
"apiVersion" |
The API version
number; for example, 3.1. |
@ApiBuild |
"apiBuild" |
The API build number;
for example, 3.1.104. |
@ElectionDate |
"electionDate" |
Date of the election
day. |
@Timestamp |
"timestamp" |
Timestamp when
the file was created on the AP Elections system. |
@Disclaimer |
"disclaimer" |
A statement about
the sources of the advance turnout data. |
AdvanceTurnout |
|
|
ReportingUnit |
"reportingUnits" |
Container for the
reporting unit(s) for which the data is returned. |
@StatePostal |
"statePostal" |
Two-character state
postal code. |
@Name |
"stateName" |
Full state name
(for example, Delaware, New
York), the reporting unit name (city/town name for the
New England states and county name for the other states). |
"reportingunitName" |
@ID |
"reportingunitID" |
Reporting unit
ID. |
@Level |
"level" |
Region the advance
turnout is reported from:
|
@LastUpdated |
"lastUpdated" |
Date and time when
the advance voting data for this reporting unit were last updated. |
Pre-Election
Data |
|
Advance turnout
data for the current election. |
RequestedBallots |
"requested" |
Mail/absentee ballots
requested. |
@Total |
"total" |
The total number
of mail/absentee ballots requested. |
Party |
"party" |
Requested mail/absentee
ballots by party affiliation. |
@Name |
"id" |
Party code (for
example, Dem, GOP).
For more information, see Party
Codes. |
@Total |
"total" |
The number of mail/absentee
ballots requested by voters affiliated with this party. |
IssuedBallots |
"issued" |
Mail/absentee ballots
issued. |
@Total |
"total" |
The total number
of mail/absentee ballots issued. |
Party |
"party" |
Issued mail/absentee
ballots by party affiliation. |
@Name |
"id" |
Party code (for
example, Dem, GOP).
For more information, see Party
Codes. |
@Total |
"total" |
The number of mail/absentee
ballots sent to voters affiliated with this party. |
ReceivedBallots |
"received" |
Advance votes cast
broken down by party, ethnicity, gender and age where available. |
Party |
"party" |
The number of advance
votes cast by members of a certain party. |
@Name |
"id" |
Party code (for
example, Dem, GOP).
For more information, see Party
Codes. |
@Total |
"total" |
The number of advance
votes cast by members of this party. |
Ethnicity |
"ethnicity" |
Advance votes cast
by people of a certain race/ethnic group. |
@Name |
"id" |
The race/ethnic
group name, such as White, Black, Hispanic, Other, Unknown. |
@Total |
"total" |
The number of advance
votes cast by this ethnic group. |
Gender |
"gender" |
Advance votes cast
by people of a certain gender. |
@Name |
"id" |
The voter's gender,
such as Women, Men, Unknown. |
@Total |
"total" |
The number of advance
votes cast by voters of this gender. |
Age |
"age" |
Advance votes cast
by a certain age group. |
@Name |
"id" |
The voter's age
group, such as 18-29, 30-44, 45-59, over60, Unknown. |
@Total |
"total" |
The number of advance
votes cast by voters of this age group. |
Summary |
"summary" |
|
@MailAbsenteeAccepted |
"mailAbsenteeAccepted" |
Mail/absentee ballots
returned or accepted. |
@EarlyInPerson |
"earlyInPerson" |
Early in-person
votes. |
@AdvanceTotal |
"advanceTotal" |
Total number of
advance votes cast (mail/absentee plus early in-person votes). |
PercentageOfPrevious |
"percentageOfPrevious" |
This year's advance
votes as a percentage of a previous election advance turnout. |
@PreviousYear |
"previous" |
Previous year (for
example, 2016 or 2018). |
@Percentage |
"percentage" |
Percentage of that
year's election advance turnout. |
Historical |
"historical" |
Historical election
data. |
@Year |
"year" |
The year of a previous
election; for example, 2016 or 2018. |
@BallotsCast |
"ballotsCast" |
Total number of
ballots cast in that election. |
@AdvanceCast |
"advanceCast" |
Total number of
advance votes cast in that election. |
HistoricalRace |
"historicalRace" |
Data for a specific
historical race. |
@Type |
"type" |
Race type; for
example, Pres (Presidential), Sen
(Senator), Gov (Governor) or Primary
(Presidential Primary). |
@TotalNoWriteIn |
"noWriteIn" |
Total number of
votes without write-in in that race. |
@AdvanceTotal |
"advanceTotal" |
Total number of
advance votes cast in that race. |
@TotalDem |
"dem" |
Number of advance
votes for Democratic candidate in that race. |
@TotalGOP |
"gop" |
Number of advance
votes for Republican candidate in that race. |
Post-Election
Data |
|
Advance turnout
data for a previous election (that is, an election that happened
prior to the current election). |
PostElection |
"postElection" |
The container for
the post-election data. |
@TotalAbsenteeReturned |
"totalAbsenteeReturned" |
Total absentee
ballots returned and submitted for counting. |
@TotalEarlyCast |
"totalEarlyCast" |
(If available)
Total early in-person votes cast. |
@TotalCast |
"totalCast" |
Total ballots cast. |
@TotalAbsenteeSent |
"totalAbsenteeSent" |
Total number of
absentee ballots sent to voters. |
The following examples show partial JSON and XML responses to the sample
requests.