Data dictionaries

Result in brief

One contest’s result as GET /v1/results lists it: who won, the deciding margin, every choice’s votes, the source and whether the seat changed hands.

Show samples as
The sample at the end of the page as JSON, or as CSV (format=csv).
Returned by
GET /v1/results
Shapes
The full record is in GET /v1/results. The shorter forms in winners[] and choices[] and margin leave some fields out; a field that isn’t in every form says where it is.

How it connects

  • contest_id is the contest (GET /v1/contests/{id} has its full result, choices and endorsements). seat.slug is its seat (GET /v1/offices/{slug}).
  • seat_change is the same as the contest’s result.seat_change (see Seat change).

Good to know

  • margin is between the last winning place and the next: first over second for vote for one, Nth over N+1th for vote for N. It is null without votes for both places, as on a party-reported result.
  • For ranked choice, counts are what the source publishes: the final round where it gives one, otherwise the first. GET /v1/contests/{id} has rcv_rounds where we have them.
  • While status is unofficial, decided can be false and margin is the current lead.
  • A measure needing a supermajority can lose with more Yes than No votes: check the winner, not the margin, and details.vote_required on the contest.

Fields

FieldTypeMeaningExample
contest_idintegerThe contest (GET /v1/contests/{id} has its choices, endorsements and the full result).Only in GET /v1/results.44017
titlestringTitle as printed on the ballot.Only in GET /v1/results.United States Representative, District 45
kindstringcandidate (an office), measure (a proposition) or retention (keep a judge?).candidate, measure, retention meaningsOnly in GET /v1/results.candidate
vote_methodstringHow votes are cast: plurality, multi_seat (vote for up to votes_allowed), ranked_choice, approval, or yes_no.plurality, multi_seat, ranked_choice, approval, yes_no meaningsOnly in GET /v1/results.plurality
votes_allowedintegeror nullHow many choices a voter may mark (vote for N).Only in GET /v1/results.1
ranks_allowedintegeror nullRanked choice: how many choices a voter may rank.Only in GET /v1/results.—
measure_codestringor nullThe measure’s letter or number: “K”, “Prop 1”.Only in GET /v1/results.—
officeobjector nullThe office a candidate or retention contest fills; null for a measure.Only in GET /v1/results.—
office.typestringThe office, normalized across states: us_representative, governor, state_senator, mayor, school_board, trial_court, sheriff, …51 values: meaningsOnly in GET /v1/results.us_representative
office.levelstringLevel of government the office belongs to (state courts are state, whatever district they sit in).federal, state, local meaningsOnly in GET /v1/results.federal
office.branchstringBranch of government.executive, legislative, judicial meaningsOnly in GET /v1/results.legislative
seatSeat changeor nullThe seat this contest fills (GET /v1/offices/{slug}), once it is linked; null for a measure or a contest not linked yet.Only in GET /v1/results.—
race_typestringor nullregular, special, recall or retention; null for a measure.regular, special, recall, retention meaningsOnly in GET /v1/results.regular
partisanbooleanor nullCandidates run with a party label on the ballot; null for a measure or retention question.Only in GET /v1/results.true
unopposedbooleanNo more candidates were running than seats. Always false for measures.Only in GET /v1/results.false
on_ballotbooleanPrinted on the ballot. false for a race the state or county left off, usually because it was unopposed and the candidates were declared elected; off_ballot_reason says why. endorsedby.org shows only contests on the ballot; filter with on_ballot=true for the same.Only in GET /v1/results.true
off_ballot_reasonstringor nullWhy the contest is not on the ballot: unopposed or cancelled. null when on_ballot is true.unopposed, cancelled meaningsOnly in GET /v1/results.—
districtobjectThe district the contest is voted in (GET /v1/contests has its partisanship and demographics).Only in GET /v1/results.—
district.idintegerDistrict id.Only in GET /v1/results.74427
district.ocd_idstringor nullOpen Civic Data division id, used in districts= filters.Only in GET /v1/results.ocd-division/country:us/state:ca/cd:45/plan:2024
district.namestringDistrict name.Only in GET /v1/results.California Congressional District 45 (2024 lines)
district.levelstringLevel of government.federal, state, county, city, school, special meaningsOnly in GET /v1/results.federal
district.typestringKind of district: statewide, congressional, state_upper, state_lower, county, council, school, …151 values so far: meaningsOnly in GET /v1/results.congressional
district.statestringor nullTwo capital letters (USPS code)USPS state code.Only in GET /v1/results.CA
electionobjectThe election the contest is in.Only in GET /v1/results.—
election.slugstringElection slug.Only in GET /v1/results.ca-2024-11-05-general
election.namestringElection name.Only in GET /v1/results.California General Election
election.datestringYYYY-MM-DDElection day.Only in GET /v1/results.2024-11-05
election.typestringKind of election.general, primary, special, special_primary, runoff, consolidated meaningsOnly in GET /v1/results.general
election.stagestringgeneral, primary or runoff, from the kind of election.general, primary, runoff meaningsOnly in GET /v1/results.general
statusstringunofficial (election-night and canvass counts, still changing) or certified (the canvass is certified).unofficial, certified meaningsOnly in GET /v1/results.certified
source_kindstringWhere the result comes from: official (a state, county, city or federal election office), compiled (certified official returns compiled by a research group, such as the MIT Election Data and Science Lab’s precinct returns, summed to the contest) party (a state or national party’s own announcement of the winner, with no vote counts; replaced as soon as an official result appears) or reported (read from a page that reports the result, such as a news story calling the race or a concession; always unofficial, used only where nothing else exists, replaced as soon as an official result appears).official, compiled, party, reported meaningsOnly in GET /v1/results.compiled
party_reportedbooleantrue when the result is a party’s announcement (source_kind party), not an official count.Only in GET /v1/results.false
decidedbooleanThe source names at least one winner. false while counts are still coming in, for a race headed to a runoff, or where the source doesn’t say.Only in GET /v1/results.true
total_votesintegeror nullVotes cast in the contest: the printed choices plus write-ins. null on a party-reported result.Only in GET /v1/results.315738
precincts_reportingintegeror nullPrecincts counted so far, where the source says.Only in GET /v1/results.—
precincts_totalintegeror nullPrecincts in the contest, where the source says.Only in GET /v1/results.—
winnersarray of Result in briefThe choices marked winner, most votes first. Empty until the source names one.Only in GET /v1/results.—
marginResult in briefor nullThe deciding margin; null without votes for both places (a party-reported winner, an uncontested race). While a count is unofficial it is the current lead.Only in GET /v1/results.—
choicesarray of Result in briefEvery choice with a result line, most votes first.Only in GET /v1/results.—
sourceobjectThe source of the result.Only in GET /v1/results.—
source.namestringWho published the result.Only in GET /v1/results.MIT Election Data and Science Lab, from official returns
source.urlstringURLWhere it was published. Every result has one.Only in GET /v1/results.https://dataverse.harvard.edu/file.xhtml?fileId=13731130
source.contest_namestringor nullThe contest’s name in the source, which may differ from the printed title.Only in GET /v1/results.US HOUSE|045
source.updated_atstringor nullISO 8601 date and time with time zoneWhen the source last updated it, if it says.Only in GET /v1/results.—
official_urlstringor nullURLFor a compiled result, the state’s own certified results, where we have them.Only in GET /v1/results.—
seat_changeSeat changeor nullWhether the incumbent kept the seat and whether a partisan seat flipped, judged against whoever held it going in; null until the contest has a winner and is linked to its seat.Only in GET /v1/results.—
fetched_atstringISO 8601 date and time with time zoneWhen we last read it from the source.Only in GET /v1/results.2026-11-13T01:03:57.092+00:00
choice_idintegerThe ballot choice’s id (a contest’s choices[].id).Only in winners[] and choices[].—
labelstringThe choice as printed: a candidate’s name, or Yes or No.Only in winners[] and choices[].—
measure_answerstringor nullFor a measure: yes or no.yes, no meaningsOnly in winners[] and choices[].—
candidate_idintegeror nullThe candidate (GET /v1/candidates/{id}); null for a measure answer.Only in winners[] and choices[].—
partystringor nullThe party the choice ran under, as printed; null for nonpartisan contests and measures.Only in winners[] and choices[].—
votesintegeror nullVotes for this choice. null only on a party-reported result, which names a winner without counts.Not in GET /v1/results.—
vote_pctnumberor nullShare of the contest’s votes, 0 to 100, as the source gives it.Only in winners[] and choices[].—
winnerbooleanor nulltrue for a winner (for vote for N, each of the N), false for a choice that lost; null when not decided yet or not stated, such as a race headed to a runoff.Only in winners[] and choices[].—
pct_pointsnumberThe same gap in percentage points of the contest’s votes.Only in margin.—
aheadstringThe choice in the last winning place.Only in margin.—
behindstringThe choice in the next place.Only in margin.—
winning_placesintegerHow many places win: the choices the source marks as winners, else the votes allowed.Only in margin.—

