Field values

Every field in the API that holds a code, such as a contest’s kind, its vote_method, a result’s status or an error’s code, takes one of the values below. Each table says where the values appear and what each one means. The API reference shows the same meanings under each field, and /openapi.json carries them as x-enumDescriptions.

Most sets are fixed: the API returns only these values, and they are an enum in the OpenAPI description. A few come from the election offices’ own classifications (district types, measure types and the like) and are marked open: the table lists every value in our data today, and new ones can appear as we load more places, so treat an unknown value as “other”. A field documented as nullable can also be null.

Value sets

Election type

In Election.type, Event election.type and types= on GET /v1/elections.

ValueMeaning
generalA general election: the November election (or a state’s regular election day) that fills offices and decides measures.
primaryA primary: voters choose each party’s nominee, or (in top-two and Louisiana-style states) the candidates who go on to the general.
specialA special election held outside the regular schedule, usually to fill a vacancy or decide a measure.
special_primaryThe primary for a special election.
runoffA runoff between the leading candidates when no one won the earlier round outright (the share needed is in the contest’s details.majority_required or vote_required).
consolidatedSeveral jurisdictions’ elections held together on one ballot (a city and school election on the same day, for example); details.consolidated_with names them.

Primary system

In Election.primary_system. How the state picks the candidates who reach this ballot. Set on general and special elections too; null where we don’t have it.

ValueMeaning
noneNo primary system is recorded for this election.
closedOnly voters registered with a party may vote in its primary.
semi_closedA party’s registered voters, plus unaffiliated voters who choose that party’s ballot.
openAny registered voter may choose any one party’s ballot.
top_twoEvery candidate is on one primary ballot whatever their party, and the top two go on to the general (Washington, California).
top_fourEvery candidate is on one primary ballot, and the top four go on to a ranked-choice general (Alaska).
nonpartisanCandidates run without party labels; the leading candidates go on, or a majority wins outright.

Contest kind

In Contest.kind, contest_kinds= parameters, Filter.contest_kinds and contest_kind (export CSV).

ValueMeaning
candidateA race for an office: voters choose among candidates.
measureA ballot measure (proposition, amendment, bond, tax, referendum or initiative): voters answer Yes or No.
retentionA judicial retention question: should this judge stay in office? Voters answer Yes or No.

Vote method

In Contest.vote_method and vote_method (export CSV). How a voter marks the contest, and so how an endorser’s picks are shaped.

ValueMeaning
pluralityVote for one: the candidate with the most votes wins (or goes to a runoff where a majority is required).
multi_seatVote for up to N (votes_allowed): several seats are filled at once and the top N win.
ranked_choiceRanked choice: voters rank up to ranks_allowed candidates; endorsements carry the endorser’s rank 1, 2, 3…. rcv_rounds holds the official tabulation once there is one.
approvalApproval voting: voters mark every candidate they approve of; the most-approved win (Fargo, St. Louis).
yes_noA Yes or No question: every measure and retention question.

Race type

In Contest.race_type. null for a measure.

ValueMeaning
regularAn election for a full term on the regular schedule.
specialAn election for the rest of an unexpired term, or a contest in a special election.
recallA recall: whether to remove an officeholder before the term ends (and, where the ballot has one, who replaces them).
retentionA judicial retention question.

Office type

In Office.type and offices= on GET /v1/contests. Worked out by rule from the contest’s title and district, so the same office has the same type in every state.

ValueMeaning
presidentPresident of the United States (with the vice president on the same ticket).
us_senatorU.S. Senator.
us_representativeU.S. Representative, or a non-voting delegate to the House.
governorGovernor.
lieutenant_governorLieutenant governor.
attorney_generalState attorney general.
secretary_of_stateSecretary of state.
state_treasurerState treasurer.
state_auditorState auditor, comptroller or controller.
state_superintendentState superintendent of public instruction (the elected head of state schools).
insurance_commissionerState insurance commissioner.
agriculture_commissionerState agriculture commissioner.
land_commissionerState land commissioner (public lands).
labor_commissionerState labor commissioner.
utility_commissionA state utility, public service or corporation commission seat.
university_boardA state university board of regents or trustees seat.
state_board_of_educationA state board of education seat.
state_senatorState senator (the upper house of the legislature; Nebraska’s one-house Legislature too).
state_representativeState representative, assemblymember or delegate (the lower house).
state_supreme_courtA justice of the state’s highest court.
state_appellate_courtA judge of a state intermediate appeals court.
trial_courtA judge of a general trial court: superior, district, circuit, county or probate court.
municipal_courtA city or municipal court judge.
magistrateA magistrate.
justice_of_the_peaceA justice of the peace.
court_clerkClerk of a court.
mayorMayor.
local_executiveAnother elected local chief executive: county executive or judge-executive, borough or parish president, first selectman, town or township supervisor, village president.
city_councilA city, town, village or borough council, select board or board of aldermen seat.
county_legislatureA county commission, board of supervisors, county council, quorum or fiscal court, or police jury seat.
neighborhood_councilA neighborhood body: Washington, D.C.’s Advisory Neighborhood Commissions, for example.
school_boardA school board or board of education seat.
school_superintendentAn elected county or district school superintendent.
college_boardA community college district board seat.
special_district_boardA board of a special district: hospital, fire, park, library, transit, port, utility and similar.
water_conservation_boardA soil and water conservation, water, irrigation, drainage or flood control district board.
sheriffSheriff.
prosecutorDistrict attorney, state’s attorney, county attorney or solicitor.
coronerCoroner or medical examiner.
constableConstable (or town sergeant).
assessorAssessor, appraiser or property valuation administrator.
tax_collectorTax collector or tax commissioner.
treasurerA county, city or town treasurer.
auditorA county, city or town auditor, comptroller or controller.
recorderRecorder or register of deeds, wills or probate.
clerkA county, city or town clerk, prothonotary or registrar.
surveyorCounty surveyor or engineer.
public_worksHighway, road or street commissioner, or a public works office.
police_fireAn elected police chief, fire chief or marshal.
other_county_officeAnother county office: public defender, public administrator, jailer, election director and similar.
otherAn office that fits none of the types above.

