Sorry, this site is not being updated

The data contained here should be considered innaccurate and incomplete. Find out why.

API

We're publishing this data via an Application Programming Interface (API). This document is the official reference for this API.

Outputs

This API currently outputs all data in XML format. Other formats may be available in the future.

License Information

Our data is licensed under a Creative Commons Attribution-Share Alike 2.0 UK: England & Wales License.

API Documentation

Stats

Returns some basic statistics such as number of claims, and total value of all claims.

http://www.whattheyclaimed.com/index.php/api/stats

view example

Categories

Returns a list of all categories, including title, and value of all claims made in this category.

http://www.whattheyclaimed.com/index.php/api/categories

view example

People

Returns a list of all people, including name, constituency, and value of all claims made by this person.

http://www.whattheyclaimed.com/index.php/api/people

view example

Category Claims

Returns details of all claims made during a particular category.

http://www.whattheyclaimed.com/index.php/api/category_claims/[Category Code]

view example

Person Claims

Returns details of all claims made by a particular person.

http://www.whattheyclaimed.com/index.php/api/person_claims/[Person Code]

view example

Latest Claims

Returns the latest 20 claims recorded by the system.

http://www.whattheyclaimed.com/index.php/api/latest_claims

view example