Seat change counts
Seat outcomes counted over a set of decided contests: re-elected and defeated incumbents, open seats, flips, and each party’s gains and losses.
- Returned by
GET /v1/seat-changes- Shapes
- The full record is in GET /v1/seat-changes. The shorter forms in totals and groups[] and parties[] leave some fields out; a field that isn’t in every form says where it is.
How it connects
- The counts are over the same contests
GET /v1/resultsreturns with the same filters; addflipped=truethere to list the flipped seats.
Good to know
- Only decided contests linked to a seat count. A contest not linked yet, or a primary, is left out.
- Counts are contests, not seats: a vote-for-N contest counts once for each party in it.
gainedandlostcount only flipped contests;netis gained minus lost.
Fields
| Field | Type | Meaning | Example |
|---|---|---|---|
group_by | stringor null | How groups are split; null when group_by wasn’t given.state, office_type, election, stage meaningsOnly in GET /v1/seat-changes. | office_type |
totals | Seat change counts | Seat outcomes counted over a set of contests. A vote-for-N contest counts once for each party in it, not once per seat.Only in GET /v1/seat-changes. | — |
groups | array of objector null | The same counts for each group, most contests first; null without group_by.Only in GET /v1/seat-changes. | — |
groups[].group | stringor null | The group: a state code, office type, election slug or stage; null for contests without one.Only in GET /v1/seat-changes. | us_representative |
groups[].contests | integer | Decided contests linked to a seat.Only in GET /v1/seat-changes. | 52 |
groups[].partisan | integer | Of those, contests for partisan seats.Only in GET /v1/seat-changes. | 52 |
groups[].flipped | integer | Partisan seats that changed party.Only in GET /v1/seat-changes. | 3 |
groups[].flip_unknown | integer | Partisan seats where the holder’s or the winner’s party isn’t known, so flipped is null.Only in GET /v1/seat-changes. | 0 |
groups[].outcomes | object | Contests by seat outcome (incumbent_reelected, incumbent_defeated, open_seat, new_seat, unknown, incumbents_reelected, mixed); outcomes with none are left out.Only in GET /v1/seat-changes. | — |
groups[].parties | array of Seat change counts | Each party with a seat up or won, most wins first.Only in GET /v1/seat-changes. | — |
contests | integer | Decided contests linked to a seat.Only in totals and groups[]. | — |
partisan | integer | Of those, contests for partisan seats.Only in totals and groups[]. | — |
flipped | integer | Partisan seats that changed party.Only in totals and groups[]. | — |
flip_unknown | integer | Partisan seats where the holder’s or the winner’s party isn’t known, so flipped is null.Only in totals and groups[]. | — |
outcomes | object | Contests by seat outcome (incumbent_reelected, incumbent_defeated, open_seat, new_seat, unknown, incumbents_reelected, mixed); outcomes with none are left out.Only in totals and groups[]. | — |
parties | array of Seat change counts | Each party with a seat up or won, most wins first.Only in totals and groups[]. | — |
party | string | Party name.Only in parties[]. | — |
slug | string | Party slug, for flipped_to= and flipped_from=.16 values so far: meaningsOnly in parties[]. | democratic |
held_going_in | integer | Contests whose holders going in included this party.Only in parties[]. | — |
won | integer | Contests this party won (for vote for N, at least one seat).Only in parties[]. | — |
gained | integer | Flipped contests this party won without holding a seat up going in.Only in parties[]. | — |
lost | integer | Flipped contests this party held going in and won no seat in.Only in parties[]. | — |
net | integer | gained minus lost.Only in parties[]. | — |
Download every dictionary as CSV or JSON.
Sample (JSON)
One seat change counts as the API returns it, in GET /v1/seat-changes. More in the sample data.
{
"group_by": "office_type",
"totals": {
"contests": 52,
"partisan": 52,
"flipped": 3,
"flip_unknown": 0,
"outcomes": {
"incumbent_reelected": 45,
"incumbent_defeated": 3,
"open_seat": 4
},
"parties": [
{
"party": "Democratic",
"slug": "democratic",
"held_going_in": 40,
"won": 43,
"gained": 3,
"lost": 0,
"net": 3
},
{
"party": "Republican",
"slug": "republican",
"held_going_in": 12,
"won": 9,
"gained": 0,
"lost": 3,
"net": -3
}
]
},
"groups": [
{
"group": "us_representative",
"contests": 52,
"partisan": 52,
"flipped": 3,
"flip_unknown": 0,
"outcomes": {
"incumbent_reelected": 45,
"incumbent_defeated": 3,
"open_seat": 4
},
"parties": [
{
"party": "Democratic",
"slug": "democratic",
"held_going_in": 40,
"won": 43,
"gained": 3,
"lost": 0,
"net": 3
},
{
"party": "Republican",
"slug": "republican",
"held_going_in": 12,
"won": 9,
"gained": 0,
"lost": 3,
"net": -3
}
]
}
]
}