Office level

In Office.level.

ValueMeaning
federalA federal office: president, U.S. senator, U.S. representative.
stateA statewide or state legislative office, or a state court judge (whatever district the court sits in).
localA county, city, town, school or special-district office.

Office branch

In Office.branch.

ValueMeaning
executiveRuns government: president, governor, mayor, sheriff, clerk, treasurer and other officers.
legislativeMakes laws or policy as a body: Congress, legislatures, councils, commissions and boards.
judicialA judge, justice, magistrate or justice of the peace.

Measure topic

In Contest.topics, topics= on GET /v1/contests and GET /v1/measure-topics. Assigned by rule from a measure’s title, summary and wording. A measure can have several; candidate contests have none.

ValueMeaning
taxesTaxes: new or changed taxes, levies, millage, fees, assessments and exemptions.
bondsBonds and borrowing: general obligation bonds, debt, lease-purchase.
budgetsBudgets and spending limits: appropriations, revenue and spending caps.
educationEducation and schools: school funding, facilities, districts and colleges.
housingHousing: affordable housing, rent, homelessness.
electionsElections and voting: how elections are run, voting rules, redistricting.
governmentGovernment structure and charters: charter amendments, who appoints whom, how offices work.
term_limitsTerm limits for elected officials.
ethicsEthics and transparency: conflicts of interest, open records, campaign finance.
local_boundariesAnnexation, incorporation and dissolution: changing a city’s or district’s boundaries, merging or dissolving one.
public_safetyPolice, fire and emergency services.
criminal_justiceCriminal justice: sentencing, courts, jails, victims’ rights.
healthHealth care and hospitals.
mental_healthMental health and addiction services.
environmentEnvironment and conservation: open space, pollution, climate.
energyEnergy: power generation, fuels, renewables.
waterWater and sewer: water supply, treatment and rights.
transportationTransportation and roads: transit, highways, streets.
parks_recreationParks and recreation.
librariesLibraries.
land_useLand use and zoning: development, planning, growth limits.
economic_developmentEconomic development: business incentives, tourism, development districts.
cannabisMarijuana: legalization, sales, local bans.
alcoholAlcohol: liquor sales, local option (wet/dry) questions.
gamblingGambling: casinos, sports betting, lotteries.
abortionAbortion and reproductive rights.
civil_rightsCivil rights: equal rights, discrimination, privacy.
laborLabor and wages: minimum wage, paid leave, unions.
pensionsPensions and public employees: retirement benefits, pay and rules for government workers.
firearmsFirearms.
utilitiesUtilities and broadband: public utilities, franchises, internet service.
immigrationImmigration and citizenship.
veteransVeterans’ benefits and services.
animalsAnimals: animal welfare, hunting, fishing.
seniorsSeniors: services and tax relief for older residents.
childrenChildren and families: child care, youth services.

Measure type (open)

In Contest.details.measure_type. How the election office (or the state’s law) classes a ballot measure. Only measures whose source says have it.

