Arguments
house
The type of data you want, allows the arguments 'all', 'commons', 'lords', 'lordsInterests'
all
Returns a data frame with information on all members of Parliament, including both the House of Lords and the House of Commons. The data frame includes both current and previous members, and the API currently does not have information on when a member first sat in the house, or to distinguish current from former members.
commons
Returns a data frame with information on all members of the House of Commons. The data frame includes both current and previous members of the House of Commons, and the API currently does not have information on when a member first sat in the house, or to distinguish current from former members.
lords
Returns a data frame with all available members of the House of Lords.
lordsInterests
Requests a member ID, and returns a data frame of the registered interests of that member of the House of Lords.