Bills API
API to get and search for information regarding Bills, their stages, associated amendments and publications.
Data & analytics#openapi#open-data
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
API to get and search for information regarding Bills, their stages, associated amendments and publications.
Endpoints 19
BillTypes
- GETReturns a list of Bill types.
/api/v1/BillTypes?Category=Public&Skip=0&Take=0
Bills
- GETReturns a list of Bills.
/api/v1/Bills?SearchTerm=string&Session=0&CurrentHouse=All&OriginatingHouse=All&MemberId=0&DepartmentId=0&BillStage=0&BillStagesExcluded=0&IsDefeated=true&IsWithdrawn=true&BillType=0&SortOrder=TitleAscending&BillIds=0&Skip=0&Take=0 - GETReturn a Bill.
/api/v1/Bills/:billId - GETReturns all Bill stages.
/api/v1/Bills/:billId/Stages?Skip=0&Take=0 - GETReturns a Bill stage.
/api/v1/Bills/:billId/Stages/:billStageId
BillNews
- GETReturns a list of news articles for a Bill.
/api/v1/Bills/:billId/NewsArticles?Skip=0&Take=0
Publications
- GETReturn a list of Bill publications.
/api/v1/Bills/:billId/Publications - GETReturn a list of Bill stage publications.
/api/v1/Bills/:billId/Stages/:stageId/Publications
Amendments
- GETReturns a list of amendments.
/api/v1/Bills/:billId/Stages/:billStageId/Amendments?SearchTerm=string&Decision=All&MemberId=0&Skip=0&Take=0 - GETReturns an amendment.
/api/v1/Bills/:billId/Stages/:billStageId/Amendments/:amendmentId
PublicationTypes
- GETReturns a list of publication types.
/api/v1/PublicationTypes?Skip=0&Take=0
Documents
- GETReturn information on a document.
/api/v1/Publications/:publicationId/Documents/:documentId - GETReturn a document.
/api/v1/Publications/:publicationId/Documents/:documentId/Download
Rss
- GETReturns an Rss feed of a certain Bill.
/api/v1/Rss/Bills/:id.rss - GETReturns an Rss feed of all Bills.
/api/v1/Rss/allbills.rss - GETReturns an Rss feed of private Bills.
/api/v1/Rss/privatebills.rss - GETReturns an Rss feed of public Bills.
/api/v1/Rss/publicbills.rss
Sittings
- GETReturns a list of Sittings.
/api/v1/Sittings?House=All&DateFrom=2024-01-01T00:00:00Z&DateTo=2024-01-01T00:00:00Z&Skip=0&Take=0
Stages
- GETReturns a list of Bill stages.
/api/v1/Stages?Skip=0&Take=0
API details
- Base URL
https://bills-api.parliament.uk- Authentication
- None declared in the description
- Operations
- 19 operations on 19 pathsGET 19
- Main resources
- Bills 4Rss 4Amendments 2Documents 2Publications 2BillNews 1BillTypes 1PublicationTypes 1Sittings 1Stages 1
- Response formats
application/jsontext/jsontext/plain- Description format
- OpenAPI 3.0.1, API version
v1 - Links
- OpenAPI document · Support
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the Bills API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Bills API collection, without the publisher's secrets.
- Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
- Send a requestPick an endpoint, for example “Returns a list of Bill types.” (GET /api/v1/BillTypes?Category=Public&Skip=0&Take=0), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Bills API?
API to get and search for information regarding Bills, their stages, associated amendments and publications. It is listed under Data & analytics and has 19 endpoints.
Who publishes the Bills API?
It is listed from Parliament's public API description (an OpenAPI document), not published by Parliament on Swastik Codes. Anyone who controls parliament.uk can claim the profile by adding a DNS TXT record.
What is the base URL of the Bills API?
Requests go to https://bills-api.parliament.uk. Endpoint paths are added to this base URL.
How do I authenticate with the Bills API?
Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.
How many endpoints does the Bills API have?
19 operations on 19 paths (19 GET). The largest groups are Bills, Rss, Amendments, Documents.
Is forking the Bills API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.