ValueMeaning
localA local measure.
otherA measure the election office doesn’t class further.
bondAuthorizes borrowing by issuing bonds.
tax_rateSets or changes a tax rate or levy (a millage or levy rate).
charter_amendmentAmends a city or county charter.
local_propositionA local proposition.
constitutional_amendmentAmends the state constitution.
charter amendmentAmends a city or county charter.
legislative_constitutional_amendmentA state constitutional amendment the legislature put on the ballot.
referendumA referendum: voters approve or reject a law or action already passed.
Local PropositionA local proposition.
school_referendumA school district referendum, usually an operating levy or bond (Minnesota, Wisconsin).
Charter AmendmentAmends a city or county charter.
general taxA general tax: the money goes to the general fund, so a simple majority passes it (California).
town_questionA question for a town’s voters.
local_optionA local option question, such as allowing alcohol sales (a wet/dry vote).
levyA property tax levy.
sales taxA sales tax.
special taxA special tax: the money is set aside for a purpose, so it usually needs two-thirds (California).
ordinanceAn ordinance: a local law.
municipalA municipal measure.
taxA tax measure.
municipality_questionA question for a municipality’s voters.
parcel taxA parcel tax: a flat tax on each parcel of property (California).
school_questionA question for a school district’s voters.
advisoryAn advisory question: the result is advice to the government, not law.
local_questionA question for local voters.
ordinance (tax)A local tax ordinance.
Bond IssueAuthorizes borrowing by issuing bonds.
County OrdinanceA county ordinance.
non_bindingA non-binding (advisory) question: the result is advice to the government, not law.
city_questionA question for a city’s voters.
initiativeA measure put on the ballot by citizens’ petition.
initiative_statuteA state law proposed by citizens’ petition.
initiated_constitutional_amendmentA state constitutional amendment put on the ballot by citizens’ petition.
initiated_statuteA state law proposed by citizens’ petition.
initiative_constitutional_amendmentA state constitutional amendment put on the ballot by citizens’ petition.
county_questionA question for a county’s voters.
legislative_statuteA state law the legislature referred to the voters.
schoolA school district measure.
Constitutional AmendmentAmends the state constitution.
legislatively_referred_constitutional_amendmentA state constitutional amendment the legislature put on the ballot.
statuteChanges state law.
county charter amendmentAmends a county charter.
City Charter AmendmentAmends a city charter.
County PropositionA county proposition.
appropriations limitSets or raises a government’s appropriations (Gann) limit (California).
initiative (tax)A tax measure put on the ballot by citizens’ petition.
debt_exclusionA debt exclusion: raises property taxes outside Proposition 2½’s limit to pay for a project (Massachusetts).
formationForms a new district or government.
initiative constitutional amendmentA state constitutional amendment put on the ballot by citizens’ petition.
initiative_to_the_legislatureA citizens’ initiative sent to the legislature first, then to the voters (Washington).
recallA recall question: whether to remove an officeholder.
village_questionA question for a village’s voters.
charterAdopts or revises a charter.
constitutional_initiativeA state constitutional amendment put on the ballot by citizens’ petition.
initiative statuteA state law proposed by citizens’ petition.
legislative constitutional amendmentA state constitutional amendment the legislature put on the ballot.
statewide_referendumA statewide referendum: voters approve or reject a law already passed.
tax levyA property tax levy.
Charter Amendment by act of County CouncilA county charter amendment the county council put on the ballot (Maryland).
InitiativeA measure put on the ballot by citizens’ petition.
Local Referendum by PetitionA local referendum citizens forced by petition.
appointive officesMakes elected offices appointed, or the reverse.
cpaAdopts or changes the Community Preservation Act surcharge (Massachusetts).
fire districtA fire district measure.
initiative ordinanceA local ordinance put on the ballot by citizens’ petition.
land useA land use or zoning measure.
lease approvalApproves a lease of public property.
legislative_bondA bond measure the legislature referred to the voters.
ordinance (land use)A local land use ordinance.
sales surtaxA sales surtax (Florida).
Bond ActA state bond act (New York).
Charter Amendment by PetitionA charter amendment put on the ballot by citizens’ petition.
Charter Amendment via Local PetitionA charter amendment put on the ballot by citizens’ petition.
Charter ResolutionA charter amendment proposed by resolution of the governing body.
County Charter Adoption ReferendumWhether to adopt a county charter.
General Assembly ReferendumA question the state legislature (General Assembly) referred to the voters.
appointive officeMakes an elected office appointed, or the reverse.
bylaw amendmentAmends a town’s bylaws (New England).
charter and general taxA charter amendment that also sets a general tax.
city_referendumA city referendum.
constitutional_conventionWhether to call a state constitutional convention.
countyA county measure.
county measureA county measure.
county parcel tax (initiative)A county parcel tax put on the ballot by citizens’ petition.
county taxA county tax.
county tax (initiative)A county tax put on the ballot by citizens’ petition.
feeSets or changes a fee.
general plan amendmentAmends a city’s or county’s general plan.
hospital leaseApproves a lease of a public hospital.
hotel taxA hotel (transient occupancy) tax.
initiated_actA state law proposed by citizens’ petition (an initiated act).
initiative bondA bond measure put on the ballot by citizens’ petition.
initiative constitutional amendment and statuteA citizens’ initiative that amends the state constitution and changes state law.
initiative_constitutional_amendment_and_statuteA citizens’ initiative that amends the state constitution and changes state law.
legislative bondA bond measure the legislature referred to the voters.
legislative statuteA state law the legislature referred to the voters.
legislative_constitutional_ratificationRatifies a state constitutional amendment the legislature passed.
legislative_referralA measure the legislature referred to the voters.
ordinance (initiative)A local ordinance put on the ballot by citizens’ petition.
parcel tax (initiative)A parcel tax put on the ballot by citizens’ petition.
property transferApproves selling or transferring public property.
regional taxA tax across several counties or cities.
reorganizationReorganizes a government or district (merging, dividing or restructuring it).

Referendum type (open)

In Contest.details.ref_type. For a school or local levy referendum, what the money is for (Minnesota).

ValueMeaning
nonrecurringA nonrecurring (one-time or limited-term) levy.
debtA levy to pay debt, such as a bond.
operatingAn operating levy for day-to-day costs.
otherAnother kind of referendum.

Contest stage (open)

In Contest.details.stage. Which round of a multi-round election a contest belongs to.

ValueMeaning
open_primaryLouisiana’s open (jungle) primary: every candidate on one ballot; a majority wins outright, else the top two go to a runoff.
runoffThe runoff round.
generalThe general election round.

