Skip to main content
Civgraph

Civgraph API

The records behind Civgraph's pages, as JSON, free and without a key.

Version 1

The records behind Civgraph's pages are available as JSON at https://civgraph.net/api/v1/, free and without a key.

What is there

Elections with their contests, candidates and counts; people and their candidacies; parties, with members and ballot-label history; catalogued sources; registers of members' interests; parliamentary divisions and votes; the semantic graph; the map catalogue and layers; map-feature search; and the PRONI eCatalogue.

Stability

Version 1 only grows. Fields and routes are added, never removed or redefined; a breaking change would come as version 2, with version 1 still answering.

The older addresses under /_api/ give the same answers as their version 1 routes.

Fair use

Answers are cached for a few minutes. For whole datasets use the downloads on data.civgraph.net. Please identify your client in its User-Agent.

Licence

As for the site's data. Each record carries its sources; credit Civgraph and the original sources.