Global Election Index Elections API

The Elections API from Global Election Index — 5 operation(s) for elections.

GitHub OpenAPI

Operations 5

GET /v1/elections Elections in a date range #
GET /v1/elections/{id} Get election #
GET /v1/elections/{id}/races/{race} Get race #
GET /v1/elections/{id}/races/{race}/when Stage window #
GET /v1/elections/{id}/races/{race}/sources Race sources #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/electionindex-org:electionindex-org-elections-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

electionindex-org-elections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Global Election Index Elections API
  version: 2026-11-04.3b080e15
  description: Neutral, sourced national election calendar with count stage windows and classified sources. Every response has meta.dataset_version.
  license:
    name: CC BY 4.0
    url: https://creativecommons.org/licenses/by/4.0/
  contact:
    name: Global Election Index
    email: team@electionindex.org
    url: https://electionindex.org/privacy#contact
  termsOfService: https://electionindex.org/terms
servers:
- url: https://electionindex.org
tags:
- name: Elections
paths:
  /v1/elections:
    get:
      operationId: listElections
      summary: Elections in a date range
      parameters:
      - name: country
        in: query
        required: false
        description: ISO 3166-1 alpha-2
        schema:
          type: string
      - name: from
        in: query
        required: false
        description: YYYY-MM-DD
        schema:
          type: string
      - name: to
        in: query
        required: false
        description: YYYY-MM-DD
        schema:
          type: string
      - name: status
        in: query
        required: false
        description: scheduled | counting | finalising | final-expected
        schema:
          type: string
      - name: level
        in: query
        required: false
        description: national | regional | all (default all)
        schema:
          type: string
      - name: full
        in: query
        required: false
        description: 1 to include full races
        schema:
          type: string
      responses:
        '200':
          description: Elections
          content:
            application/json: {}
      tags:
      - Elections
  /v1/elections/{id}:
    get:
      operationId: getElection
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: One election
          content:
            application/json: {}
      tags:
      - Elections
      summary: Get election
      x-summary-source: derived
  /v1/elections/{id}/races/{race}:
    get:
      operationId: getRace
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: race
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: One race
          content:
            application/json: {}
      tags:
      - Elections
      summary: Get race
      x-summary-source: derived
  /v1/elections/{id}/races/{race}/when:
    get:
      operationId: stageWindow
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: race
        in: path
        required: true
        schema:
          type: string
      - name: stage
        in: query
        required: false
        description: Stage id
        schema:
          type: string
          enum:
          - exit-poll
          - election-night
          - media-call
          - intermediate-count
          - final-result
          - court-validation
          - government
          default: final-result
      responses:
        '200':
          description: Stage window
          content:
            application/json: {}
      tags:
      - Elections
      summary: Stage window
      x-summary-source: derived
  /v1/elections/{id}/races/{race}/sources:
    get:
      operationId: raceSources
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: race
        in: path
        required: true
        schema:
          type: string
      - name: resolvable
        in: query
        required: false
        description: 1 for race_results and feeds only
        schema:
          type: string
      responses:
        '200':
          description: Classified sources
          content:
            application/json: {}
      tags:
      - Elections
      summary: Race sources
      x-summary-source: derived