Question wording (open)

In Contest.details.question_wording. Present only where description isn’t the printed question.

ValueMeaning
noticedescription summarizes the official election notice (Ohio) instead of quoting the printed question.

District level

In District.level, levels= parameters, Filter.levels and district_level (export CSV). The level of the district a contest is voted in. A state court judge voted on in a county is county here, but state in Office.level.

ValueMeaning
federalThe whole country, or a U.S. House district.
stateA whole state, or a state legislative, judicial or other state district.
countyA county (a parish in Louisiana, a borough in Alaska) or a district within one.
cityA city, town, township, village or borough, or a ward or council district within one.
schoolA school district, community college district, or a trustee area within one.
specialA special district: water, fire, hospital, park, transit, port, conservation and the like.

District type (open)

In District.type and district_type (stream CSV). What kind of district a contest is voted in, as the election office names it. Each meaning ends with an example from our data.

ValueMeaning
airport_authorityAn airport authority’s district. Example: Hall County Airport Authority.
anc_smdA single-member district of a Washington, D.C. Advisory Neighborhood Commission. Example: ANC 1A01.
annexation_areaThe area a proposed annexation would add to a city. Example: Tucker annexation area (SB 622).
appellate_districtA state appellate court district. Example: Illinois Appellate Court, First District.
appraisal_districtA property appraisal district. Example: Collin Central Appraisal District.
assistance_districtA county assistance district (Texas), proposed or in place. Example: Carson County Assistance District (proposed; Carson County outside Panhandle, White Deer, Groom, Skellytown and Fritch).
board_districtA member district of a local board (a city, utility or similar board). Example: Hot Springs Board District 2.
board_of_education_districtA member district of a county or city board of education. Example: Anderson County Board of Education District 1.
board_of_equalizationA district of a state board of equalization (California’s tax board). Example: State Board of Equalization District 2.
board_of_regentsA district of a state university’s board of regents. Example: University of Nebraska Board of Regents District 1.
board_of_review_districtA district of a county property-tax board of review. Example: Cook County Board of Review District 1.
cemetery_districtA cemetery district. Example: Chugwater Cemetery District.
chancery_court_districtA chancery court district (Mississippi, Tennessee). Example: 1st Chancery Court District.
chancery_court_district_subdistrictA subdistrict that elects one chancery judge. Example: Chancery Court Subdistrict 5-1.
circuit_courtA circuit court’s circuit. Example: 6th Judicial Circuit.
circuit_court_districtA circuit court district. Example: 1st Circuit Court District.
circuit_court_district_subdistrictA subdistrict that elects one circuit judge. Example: Circuit Court Subdistrict 4-1.
cityA whole city. Example: City of Oakland.
city_councilA city council district. Example: Portland District 4.
collegeA community college district. Example: Grossmont-Cuyamaca Community College District.
college_districtA community college district. Example: Collin County Community College District.
commissionA county commission, or a district of one. Example: Clay County Commission, Eastern District.
commission_districtA county or city commission district. Example: Jefferson County Commission District 1.
commissioner_districtA county commissioner district. Example: El Paso County Commissioner District 1.
commissioner_precinctA county commissioners court precinct (Texas). Example: Travis County Commissioners Precinct 2.
community_collegeA community college district. Example: San Francisco Community College District.
community_college_districtA community college district. Example: Lansing Community College.
congressionalA U.S. House district (or a whole state with one at-large seat). Example: California Congressional District 11.
conservancy_districtA conservancy (water) district. Example: Garrison Diversion Conservancy District, Wells County.
conservation_districtA conservation district. Example: Minnehaha Conservation District.
constable_districtA constable’s district. Example: Washington County Constable District 1.
constable_precinctA constable precinct (Texas). Example: Travis County Constable Precinct 4.
councilA city or county council district. Example: City of Oakland Council District 2.
council_districtA city or county council district. Example: Austin City Council District 1.
countyA whole county (parish, borough), or a consolidated city and county. Example: City and County of San Francisco.
county_budget_committeeA county budget committee district. Example: Knox County Budget Committee District 6.
county_commissionA county commission or board of supervisors district. Example: Yavapai County Board of Supervisors District 2.
county_commission_districtA county commission district. Example: Blount County Commission District 4.
county_councilA county council district. Example: Cuyahoga County Council District 1.
county_council_districtA county council district. Example: Franklin County Council/Commissioner District 3.
county_court_districtA county court district. Example: Hinds County Court District 1.
county_divisionA division of a county with its own courthouse or offices (Bessemer, Alabama). Example: Bessemer Division of Jefferson County.
county_partThe part of a county outside (or inside) certain cities, for a contest voted on only there. Example: Fayette County outside Somerville, Oakland, Piperton and Rossville.
court_districtThe district of a city, municipal or other local court. Example: Lafayette City Court.
court_of_appealA state court of appeal circuit (Louisiana). Example: Louisiana 1st Circuit Court of Appeal.
court_of_appeal_districtAn election district within a court of appeal circuit. Example: 1st Circuit Court of Appeal, District 2.
court_of_appealsA state court of appeals district. Example: Fifteenth Court of Appeals District (statewide).
court_of_appeals_districtA state court of appeals district. Example: Kentucky Court of Appeals District 3.
court_of_appeals_divisionA division of a state court of appeals. Example: Washington Court of Appeals Division 3.
districtA seat or district of a local board or special district. Example: Beach Mosquito Control District, Seat 2.
district_attorneyA district attorney’s district. Example: Berkshire District Attorney District.
district_attorney_districtA district attorney’s district. Example: 17th Circuit Court District (District Attorney).
district_courtA district court’s district. Example: Kittitas County District Court, Lower County.
district_court_districtA district court’s district. Example: 14A District Court.
divisionA division (member district) of a special district. Example: Fallbrook Public Utility District Division 2.
educational_service_unitAn educational service unit district (Nebraska). Example: Educational Service Unit 1 District 1.
election_districtA county election district. Example: Montgomery County Election District 12 (Damascus).
emergency_services_districtAn emergency services district. Example: Wheeler County Emergency Services District No. 1.
ems_districtAn emergency medical services district. Example: Glendo Emergency Services District.
executive_councilA district of New Hampshire’s Executive Council. Example: New Hampshire Executive Council District 1.
fireA fire protection district. Example: Sni Valley Fire Protection District.
fire_districtA fire district. Example: Union Grove Volunteer Fire District 16.
fire_protection_districtA fire protection district. Example: Newport Township Fire Protection District.
forest_preserve_districtA forest preserve district (Illinois). Example: Forest Preserve District of DuPage County.
gidA general improvement district (Nevada). Example: Incline Village General Improvement District.
governors_councilA district of the Massachusetts Governor’s Council. Example: Massachusetts Governor's Council District 1.
hospital_districtA hospital district. Example: North Pine Area Hospital District.
judicialA judicial district or circuit. Example: Court of Appeal, First Appellate District.
judicial_circuitA judicial circuit. Example: 7th Judicial Circuit.
judicial_districtA judicial district. Example: 207th Judicial District.
judicial_subcircuitA judicial subcircuit (Illinois). Example: DuPage County (18th Circuit) Judicial Subcircuit 4.
justice_courtA justice court’s district. Example: Roy/Weber County Justice Court.
justice_court_districtA justice court district. Example: Lauderdale County Justice Court District 2.
justice_precinctA justice of the peace precinct. Example: Travis County Justice of the Peace Precinct 1.
learning_community_subcouncilA subcouncil district of Nebraska’s Learning Community. Example: Learning Community of Douglas and Sarpy Counties Subcouncil 1.
legislativeA legislative district (Nebraska’s one-house Legislature). Example: Nebraska Legislative District 2.
library_districtA library district. Example: Vernon Area Public Library District.
magistrateA magistrate district. Example: Doña Ana County Magistrate District 1.
magistrate_districtA magistrate or magisterial district. Example: Jefferson County Magisterial District 1.
mental_health_districtA mental health services district. Example: Proposed Mid-Northside Expanded Mental Health Services Program territory.
municipalityA whole municipality: a city, borough, town or village. Example: East Newark Borough.
natural_resources_districtA natural resources district or subdistrict (Nebraska). Example: Papio-Missouri River NRD Subdistrict 2.
nursing_homeA nursing home district. Example: Golden Age Nursing Home District.
park_districtA park district. Example: Hennepin County Park District 1.
pec_districtA Public Education Commission district (New Mexico). Example: Public Education Commission District 1.
placeA whole city or town (a Census place). Example: City of Camp Verde.
port_districtA port district. Example: Grant County Port Dist #4.
precinctA single voting precinct. Example: Chicago Ward 7, Precinct 13.
precinct_groupA group of voting precincts. Example: Chicago Ward 7 Precinct 14 and Ward 10 Precincts 2 and 4.
probate_districtA probate court district. Example: Tobacco Valley Probate District.
prosecutorialA prosecutorial district. Example: Prosecutorial District 1 (York County).
prosecutorial_districtA prosecutorial district. Example: Prosecutorial District 17.
psc_districtA public service commission district. Example: Montana Public Service Commission District 1.
public_power_districtA public power district or subdivision (Nebraska). Example: Omaha Public Power District Subdivision 1.
public_service_commissionA public service commission district. Example: Louisiana Public Service Commission District 1.
public_service_districtA public service commission district. Example: Mississippi Central Public Service Commission District.
public_utility_districtA public utility district. Example: Lincoln County Public Utility District.
quorum_court_districtA quorum court district (Arkansas’s county legislature). Example: Pulaski County Quorum Court District 1.
reclamation_districtA reclamation district or subdivision. Example: Twin Loups Reclamation District Subdivision 1.
regents_districtA board of regents district. Example: Board of Regents District 2.
regionalA region made of several counties or cities, for a regional measure. Example: Regional Transit Measure area (Alameda, Contra Costa, San Francisco, San Mateo, Santa Clara).
regional_office_of_educationA regional office of education (Illinois). Example: Regional Office of Education 4 (Boone and Winnebago Counties).
registry_districtA registry of deeds district. Example: Aroostook County Registry of Deeds, Northern District.
roadA road district. Example: Stone County Northern Road District.
rtm_districtA Representative Town Meeting district (Connecticut). Example: Darien RTM District 1.
sanitary_districtA sanitary district. Example: East Joliet Sanitary District.
sboeA state board of education district. Example: Kansas State Board of Education District 10.
sboe_districtA state board of education district. Example: Nevada State Board of Education District 1.
schoolA school district (or a whole district, for a district-wide seat). Example: San Francisco Unified School District.
school_boardA school board member district. Example: Matanuska-Susitna Borough School District, School Board District 3.
school_board_districtA school board member district. Example: Jefferson County Board of Education District 4.
school_districtA whole school district. Example: Princeton Independent School District.
school_district_areaA residence or trustee area of a school district. Example: LCSD 1 Residence Area 1.
school_subdistrictA school board subdistrict. Example: Omaha Public Schools Subdistrict 8.
school_tax_districtA school tax or attendance district. Example: Odenville School Attendance and Tax District.
school_zoneA school board zone. Example: Conway Public Schools Zone 3.
service_districtA service district (senior citizens, recreation and the like). Example: Natrona County Senior Citizens Service District.
sewer_districtA sewer district. Example: West Side Sewer District.
sldlA district of the lower house of the state legislature. Example: Arizona State House District 1.
slduA district of the upper house (state senate). Example: Colorado State Senate District 10.
soil_conservation_districtA soil conservation district. Example: Cass County Soil Conservation District.
soil_water_districtA soil and water conservation district. Example: Aitkin County Soil and Water Conservation District.
specialA special district: library, water, fire, park, transit and the like. Example: Altadena Library District.
special_districtA special district. Example: Tarrant Appraisal District.
stateA whole state. Example: Nevada.
state_board_of_educationA state board of education district. Example: Texas State Board of Education District 2.
state_houseA state house district (the lower house). Example: South Carolina House District 1.
state_lowerA district of the lower house of the state legislature. Example: State Assembly District 17.
state_upperA district of the upper house (state senate). Example: State Senate District 2.
statewideA whole state. Example: California.
superior_courtA superior court’s district. Example: Superior Court of Ferry, Pend Oreille and Stevens Counties.
superior_court_districtA superior court district. Example: Superior Court District 17.
supervisorialA county (or city and county) supervisorial district. Example: Supervisorial District 2.
supreme_court_districtA state supreme court district. Example: Kentucky Supreme Court District 3.
tax_districtA tax district. Example: Fulton County outside the City of Atlanta.
townA whole town. Example: Town of Carmel.
townshipA township. Example: Pulaski County, Big Rock Township (Constable).
transitA transit district’s member district. Example: BART District 8.
transit_districtA transit district or its director district. Example: RTD Director District B.
transportation_districtA transportation district (a transportation benefit district, for example). Example: Chelan Transportation Benefit District.
trustee_areaA trustee area of a school or college district. Example: Grossmont-Cuyamaca Community College District Trustee Area 5.
trustee_districtA trustee district of a school district. Example: Austin ISD Trustee District 1.
tv_districtA television district (Nevada’s TV translator districts). Example: Verdi Television District.
utility_districtA utility district. Example: Horizon Regional MUD, Mountain Shadow Unit 1 Defined Area.
villageA whole village. Example: Village of Brewster.
wardA city ward. Example: Little Rock Ward 1.
waterA water supply district. Example: Stone County Public Water Supply District No. 1.
water_districtA water district. Example: Lower Valley Water District.
water_reclamation_districtA water reclamation district. Example: Metropolitan Water Reclamation District of Greater Chicago.
water_sewer_districtA water and sewer district. Example: Jamestown/Rio Vista Water and Sewer District.
watershed_districtA watershed district. Example: South Tyger River Watershed Conservation District.

