This site provides a simple API for Bills and allows you to fetch them as plain text and JSON.
As of 2016 we are looking to move the API to use an structured data schema for Bills and Members and Events and at ways to editorialise events in Parliament.
You can fetch the list of Bills before Parliament (along with some metadata about each Bill) by using:
You can also request just the most (or least) popular Bills and Bills yet to be published:
You can use the .hasText property on a Bill to check if there is text available for it and the .htmlUrl and .textUrl properties on each Bill object to get the full text of an individual Bill.
If you know the URL for a bill you can get info for it in JSON, or just the bill text as HTML or plain text (UTF-8) directly by appending an appropriate file extention.
There is currently not an API for members on this site, please see the UK Parliament - Members' Names Data Platform.
An API exposing some information about members and Bills they have sponsored (and related information) is planned in future.