FREN
Sign upSign in

Election results API

Every result published on OpenCongoData Elections, from 2006 to 2024, as JSON or CSV. Each response states the source and status of its figures.

The API opens when the new platform goes live. You can already create your keys.

1. Get a key

Sign in, then create a key in My account → API access. The key (ce_live_…) is shown only once: keep it on a server, never in a public web page. Send it in the Authorization: Bearer … header.

Quota per key per day (reset at 00:00 UTC): 1,000 calls with a free account, 50,000 with Premium. The RateLimit-Remaining and RateLimit-Reset headers show where you stand.

2. First call

curl -H "Authorization: Bearer $CONGODATA_API_KEY" \
  "https://api.elections.congodata.app/v1/elections/2023-presidential/results?level=province&area=KN"
{
  "data": [
    { "areaId": "CD", "areaName": "République démocratique du Congo",
      "candidateId": "2023-presidential:felix-tshisekedi", "candidateName": "Félix Tshisekedi",
      "partyId": "udps", "partyName": "UDPS",
      "votes": 13058962, "percent": 73.47, "elected": true },
    …
  ],
  "meta": {
    "status": "official",
    "source": { "name": "Cour constitutionnelle", "note": "Résultats définitifs" },
    "license": "CC BY 4.0 — OpenCongoData Élections (elections.congodata.app)",
    "citation": "OpenCongoData Élections, jeu de données 2026.11.23, https://elections.congodata.app — source : Cour constitutionnelle.",
    "total": 6
  },
  "links": { "self": "/v1/elections/2023-presidential/results?level=national" }
}

3. Endpoints

  • GET /v1/elections

    Elections (presidential, legislative, provincial, senate).

  • GET /v1/elections/{id}

    One election and the result levels available, with their status.

  • GET /v1/elections/{id}/results?level=&area=

    Results at national, province or constituency level, filterable by area.

  • GET /v1/elections/{id}/contests?province=

    Constituencies of a legislative election.

  • GET /v1/contests/{id}/results

    Every candidate in one constituency.

  • GET /v1/areas?type=&parent=

    Country, provinces, constituencies and diaspora countries.

  • GET /v1/candidates?q=&election=&area=&party=

    Candidate search (accents optional).

  • GET /v1/candidates/{id}

    One candidate and all their results.

  • GET /v1/parties

    Parties and groupings.

  • GET /v1/parties/{id}

    One party and its national results across elections.

Full description (OpenAPI 3.1): https://api.elections.congodata.app/v1/openapi.json

4. Status of the figures

The meta.status field tells you how much weight the figures carry. Quote it with the source.

  • official — Official results (CENI, CEI in 2006, or the Constitutional Court).
  • provisional — Provisional results, not yet confirmed.
  • estimate — Rounded estimates, pending official figures.
  • illustrative — Indicative breakdown: not to be quoted as a result.

5. Pages, CSV, language and caching

Lists return 100 items by default (limit up to 500); follow links.next for more. Add format=csv for a CSV file. Responses carry an ETag: send it back in If-None-Match for an empty 304 response (it still counts against the quota). Errors follow RFC 9457 (application/problem+json).

Text fields (election names, notes, statusNote, the citation) are in French by default. Add lang=en, or send Accept-Language: en, for English. Ids, numbers and the names of people, parties and places are the same in both languages.

import os, requests

session = requests.Session()
session.headers["Authorization"] = f"Bearer {os.environ['CONGODATA_API_KEY']}"

url = "https://api.elections.congodata.app/v1/elections/2023-national-assembly/results?level=constituency&limit=500"
rows = []
while url:
    page = session.get(url, timeout=30).json()
    rows += page["data"]
    url = page["links"].get("next") and "https://api.elections.congodata.app" + page["links"]["next"]

print(len(rows), "rows —", page["meta"]["status"], "—", page["meta"]["citation"])

6. Licence and citation

The data is licensed CC BY 4.0. Credit “OpenCongoData Elections” and the source given in meta.citation. Official results are published by the CENI; where they differ, they prevail. Questions: support@congodata.app.