Election Results by Area
The result of one race by area: the race header and every candidate with votes and share, then one row per state, congressional district, county, city or town, or precinct with total votes, Democratic, Republican and other shares, the leader, margin, party margin, swing, flip and turnout.
The answer is {race, choices, level, total, limit, offset, sort, order, rows, about}. sort is name, total_votes, rd_margin, margin, swing, dem_pct, rep_pct, turnout or state.
Request
- Base URL: https://api.dataporium.io
- URL: https://api.dataporium.io/elections/results
- Auth: API key in query parameter apikey
Query parameters
The race_id from /elections/races
state, county, cousub, cd or precinct (default: the top level of the race)
Only areas of this state
Only areas inside this county (5-digit code); needed for precincts
Area name contains this text
true = each candidate's votes in every row (top 8)
true = short rows for maps, up to 4000 rows
Sort field (see the endpoint description)
asc or desc
Rows per page (default 50 to 100, at most 1000)
Rows to skip, for paging
Response
Successful response (JSON).
Changes
No recorded changes to this operation across all 1 revision of this API.