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 asThe 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_idis the contest (GET /v1/contests/{id}has its full result, choices and endorsements).seat.slugis its seat (GET /v1/offices/{slug}).seat_changeis the same as the contest’sresult.seat_change(see Seat change).
Good to know
marginis 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}hasrcv_roundswhere we have them. - While
statusisunofficial,decidedcan be false andmarginis 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_requiredon the contest.
Fields
| Field | Type | Meaning | Example |
|---|---|---|---|
contest_id | integer | The contest (GET /v1/contests/{id} has its choices, endorsements and the full result).Only in GET /v1/results. | 44017 |
title | string | Title as printed on the ballot.Only in GET /v1/results. | United States Representative, District 45 |
kind | string | candidate (an office), measure (a proposition) or retention (keep a judge?).candidate, measure, retention meaningsOnly in GET /v1/results. | candidate |
vote_method | string | How 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_allowed | integeror null | How many choices a voter may mark (vote for N).Only in GET /v1/results. | 1 |
ranks_allowed | integeror null | Ranked choice: how many choices a voter may rank.Only in GET /v1/results. | — |
measure_code | stringor null | The measure’s letter or number: “K”, “Prop 1”.Only in GET /v1/results. | — |
office | objector null | The office a candidate or retention contest fills; null for a measure.Only in GET /v1/results. | — |
office.type | string | The 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.level | string | Level 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.branch | string | Branch of government.executive, legislative, judicial meaningsOnly in GET /v1/results. | legislative |
seat | Seat changeor null | The 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_type | stringor null | regular, special, recall or retention; null for a measure.regular, special, recall, retention meaningsOnly in GET /v1/results. | regular |
partisan | booleanor null | Candidates run with a party label on the ballot; null for a measure or retention question.Only in GET /v1/results. | true |
unopposed | boolean | No more candidates were running than seats. Always false for measures.Only in GET /v1/results. | false |
on_ballot | boolean | Printed 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_reason | stringor null | Why the contest is not on the ballot: unopposed or cancelled. null when on_ballot is true.unopposed, cancelled meaningsOnly in GET /v1/results. | — |
district | object | The district the contest is voted in (GET /v1/contests has its partisanship and demographics).Only in GET /v1/results. | — |
district.id | integer | District id.Only in GET /v1/results. | 74427 |
district.ocd_id | stringor null | Open Civic Data division id, used in districts= filters.Only in GET /v1/results. | ocd-division/country:us/state:ca/cd:45/plan:2024 |
district.name | string | District name.Only in GET /v1/results. | California Congressional District 45 (2024 lines) |
district.level | string | Level of government.federal, state, county, city, school, special meaningsOnly in GET /v1/results. | federal |
district.type | string | Kind of district: statewide, congressional, state_upper, state_lower, county, council, school, …151 values so far: meaningsOnly in GET /v1/results. | congressional |
district.state | stringor nullTwo capital letters (USPS code) | USPS state code.Only in GET /v1/results. | CA |
election | object | The election the contest is in.Only in GET /v1/results. | — |
election.slug | string | Election slug.Only in GET /v1/results. | ca-2024-11-05-general |
election.name | string | Election name.Only in GET /v1/results. | California General Election |
election.date | stringYYYY-MM-DD | Election day.Only in GET /v1/results. | 2024-11-05 |
election.type | string | Kind of election.general, primary, special, special_primary, runoff, consolidated meaningsOnly in GET /v1/results. | general |
election.stage | string | general, primary or runoff, from the kind of election.general, primary, runoff meaningsOnly in GET /v1/results. | general |
status | string | unofficial (election-night and canvass counts, still changing) or certified (the canvass is certified).unofficial, certified meaningsOnly in GET /v1/results. | certified |
source_kind | string | Where 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_reported | boolean | true when the result is a party’s announcement (source_kind party), not an official count.Only in GET /v1/results. | false |
decided | boolean | The 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_votes | integeror null | Votes cast in the contest: the printed choices plus write-ins. null on a party-reported result.Only in GET /v1/results. | 315738 |
precincts_reporting | integeror null | Precincts counted so far, where the source says.Only in GET /v1/results. | — |
precincts_total | integeror null | Precincts in the contest, where the source says.Only in GET /v1/results. | — |
winners | array of Result in brief | The choices marked winner, most votes first. Empty until the source names one.Only in GET /v1/results. | — |
margin | Result in briefor null | The 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. | — |
choices | array of Result in brief | Every choice with a result line, most votes first.Only in GET /v1/results. | — |
source | object | The source of the result.Only in GET /v1/results. | — |
source.name | string | Who published the result.Only in GET /v1/results. | MIT Election Data and Science Lab, from official returns |
source.url | stringURL | Where it was published. Every result has one.Only in GET /v1/results. | https://dataverse.harvard.edu/file.xhtml?fileId=13731130 |
source.contest_name | stringor null | The contest’s name in the source, which may differ from the printed title.Only in GET /v1/results. | US HOUSE|045 |
source.updated_at | stringor nullISO 8601 date and time with time zone | When the source last updated it, if it says.Only in GET /v1/results. | — |
official_url | stringor nullURL | For a compiled result, the state’s own certified results, where we have them.Only in GET /v1/results. | — |
seat_change | Seat changeor null | Whether 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_at | stringISO 8601 date and time with time zone | When we last read it from the source.Only in GET /v1/results. | 2026-11-13T01:03:57.092+00:00 |
choice_id | integer | The ballot choice’s id (a contest’s choices[].id).Only in winners[] and choices[]. | — |
label | string | The choice as printed: a candidate’s name, or Yes or No.Only in winners[] and choices[]. | — |
measure_answer | stringor null | For a measure: yes or no.yes, no meaningsOnly in winners[] and choices[]. | — |
candidate_id | integeror null | The candidate (GET /v1/candidates/{id}); null for a measure answer.Only in winners[] and choices[]. | — |
party | stringor null | The party the choice ran under, as printed; null for nonpartisan contests and measures.Only in winners[] and choices[]. | — |
votes | integeror null | Votes for this choice. null only on a party-reported result, which names a winner without counts.Not in GET /v1/results. | — |
vote_pct | numberor null | Share of the contest’s votes, 0 to 100, as the source gives it.Only in winners[] and choices[]. | — |
winner | booleanor null | true 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_points | number | The same gap in percentage points of the contest’s votes.Only in margin. | — |
ahead | string | The choice in the last winning place.Only in margin. | — |
behind | string | The choice in the next place.Only in margin. | — |
winning_places | integer | How 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.
| Column | Type | Meaning | Example |
|---|---|---|---|
contest_id | integer | The contest (GET /v1/contests/{id} has its choices, endorsements and the full result).From contest_id in the JSON. | 44017 |
contest_title | string | Title as printed on the ballot.From title in the JSON. | United States Representative, District 45 |
contest_kind | string | candidate (an office), measure (a proposition) or retention (keep a judge?).candidate, measure, retention meaningsFrom kind in the JSON. | candidate |
vote_method | string | How 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_allowed | integercan be empty | How many choices a voter may mark (vote for N).From votes_allowed in the JSON. | 1 |
office_type | stringcan be empty | The 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_level | stringcan be empty | Level 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 |
seat | stringcan be empty | The 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_type | stringcan be empty | regular, special, recall or retention; null for a measure.regular, special, recall, retention meaningsFrom race_type in the JSON. | regular |
partisan | booleancan be empty | Candidates run with a party label on the ballot; null for a measure or retention question.From partisan in the JSON. | true |
unopposed | boolean | No more candidates were running than seats. Always false for measures.From unopposed in the JSON. | false |
on_ballot | boolean | Printed 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_reason | stringcan be empty | Why 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_slug | string | Election slug.From election.slug in the JSON. | ca-2024-11-05-general |
election_date | stringYYYY-MM-DD | Election day.From election.date in the JSON. | 2024-11-05 |
election_stage | string | general, primary or runoff, from the kind of election.general, primary, runoff meaningsFrom election.stage in the JSON. | general |
state | stringcan be emptyTwo capital letters (USPS code) | USPS state code.From district.state in the JSON. | CA |
district_ocd_id | stringcan be empty | Open 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_name | string | District name.From district.name in the JSON. | California Congressional District 45 (2024 lines) |
status | string | unofficial (election-night and canvass counts, still changing) or certified (the canvass is certified).unofficial, certified meaningsFrom status in the JSON. | certified |
source_kind | string | Where 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 |
decided | boolean | The 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_votes | integercan be empty | Votes cast in the contest: the printed choices plus write-ins. null on a party-reported result.From total_votes in the JSON. | 315738 |
winners | stringcan 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_parties | stringcan 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_votes | stringcan 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_pcts | stringcan 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_votes | integercan be empty | Votes 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_points | numbercan be empty | The same gap in percentage points of the contest’s votes.From margin.pct_points in the JSON. | 0.22 |
margin_ahead | stringcan be empty | The choice in the last winning place.From margin.ahead in the JSON. | Derek Tran |
margin_behind | stringcan be empty | The choice in the next place.From margin.behind in the JSON. | Michelle Steel |
seat_outcome | stringcan be empty | incumbent_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_flipped | booleancan be empty | Partisan 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_in | stringcan be emptyvalues joined with "; " | Parties of the holders going in.From seat_change.parties_going_in in the JSON. | Republican |
source_name | string | Who published the result.From source.name in the JSON. | MIT Election Data and Science Lab, from official returns |
source_url | stringURL | Where it was published. Every result has one.From source.url in the JSON. | https://dataverse.harvard.edu/file.xhtml?fileId=13731130 |
official_url | stringcan be emptyURL | For a compiled result, the state’s own certified results, where we have them.From official_url in the JSON. | — |
fetched_at | stringISO 8601 date and time with time zone | When 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