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

[Home](https://politics.computer/) / [How this works](https://politics.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://politics.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://politics.computer/mcp` (Streamable HTTP, no sign-in). It offers `search`, `top_spenders`, `get_politician`, `election_promises`, `parliament_votes` and `party_policies`. Connection details are in the [server card](https://politics.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://politics.computer/about.md), and [/index.md](https://politics.computer/index.md) for the home page).

## For AI agents

- [/llms.txt](https://politics.computer/llms.txt): what this site is, when to use it and how
- [/.well-known/agent-skills/index.json](https://politics.computer/.well-known/agent-skills/index.json): an agent skill
- [/.well-known/api-catalog](https://politics.computer/.well-known/api-catalog) and [/.well-known/ai-catalog.json](https://politics.computer/.well-known/ai-catalog.json): machine-readable catalogues
- [/auth.md](https://politics.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://politics.computer/about) for what the numbers can and can't tell you.

---

[Politics Computer](https://politics.computer/) 

A free reference for Australian politics. Seats and members from the parliaments, votes from Hansard, 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.

Explore

[Seats](https://politics.computer/seats) [Federal divisions](https://politics.computer/seats/federal) [Politicians](https://politics.computer/mps) [Senators](https://politics.computer/mps/senate) [Parties](https://politics.computer/parties) 

Victoria 2026

[The race](https://politics.computer/victoria) [Promises](https://politics.computer/promises) [Which party matches you?](https://politics.computer/quiz) 

Data

[Every ad](https://politics.computer/ads) [Who's spending](https://politics.computer/who) [How MPs voted](https://politics.computer/votes) [Search](https://politics.computer/search) [How this works](https://politics.computer/about) [API and MCP](https://politics.computer/developers)

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