---
title: "Pemilu 2024 Data Hub"
url: "https://ridwaanhall.com/projects/pemilu-2024-data-hub"
markdown: "https://ridwaanhall.com/projects/pemilu-2024-data-hub.md"
summary: "A set of Django REST APIs for 2024 Indonesian election data."
---

# Pemilu 2024 Data Hub

> A set of Django REST APIs for 2024 Indonesian election data.

- Category: API
- Status: Completed
- Started: February 29, 2024
- Built with: Flask, Python, Vercel

## About

### The problem

Developers building trackers and analyses during the 2024 Indonesian election needed structured, up-to-date data, not pages to scrape.

### The approach

I built a small Flask API, deployed on Vercel, that reads the public Sirekap data and re-serves it as structured JSON.

- Endpoints for candidates, vote counts and dispute statistics.
- Error handling that keeps client applications stable.
- Data available at several regional levels.

### The result

The API gave developers one dependable source for election data while the count was still running. The source is private and the deployment has since been retired.

## Features

- **Flexible Endpoints**: Candidate names, dispute statistics and voting details in one API.
- **Robust Error Handling**: Predictable errors that keep client applications stable.
- **Detailed Data**: Election data at every regional level for in-depth analysis.

## Tags

API, Pemilu 2024, Election Data, Django REST Framework, Python, Indonesia, Voting Stats, Candidate Data, Real-time Data, Election, Data

## Elsewhere

- This page for people: https://ridwaanhall.com/projects/pemilu-2024-data-hub
- Index of every page as Markdown: [llms.txt](https://ridwaanhall.com/llms.txt)