Download every dictionary as CSV or JSON.

CSV: GET /v1/results?format=csv

One row per contest with a result. Winners and their parties are joined with "; "; the margin is between the last winning place and the next. An empty cell is a null or a value that doesn’t apply. The next page’s cursor comes in the X-Next-Cursor header.

ColumnTypeMeaningExample
contest_idintegerThe contest (GET /v1/contests/{id} has its choices, endorsements and the full result).From contest_id in the JSON.44017
contest_titlestringTitle as printed on the ballot.From title in the JSON.United States Representative, District 45
contest_kindstringcandidate (an office), measure (a proposition) or retention (keep a judge?).candidate, measure, retention meaningsFrom kind in the JSON.candidate
vote_methodstringHow votes are cast: plurality, multi_seat (vote for up to votes_allowed), ranked_choice, approval, or yes_no.plurality, multi_seat, ranked_choice, approval, yes_no meaningsFrom vote_method in the JSON.plurality
votes_allowedintegercan be emptyHow many choices a voter may mark (vote for N).From votes_allowed in the JSON.1
office_typestringcan be emptyThe office, normalized across states: us_representative, governor, state_senator, mayor, school_board, trial_court, sheriff, …51 values: meaningsFrom office.type in the JSON.us_representative
office_levelstringcan be emptyLevel of government the office belongs to (state courts are state, whatever district they sit in).federal, state, local meaningsFrom office.level in the JSON.federal
seatstringcan be emptyThe durable seat the contest fills (GET /v1/offices/{slug}); empty for a measure or a contest not linked yet.From seat.slug in the JSON.us-house-ca-45
race_typestringcan be emptyregular, special, recall or retention; null for a measure.regular, special, recall, retention meaningsFrom race_type in the JSON.regular
partisanbooleancan be emptyCandidates run with a party label on the ballot; null for a measure or retention question.From partisan in the JSON.true
unopposedbooleanNo more candidates were running than seats. Always false for measures.From unopposed in the JSON.false
on_ballotbooleanPrinted on the ballot. false for a race the state or county left off, usually because it was unopposed and the candidates were declared elected; off_ballot_reason says why. endorsedby.org shows only contests on the ballot; filter with on_ballot=true for the same.From on_ballot in the JSON.true
off_ballot_reasonstringcan be emptyWhy the contest is not on the ballot: unopposed or cancelled. null when on_ballot is true.unopposed, cancelled meaningsFrom off_ballot_reason in the JSON.—
election_slugstringElection slug.From election.slug in the JSON.ca-2024-11-05-general
election_datestringYYYY-MM-DDElection day.From election.date in the JSON.2024-11-05
election_stagestringgeneral, primary or runoff, from the kind of election.general, primary, runoff meaningsFrom election.stage in the JSON.general
statestringcan be emptyTwo capital letters (USPS code)USPS state code.From district.state in the JSON.CA
district_ocd_idstringcan be emptyOpen Civic Data division id, used in districts= filters.From district.ocd_id in the JSON.ocd-division/country:us/state:ca/cd:45/plan:2024
district_namestringDistrict name.From district.name in the JSON.California Congressional District 45 (2024 lines)
statusstringunofficial (election-night and canvass counts, still changing) or certified (the canvass is certified).unofficial, certified meaningsFrom status in the JSON.certified
source_kindstringWhere the result comes from: official (a state, county, city or federal election office), compiled (certified official returns compiled by a research group, such as the MIT Election Data and Science Lab’s precinct returns, summed to the contest) party (a state or national party’s own announcement of the winner, with no vote counts; replaced as soon as an official result appears) or reported (read from a page that reports the result, such as a news story calling the race or a concession; always unofficial, used only where nothing else exists, replaced as soon as an official result appears).official, compiled, party, reported meaningsFrom source_kind in the JSON.compiled
decidedbooleanThe source names at least one winner. false while counts are still coming in, for a race headed to a runoff, or where the source doesn’t say.From decided in the JSON.true
total_votesintegercan be emptyVotes cast in the contest: the printed choices plus write-ins. null on a party-reported result.From total_votes in the JSON.315738
winnersstringcan be emptyvalues joined with "; "The choice as printed: a candidate’s name, or Yes or No.From winners[].label in the JSON.Derek Tran
winner_partiesstringcan be emptyvalues joined with "; "The party the choice ran under, as printed; null for nonpartisan contests and measures.From winners[].party in the JSON.Democratic
winner_votesstringcan be emptyvalues joined with "; "Votes for this choice. null only on a party-reported result, which names a winner without counts.From winners[].votes in the JSON.158216
winner_vote_pctsstringcan be emptyvalues joined with "; "Share of the contest’s votes, 0 to 100, as the source gives it.From winners[].vote_pct in the JSON.50.11
margin_votesintegercan be emptyVotes for this choice. null only on a party-reported result, which names a winner without counts.From margin.votes in the JSON.694
margin_pct_pointsnumbercan be emptyThe same gap in percentage points of the contest’s votes.From margin.pct_points in the JSON.0.22
margin_aheadstringcan be emptyThe choice in the last winning place.From margin.ahead in the JSON.Derek Tran
margin_behindstringcan be emptyThe choice in the next place.From margin.behind in the JSON.Michelle Steel
seat_outcomestringcan be emptyincumbent_reelected, incumbent_defeated, open_seat, new_seat or unknown; for a body electing several members, incumbents_reelected or mixed.incumbent_reelected, incumbent_defeated, open_seat, new_seat, unknown, incumbents_reelected, mixed meaningsFrom seat_change.outcome in the JSON.incumbent_defeated
seat_flippedbooleancan be emptyPartisan seats: the winner’s party differs from the party of whoever held the seat going in (appointments and party switches count). null for a nonpartisan seat or when either party is unknown.From seat_change.flipped in the JSON.true
parties_going_instringcan be emptyvalues joined with "; "Parties of the holders going in.From seat_change.parties_going_in in the JSON.Republican
source_namestringWho published the result.From source.name in the JSON.MIT Election Data and Science Lab, from official returns
source_urlstringURLWhere it was published. Every result has one.From source.url in the JSON.https://dataverse.harvard.edu/file.xhtml?fileId=13731130
official_urlstringcan be emptyURLFor a compiled result, the state’s own certified results, where we have them.From official_url in the JSON.—
fetched_atstringISO 8601 date and time with time zoneWhen we last read it from the source.From fetched_at in the JSON.2026-11-13T01:03:57.092+00:00

