---
title: "Data for developers and AI agents | Election Computer"
description: "Election Computer's free JSON API, MCP server and Markdown pages: Australian seats, politicians and political ad spend for software and AI agents."
url: "https://election.computer/developers"
---

[Home](https://election.computer/) / [How this works](https://election.computer/about)

# Data for developers and AI agents

Everything on this site can be read by software. No key, no account, no cost.

## JSON API

Read-only, described in OpenAPI at [/api/openapi.json](https://election.computer/api/openapi.json).

- `GET /api/v1/search?q=preston` finds seats, politicians and advertisers by name, each with its page URL.
- `GET /api/v1/spenders?jurisdiction=vic&side=labor&limit=10` ranks advertisers by Facebook and Instagram ad spend. Jurisdictions: federal, vic, nsw, qld, wa, sa, tas, act, nt. Sides: labor, liberal, nationals, greens, independent, minor, third\_party, union.
- `GET /api/v1/politicians/anthony-albanese` returns one politician: party, seat, a sourced profile and ad spend.
- `GET /api/v1/status` says when the data was last updated.

Spend is always a range, `{"min": 40000, "max": 57000, "currency": "AUD"}`, because Meta publishes each ad's spend as a band. Please quote it as a range.

## MCP server

Connect an AI assistant to `https://election.computer/mcp` (Streamable HTTP, no sign-in). It offers `search`, `top_spenders` and `get_politician`. Connection details are in the [server card](https://election.computer/mcp/server-card). In a browser that supports WebMCP, the same tools are offered on every page.

## Pages as Markdown

Every page has a Markdown version: request it with `Accept: text/markdown`, or add `.md` to the address ([/about.md](https://election.computer/about.md), and [/index.md](https://election.computer/index.md) for the home page).

## For AI agents

- [/llms.txt](https://election.computer/llms.txt): what this site is, when to use it and how
- [/.well-known/agent-skills/index.json](https://election.computer/.well-known/agent-skills/index.json): an agent skill
- [/.well-known/api-catalog](https://election.computer/.well-known/api-catalog) and [/.well-known/ai-catalog.json](https://election.computer/.well-known/ai-catalog.json): machine-readable catalogues
- [/auth.md](https://election.computer/auth.md): there is nothing to sign up for

## Fair use

The data changes once a week, so cache what you fetch and keep to a few requests a second. Ads and spend come from Meta's Ad Library; seats and members from the parliaments and Wikipedia. See [how this works](https://election.computer/about) for what the numbers can and can't tell you.

---

Ads and spend from Meta's Ad Library, checked every Sunday, last on 11 Nov 2026\. Meta reports spend as a range for each ad, so every total here is a range too.

[Search](https://election.computer/search) [Who's spending](https://election.computer/who) [Federal divisions](https://election.computer/seats/federal) [Senators](https://election.computer/mps/senate) [How this works](https://election.computer/about)

For AI agents: [site guide (llms.txt)](https://election.computer/llms.txt), [sitemap](https://election.computer/sitemap.xml), [developer guide](https://election.computer/developers.md). Every page is available as Markdown: send `Accept: text/markdown` or add `.md` to the path.
