---
title: "Show election with provided ID"
method: GET
path: "/api/v2/elections/{id}"
tags: ["Elections"]
---

# Show election with provided ID

`GET /api/v2/elections/{id}`

## Request

- Base URL: `https://yournation.nationbuilder.com`
- URL: `https://yournation.nationbuilder.com/api/v2/elections/{id}`
- Auth: HTTP bearer

Returns the election that matches the given ID.

## Response `200`

The requested election.

- ElectionShowResponse: The JSON:API top-level document shape for responses returning a single resource under the data member.
  - `data` object, required: A JSON:API resource identifier object, the type/id pair that uniquely identifies a single resource.
    - `id` string, required: Unique identifier of the resource.
    - `type` 'elections', required: The JSON:API resource type.
    - `attributes` object: The read-only attributes of a election.
      - `country_code` string, nullable: Two letter country code.
      - `donation_maximum_in_cents` integer, nullable: Maximum donation amount in cents.
      - `election_at` string, date, nullable: The date the election is held.
      - `election_cycle` string, nullable: The election cycle.
      - `election_period` 'primary' | 'general' | 'special' | 'recount' | 'runoff' | 'convention' | 'other' | 'unknown' | 'presidential_primary' | 'previous_campaign' | 'null', nullable: The election period.
      - `registration_ends_at` string, date, nullable: The date the registration ends.
      - `state` string, nullable: Two letter abbreviation of the state.
      - `created_at` string, date-time, nullable
      - `donation_maximum` string, nullable: Maximum donation amount.
      - `updated_at` string, date-time, nullable
  - `included` Resource[]: Sideloaded resources requested via the include query parameter. Each entry is a full resource object whose shape is documented under its own resource type.
    - `id` string, required: Unique identifier of the resource.
    - `type` string, required: The JSON:API resource type.
    - `attributes` object: The attributes of the resource, as documented for its resource type.
    - `relationships` object: References from this resource to other resources in the document.
  - `meta` object: Non-standard information about the document. Empty unless the endpoint has metadata to convey.

## Other responses

- `401`: The access token is missing, expired, or not authorized to access this resource.
- `404`: No resource exists with the provided ID.
- `429`: The access token has exceeded its request quota for the current rate-limit window.

## Changes

- **2026-11-05** `d5c88ca497ac`: 2 breaking, 5 info
  - the response's body type changed from `object` to no type for status `200`
  - removed the required property `data` from the response with the `200` status
  - added `#/components/schemas/show_document, subschema #2` to the response body `allOf` list for the response status `200`
  - media type `application/json` was changed to a more specific media type `application/vnd.api+json` for the response status `200`
  - …3 more

[Operation history](https://skmtc.dev/nationbuilder/apis/nationbuilder-v2-api/changes/api/v2/elections/:id/get.md)

---

[API](https://skmtc.dev/nationbuilder/apis/nationbuilder-v2-api.md) - [All operations](https://skmtc.dev/nationbuilder/apis/nationbuilder-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nationbuilder/apis/nationbuilder-v2-api/revisions/d5c88ca497ac?raw)