Measure answer

In Choice.measure_answer, Pick.measure_answer, Endorsement choice.measure_answer and measure_answer (export CSV). null for a candidate.

ValueMeaning
yesThe Yes line of a measure or retention question. On an endorsement: the endorser says vote Yes.
noThe No line. On an endorsement: the endorser says vote No.

Special ballot line

In Choice.option. null for an ordinary line (a candidate or a Yes/No answer).

ValueMeaning
none_of_theseNevada’s “None of these candidates” line, printed in statewide races. It can get votes but can’t win.

Result status

In ContestResult.status, result_statuses= on GET /v1/contests and result_status (export CSV).

ValueMeaning
unofficialElection-night and canvass counts: still changing. We read them again every day until they’re certified.
certifiedThe canvass is certified: the final official count.

Result source kind

In ContestResult.source_kind and result_source_kind (export CSV).

ValueMeaning
officialA state, county, city or federal election office.
compiledCertified official returns compiled by a research group (the MIT Election Data and Science Lab’s precinct returns), summed to the contest. Used for past elections; official_url links to the state’s own results where we have them.
partyA state or national party’s announcement of the winner, with no vote counts (party_reported is true). Replaced as soon as an official result appears.

Endorser category (open)

In Category.slug, EndorserCategory.slug, categories= parameters, Filter.categories and endorser_category (export CSV). The kinds of endorser. GET /v1/endorser-categories lists them with their counts.

