---
title: "Election Results by Area"
method: GET
path: "/elections/results"
tags: ["US Elections"]
---

# Election Results by Area

`GET /elections/results`

## Request

- Base URL: `https://api.dataporium.io`
- URL: `https://api.dataporium.io/elections/results`
- Auth: API key in query parameter `apikey`

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.

## Query parameters

- `race` string, required
- `level` string
- `state` string
- `county` string
- `q` string
- `include_choices` boolean
- `compact` boolean
- `sort` string
- `order` string
- `limit` integer
- `offset` integer

## Response `200`

Successful response (JSON).

- object

## Other responses

- `401`: No API key in the request.
- `403`: The API key is not valid or has expired.

---

[API](https://skmtc.dev/dataporium/apis/dataporium-data-api.md) · [All operations](https://skmtc.dev/dataporium/apis/dataporium-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dataporium/apis/dataporium-data-api/revisions/8bc593179dc8?raw)
