---
title: "Election Night Races"
method: GET
path: "/elections/live/races"
tags: ["US Elections"]
---

# Election Night Races

`GET /elections/live/races`

## Request

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

Races that are being counted right now on election night, each with the candidate who is leading and the runner-up, votes and shares, the lead in votes and points, the percent of precincts reported and the time of the last change. Counts are unofficial and still changing. A race is only ever shown as leading, never as won.

All filters are optional. The answer is {updated_at, unofficial, note, total, rows}. Before any state starts counting the rows list is empty.

## Query parameters

- `office` string
- `state` string
- `close` 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)