ValueMeaning
editorialVoter guides & editorial boards: each one a voter guide.
laborLabor: each one a labor union.
environmentEnvironment & transportation: each one a environmental group.
businessHousing & business: each one a housing or business group.
partyPolitical parties: each one a political party.
clubPolitical clubs: each one a political club.
communityCommunity & advocacy: each one a community group.
officialsElected officials: each one a elected official.

Added by

In added_by on every endorsement and added_by (export CSV). How the endorsement got into our data.

ValueMeaning
automaticAdded by our automatic watch of the endorser’s own website. It only adds a candidate the endorser’s own page names for that election; source_url is that page.
staffEntered by hand by BallotData staff.
data_loadLoaded in one of our researched data passes.

Endorsement stage

In stage on Pick, Endorsement, EndorsementDetail, CandidateEndorsement. Worked out from the type of the election the contest is in.

ValueMeaning
generalThe endorsement is for a general, special or consolidated election.
primaryThe endorsement is for a primary or special primary.
runoffThe endorsement is for a runoff.

Change

In HistoryEntry.change, Change.change, types= on the stream and Filter.types.

ValueMeaning
createdA new endorsement.
updatedAn existing endorsement changed; changed lists the fields.
deletedThe endorsement was withdrawn by the endorser or removed by us.

