Members of Parliament
Structured data about Members of Parliament. These are JSON or XML files, so you can open them in a text editor or similar. In the files there are comments with more information. MP data goes back to the start of Hansard at the start of the 19th century (including data from Parliament’s historic Hansard project), data for Lords goes back to the major reform in 1999, and data for the devolved assemblies goes back to their creation.
These files can all be found in the GitHub repository members directory.
people.json
Data of all MPs, Lords, MSPs and MLAs covered by the project, in Popolo format, including names (and alternate names such as misspellings or name changes), party, constituency (non-Lords), and peerage information (Lords). There is a unique identifier for each element. Each membership is a continuous period of holding office, loyal to the same party. An MP who was in two parliaments, or in one parliament then later became a Lord, will have two memberships associated with the same person. An MP who also changed party will have three memberships. Dates of deaths, byelections and party changes are recorded.
ministers.json / ministers-2010.json
Contains ministerial positions and the department they were in. Each one includes an ID, date range, and the person ID.
constituencies.json / sp-constituencies.json
List of constituencies, including alternative spellings.
websites.xml, bbc-links.xml, wikipedia-*.xml, wikipedia-lords.xml
Various links to external websites which have information about MPs and Lords, including biographies on Wikipedia, and each MP’s own website. Indexed by person ID.
Register of Members Interests (scrapedxml/regmem
)
MPs declare conflicts of interest, and sources of their income. Separate XML file for each release of the register.
Unlike the other XML on this page, the register XML files are stored with the Hansard XML. You can find them by browsing the filesystem. Alternatively, see the section on Getting the Data.
expenses*.xml
How much each MP claimed as expenses from parliament for travel and so on.
Voting Record
Attendance, rebellion rate and individual votes in divisions are available from the Public Whip project.
Getting the Data
By Browsing
You can browse the list of available files and download them individually at:
https://github.com/mysociety/parlparse/tree/master/members
From GitHub
You can check out a copy of all the latest members data from GitHub using:
git clone https://github.com/mysociety/parlparse