Election Analysis
Analysis views over the election data: national presidential vote by year, seats won in Congress and governorships, control of state legislatures, areas that flipped or swung most, bellwether states and counties, split tickets, partisan lean, county results next to demographics, and what is loaded.
The answer is {view, total, limit, offset, rows, about}.
Request
- Base URL: https://api.dataporium.io
- URL: https://api.dataporium.io/elections/summary
- Auth: API key in query parameter apikey
Query parameters
trend, seats, legislatures, flips, swing, bellwethers, split_tickets, lean, demographics or coverage
Election year
Office filter (flips and swing). For demographics: president (default), us_senate, governor or us_house, the county results of that race next to county demographics
state, county or cd
State code(s)
us_house, us_senate, governor, state_senate or state_house
split_tickets: senate, house or governor
bellwethers: fewest presidential elections
Sort field (depends on the view)
asc or desc
Rows per page, 1 to 3500 (default 100)
Rows to skip, for paging
Response
Successful response (JSON).
Changes
No recorded changes to this operation across all 1 revision of this API.