Changed field

In HistoryEntry.changed, Change.changed and Event.changed.

ValueMeaning
choice_idThe endorser now backs a different choice in the same contest.
rankThe ranked-choice rank changed.
statementWhat the endorser said changed.
source_urlWhere it was published changed.
published_onThe publication date changed.

Event type

In Event.type and the event: line of GET /v1/stream.

ValueMeaning
endorsement.createdA new endorsement.
endorsement.updatedAn endorsement changed; changed and previous say how.
endorsement.deletedAn endorsement was withdrawn or removed.

Party (open)

In Party.slug and party (export CSV, as the name). Every party in our data, by slug, with its name and the abbreviation printed on ballots. A choice’s party_label has the party text exactly as printed where it differs.

ValueMeaning
conservativeConservative (CON).
constitutionConstitution (CON).
dc-statehood-greenDC Statehood Green (STG).
democraticDemocratic (DEM).
greenGreen (GRN).
independent-americanIndependent American (IAP).
independent-partyIndependent Party (IP).
independent-party-of-delawareIndependent Party of Delaware (IPD).
independent-party-of-oregonIndependent Party of Oregon (IPO).
legal-marijuana-nowLegal Marijuana NOW (LMN).
libertarianLibertarian (LIB).
pacific-greenPacific Green (PGP).
progressiveProgressive (PRO).
progressive-party-of-oregonProgressive Party (PRO).
republicanRepublican (REP).
working-familiesWorking Families (WFP).

Contact source kind

In Contact.sources[].kind.

ValueMeaning
wikidataWikidata (CC0): website and social accounts.
open_statesOpen States (CC0): an incumbent’s official email, phone, website and social accounts.
fec_filingThe campaign committee’s Federal Election Commission filing: its mailing address.
official_filingA state, county or city candidate list or campaign-finance filing.
campaign_websiteThe campaign’s own website.

Issue (open)

In Issue.slug, IssuePosition.issue.slug and issues= on GET /v1/issue-positions. The issues we record candidates’ positions on. Each is a yes/no question that a position’s stance answers; GET /v1/issues has the full descriptions.

ValueMeaning
abortionAbortion. Should abortion be legal in most or all cases?
death-penaltyDeath penalty. Should the death penalty be allowed?
gunsGun laws. Should gun laws be made stricter?
immigration-enforcementImmigration enforcement. Should immigration enforcement be expanded, including large-scale deportations?
path-to-citizenshipPath to citizenship. Should some undocumented immigrants, such as those brought here as children, be able to earn legal status or citizenship?
school-choiceSchool choice. Should public money pay for private or religious school tuition (vouchers, education savings accounts, tax-credit scholarships)?
public-school-fundingPublic school funding. Should funding for public K-12 schools be increased?
social-security-medicareSocial Security and Medicare. Should Social Security and Medicare benefits be protected from cuts?
medicaid-snapMedicaid and SNAP. Should Medicaid and SNAP (food assistance) be protected from cuts and new eligibility limits such as work requirements?
health-coverageHealth coverage. Should government do more to provide health coverage (for example, keep enhanced ACA subsidies, expand Medicaid, or add a public option or Medicare for All)?
climate-clean-energyClimate and clean energy. Should government act to cut greenhouse gas emissions and speed the shift to clean energy?
taxes-high-earnersTaxes on high earners and corporations. Should taxes be raised on high earners and corporations?
minimum-wageMinimum wage. Should the minimum wage be raised?
unionsLabor unions. Should it be easier for workers to form unions and bargain collectively (for example, the PRO Act)?
lgbtq-protectionsLGBTQ protections. Should LGBTQ people have legal protection from discrimination (for example, the Equality Act)?
transgender-athletesTransgender athletes. Should school and college sports teams be limited by sex at birth?
criminal-justiceCriminal justice. Should criminal-justice policy focus more on reducing incarceration (for example, sentencing reform, bail reform, alternatives to jail)?
marijuanaMarijuana. Should recreational marijuana be legal?
voter-idVoter ID and proof of citizenship. Should voters have to show photo ID to vote, or prove citizenship to register?
tariffsTariffs. Should the U.S. impose broad tariffs on imported goods?
ukraine-aidAid to Ukraine. Should the U.S. keep providing military aid to Ukraine?
money-in-politicsMoney in politics. Should limits on money in politics be strengthened (for example, overturning Citizens United or banning corporate PAC money)?
congress-stock-tradingStock trading by members of Congress. Should members of Congress be banned from trading individual stocks?