Sample (JSON)

One result in brief as the API returns it, in GET /v1/results. More in the sample data.

{
  "contest_id": 44017,
  "title": "United States Representative, District 45",
  "kind": "candidate",
  "vote_method": "plurality",
  "votes_allowed": 1,
  "ranks_allowed": null,
  "measure_code": null,
  "office": {
    "type": "us_representative",
    "level": "federal",
    "branch": "legislative"
  },
  "seat": {
    "slug": "us-house-ca-45",
    "name": "U.S. Representative, California District 45",
    "race_type": "regular",
    "stage": "general",
    "seats_up": 1
  },
  "race_type": "regular",
  "partisan": true,
  "unopposed": false,
  "on_ballot": true,
  "off_ballot_reason": null,
  "district": {
    "id": 74427,
    "ocd_id": "ocd-division/country:us/state:ca/cd:45/plan:2024",
    "name": "California Congressional District 45 (2024 lines)",
    "level": "federal",
    "type": "congressional",
    "state": "CA"
  },
  "election": {
    "slug": "ca-2024-11-05-general",
    "name": "California General Election",
    "date": "2024-11-05",
    "type": "general",
    "stage": "general"
  },
  "status": "certified",
  "source_kind": "compiled",
  "party_reported": false,
  "decided": true,
  "total_votes": 315738,
  "precincts_reporting": null,
  "precincts_total": null,
  "winners": [
    {
      "choice_id": 201553,
      "label": "Derek Tran",
      "measure_answer": null,
      "candidate_id": 394,
      "party": "Democratic",
      "votes": 158216,
      "vote_pct": 50.11,
      "winner": true
    }
  ],
  "margin": {
    "votes": 694,
    "pct_points": 0.22,
    "ahead": "Derek Tran",
    "behind": "Michelle Steel",
    "winning_places": 1
  },
  "choices": [
    {
      "choice_id": 201553,
      "label": "Derek Tran",
      "measure_answer": null,
      "candidate_id": 394,
      "party": "Democratic",
      "votes": 158216,
      "vote_pct": 50.11,
      "winner": true
    },
    {
      "choice_id": 201470,
      "label": "Michelle Steel",
      "measure_answer": null,
      "candidate_id": 73275,
      "party": "Republican",
      "votes": 157522,
      "vote_pct": 49.89,
      "winner": false
    }
  ],
  "source": {
    "name": "MIT Election Data and Science Lab, from official returns",
    "url": "https://dataverse.harvard.edu/file.xhtml?fileId=13731130",
    "contest_name": "US HOUSE|045",
    "updated_at": null
  },
  "official_url": null,
  "seat_change": {
    "office": "us-house-ca-45",
    "outcome": "incumbent_defeated",
    "partisan": true,
    "flipped": true,
    "holders_going_in": [
      {
        "name": "Michelle Steel",
        "party": "Republican",
        "how": "elected",
        "start_date": "2023-01-03"
      }
    ],
    "parties_going_in": [
      "Republican"
    ],
    "winner_parties": [
      "Democratic"
    ],
    "incumbents_up": 1,
    "incumbents_reelected": 0,
    "incumbents_defeated": 1,
    "open_seats": 0,
    "vacant_since": null
  },
  "fetched_at": "2026-11-13T01:03:57.092+00:00"
}

