---
title: "Election Candidates"
method: GET
path: "/elections/candidates"
tags: ["US Elections"]
---

# Election Candidates

`GET /elections/candidates`

## Request

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

Candidates for president, U.S. Senate, U.S. House, governor and other statewide offices, with party, home state, years and the number of races and wins. Pass slug for one candidate with every race: year, office, state, party, votes, share and result. Members of Congress carry an official portrait link.

The list answer is {total, limit, offset, sort, order, rows, about}; with slug it is {candidate, races, about}. sort is name, last_year, first_year, races or wins.

## Query parameters

- `slug` string
- `q` string
- `state` string
- `party` string
- `office` string
- `year` integer
- `won` boolean
- `in_congress` 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)