Stance

In IssuePosition.stance and stances= on GET /v1/issue-positions. The answer to the issue’s yes/no question (GET /v1/issues). null for a stated position that doesn’t answer it either way.

ValueMeaning
supportsYes to the issue’s question.
opposesNo to the issue’s question.
mixedYes to part of it, or yes with limits the summary spells out.

Issue position source kind

In IssuePositionSource.kind.

ValueMeaning
candidate_websiteThe candidate’s own campaign site.
voting_recordAn official roll-call vote record (Congress’s or a legislature’s).
official_statementAn official statement: a press release or a statement from their office.
questionnaireA published candidate questionnaire.
debateA debate.
newsNews reporting quoting or describing the candidate.

Officeholder office

In Officeholder.office and offices= on GET /v1/officeholders.

ValueMeaning
us_senatorU.S. Senator.
us_representativeU.S. Representative, or a non-voting delegate.
governorGovernor (or D.C.’s mayor).
lieutenant_governorLieutenant governor.
attorney_generalState attorney general.
secretary_of_stateSecretary of state.
chief_election_officerThe state’s chief election officer, where that isn’t the secretary of state.
treasurerState treasurer.
auditorState auditor or comptroller.
state_senatorState senator (upper house).
state_representativeState representative, assemblymember or delegate (lower house).
state_legislatorA member of a one-house legislature (Nebraska).
city_councilA member of the Council of the District of Columbia.

Officeholder level

In Officeholder.level and levels= on GET /v1/officeholders.

ValueMeaning
federalCongress.
stateA statewide office or the state legislature.
cityThe Council of the District of Columbia.

Officeholder office classification (open)

In Officeholder.offices[].classification. From Open States.

ValueMeaning
capitolThe office at the capitol (or in Washington).
districtAn office in the member’s district.
homeA home or personal address the member lists for constituents.
capitol-mailA mailing address for the capitol office, where it differs from the street address.
district-mailA mailing address for the district office, where it differs from the street address.
primaryThe member’s main office, where the legislature doesn’t say capitol or district.

Language

In lang= on data endpoints.

ValueMeaning
enEnglish (the default).
esSpanish ballot text (titles, choices, measure text, statements) where the state publishes it; English where it doesn’t. Names are never translated.

Export format

In format= on GET /v1/elections/{slug}/export.

ValueMeaning
jsonOne JSON document: the election, then every contest with its choices, result and every endorser’s position (the default).
csvOne row per endorsement (a ranked-choice order is a row per rank), with its election, contest, district, choice and result. Contests with no endorsements have no rows.

Stream start

In from= on GET /v1/stream and GET /v1/events.

ValueMeaning
latestOnly changes from now on (the default).
earliestThe oldest change the stream still holds, up to 7 days back.

Error code

In Error.error.code. Every error response is { "error": { "code", "message", "request_id" } }. The HTTP status for each code is in the table.

ValueHTTPMeaning
missing_api_key401No API key was sent. Send it as Authorization: Bearer <key> (or X-API-Key).
invalid_api_key401The key isn’t one we issued: mistyped, cut off, or from another site.
revoked_api_key401The key was revoked in the console. Use another key.
expired_api_key401The key passed the expiry date set on it.
ip_not_allowed403The key is limited to certain addresses and this request came from another.
account_pending403The account is waiting for approval.
account_suspended403The account is suspended. Write to us.
account_closed403The account is closed.
insufficient_scope403The key lacks the scope this endpoint needs (data:read, stream:read or subscriptions:write).
no_access403The account’s purchases don’t include this part of the API (the stream, for example), or they have ended.
outside_purchase403The record is in a state or election the account hasn’t bought. The message says what it does cover.
invalid_parameter400A parameter has a value we can’t use: the message names it.
invalid_cursor400The cursor isn’t one we gave out. Pass next_cursor back exactly as you got it.
invalid_filter400A stream filter parameter is invalid: the message says which.
invalid_json400The request body isn’t valid JSON.
invalid_subscription400The subscription’s name or filter is invalid: the message says which.
body_too_large413The request body is over 100 KB.
not_found404Nothing has that id or slug.
subscription_not_found404No subscription in your account has that id or name.
conflict409A subscription with that name already exists in your account.
too_many_requests429Too many requests from one address. Wait for Retry-After seconds.
too_many_failures429Too many requests with a missing or wrong key from one address. Wait for Retry-After seconds.
rate_limit_exceeded429Over your plan’s requests a minute. Wait for Retry-After seconds.
daily_limit_exceeded429Over your plan’s requests a day (the day is UTC).
too_many_streams429Your account already has as many streams open as its plan allows.
cursor_expired410The cursor or since time is older than the 7 days of changes the stream keeps. Start again with from=earliest, and catch up with GET /v1/changes.
warming_up503The stream is still loading on this server. Try again in a few seconds.
server_busy503This server has too many open streams. Try again.
not_available503This data isn’t loaded yet (officeholders, for example). Try again later.
internal_error500Something went wrong on our side. Quote request_id when you write to us.
Field values · BallotData API