Sample (CSV)

The same records as the JSON sample, as GET /v1/results?format=csv returns them. Download: CSV, JSON.

contest_id,contest_title,contest_kind,vote_method,votes_allowed,office_type,office_level,seat,race_type,partisan,unopposed,on_ballot,off_ballot_reason,election_slug,election_date,election_stage,state,district_ocd_id,district_name,status,source_kind,decided,total_votes,winners,winner_parties,winner_votes,winner_vote_pcts,margin_votes,margin_pct_points,margin_ahead,margin_behind,seat_outcome,seat_flipped,parties_going_in,source_name,source_url,official_url,fetched_at
44017,"United States Representative, District 45",candidate,plurality,1,us_representative,federal,us-house-ca-45,regular,true,false,true,,ca-2024-11-05-general,2024-11-05,general,CA,ocd-division/country:us/state:ca/cd:45/plan:2024,California Congressional District 45 (2024 lines),certified,compiled,true,315738,Derek Tran,Democratic,158216,50.11,694,0.22,Derek Tran,Michelle Steel,incumbent_defeated,true,Republican,"MIT Election Data and Science Lab, from official returns",https://dataverse.harvard.edu/file.xhtml?fileId=13731130,,2026-11-13T01:03:57.092+00:00
44047,"United States Representative, District 12",candidate,plurality,1,us_representative,federal,us-house-ca-12,regular,true,false,true,,ca-2024-11-05-general,2024-11-05,general,CA,ocd-division/country:us/state:ca/cd:12/plan:2024,California Congressional District 12 (2024 lines),certified,compiled,true,282974,Lateefah Simon,Democratic,185144,65.428,87314,30.856,Lateefah Simon,Jennifer Tran,open_seat,false,Democratic,"MIT Election Data and Science Lab, from official returns",https://dataverse.harvard.edu/file.xhtml?fileId=13731130,,2026-11-13T01:03:57.092+00:00
Result in brief data dictionary · BallotData API