c0mm0.com — the continuously verified register of European data

Register record·API·GB·GOVERNMENTVERIFIED · checked 6h ago
B

Bills API

APIProfiled3/7PreviewSubscribe🇬🇧United Kingdom

This API, maintained by UK Parliament, provides access to information about Bills progressing through the UK legislative process. It allows users to search for and retrieve data on individual Bills, including their current and past stages, associated amendments, and related publications. The service covers national legislation and is intended for accessing structured, up-to-date parliamentary data on the status and history of Bills under consideration by Parliament, without requiring authentication for access.”}, free of charge and open to the public.”}API to get and search for information regarding Bills, their stages, associated amendments and publications.

legislation
OpenAPI specAPI base URLVisit homepage
74
good

Weighted across five axes. Tap a ring for what it measures.

Data schema (111 fields)

Filterable via the API (31)
billIdbillStageIdSearchTermAmendmentNumberDecisionMemberIdSkipTakeamendmentIdCategorySessionCurrentHouseOriginatingHouseDepartmentIdBillStageBillStagesExcludedIsDefeatedIsWithdrawnBillTypeSortOrderBillIdsIsInAmendableStagepublicationIddocumentIdpingPongItemIddatestageIdidHouseDateFromDateTo
FieldTypeDescription
billIdFilterable via the APIBill idinteger (int32)Identifier of the Bill to filter amendments by.Amendments relating to a Bill with Bill ID specified
billStageIdFilterable via the APIBill stage idinteger (int32)Identifier of the Bill stage to filter amendments by.Amendments relating to a Bill stage with Bill stage ID specified
SearchTermFilterable via the APISearch termstringText used to search within the results.Text used to search within the results.
AmendmentNumberFilterable via the APIAmendment numberstringAmendment number used to filter results.Amendment number used to filter results.
DecisionFilterable via the APIstringDecision outcome used to filter amendments.Decision outcome used to filter amendments.
MemberIdFilterable via the APIMember idinteger (int32)Identifier of a member used to filter results.Identifier of a member used to filter results.
SkipFilterable via the APIinteger (int32)Number of records to skip for pagination.Number of records to skip for pagination.
TakeFilterable via the APIinteger (int32)Maximum number of records to return.Maximum number of records to return.
amendmentIdFilterable via the APIAmendment idinteger (int32)Identifier of a specific amendment.Amendment with amendment ID specified
CategoryFilterable via the APIstringCategory used to filter results.Category used to filter results.
SessionFilterable via the APIinteger (int32)Parliamentary session identifier used to filter results.Parliamentary session identifier used to filter results.
CurrentHouseFilterable via the APICurrent housestringHouse the Bill currently resides in.House the Bill currently resides in.
OriginatingHouseFilterable via the APIOriginating housestringHouse in which the Bill originated.House in which the Bill originated.
DepartmentIdFilterable via the APIDepartment idinteger (int32)Identifier of the government department associated with the Bill.Identifier of the government department associated with the Bill.
BillStageFilterable via the APIBill stagearrayList of Bill stages used to filter results.List of Bill stages used to filter results.
BillStagesExcludedFilterable via the APIBill stages excludedarrayList of Bill stages to exclude from results.List of Bill stages to exclude from results.
IsDefeatedFilterable via the APIIs defeatedbooleanWhether the Bill was defeated.Whether the Bill was defeated.
IsWithdrawnFilterable via the APIIs withdrawnbooleanWhether the Bill was withdrawn.Whether the Bill was withdrawn.
BillTypeFilterable via the APIBill typearrayList of Bill types used to filter results.List of Bill types used to filter results.
SortOrderFilterable via the APISort orderstringOrder in which results should be sorted.Order in which results should be sorted.
BillIdsFilterable via the APIBill idsarrayList of Bill identifiers used to filter results.List of Bill identifiers used to filter results.
IsInAmendableStageFilterable via the APIIs in amendable stagebooleanWhether the Bill is currently in an amendable stage.Whether the Bill is currently in an amendable stage.
publicationIdFilterable via the APIPublication idinteger (int32)Identifier of a specific publication document.Document with publication Id specified
documentIdFilterable via the APIDocument idinteger (int32)Identifier of a specific document.Document with Id specified
pingPongItemIdFilterable via the APIPing pong item idinteger (int32)Identifier of a specific ping pong motion or amendment item.Motions or amendments with ping pong item ID specified
dateFilterable via the APIstring (date-time)Date used to filter publications by their display date.Publications with a display date matching this date.
stageIdFilterable via the APIStage idinteger (int32)Identifier of a specific Bill stage.Identifier of a specific Bill stage.
idFilterable via the APIinteger (int32)Unique identifier of the Bill.Id of Bill
HouseFilterable via the APIstringHouse associated with the Bill or stage.House associated with the Bill or stage.
DateFromFilterable via the APIDate fromstring (date-time)Start date used to filter results.Start date used to filter results.
DateToFilterable via the APIDate tostring (date-time)End date used to filter results.End date used to filter results.
statusIndicatorAmendmentDetailstringStatus indicator of the amendment.Status indicator of the amendment.
decisionAmendmentDetailobjectDecision made on the amendment.Decision made on the amendment.
decisionExplanationAmendmentDetailstringExplanation of the decision made on the amendment.Explanation of the decision made on the amendment.
sponsorsAmendmentDetailarray<object>List of members sponsoring the amendment.List of members sponsoring the amendment.
amendmentTypeAmendmentDetailobjectType classification of the amendment.Type classification of the amendment.
clauseAmendmentDetailinteger (int32)Clause number the amendment relates to.Clause number the amendment relates to.
scheduleAmendmentDetailinteger (int32)Schedule number the amendment relates to.Schedule number the amendment relates to.
pageNumberAmendmentDetailinteger (int32)Page number the amendment appears on.Page number the amendment appears on.
lineNumberAmendmentDetailinteger (int32)Line number the amendment appears on.Line number the amendment appears on.
amendmentPositionAmendmentDetailstringPosition of the amendment within the Bill text.Position of the amendment within the Bill text.
marshalledListTextAmendmentDetailstringText of the amendment as it appears in the marshalled list.Text of the amendment as it appears in the marshalled list.
dNumAmendmentDetailstringAmendment reference number, sometimes prefixed with D.Amendment reference number, sometimes prefixed with D.
amendmentLinesAmendmentDetailarray<object>Lines of text making up the amendment.Lines of text making up the amendment.
explanatoryTextPrefixAmendmentDetailstringPrefix text preceding the amendment's explanatory text.Prefix text preceding the amendment's explanatory text.
explanatoryTextAmendmentDetailstringExplanatory text describing the purpose of the amendment.Explanatory text describing the purpose of the amendment.
amendmentNoteAmendmentDetailstringAdditional note attached to the amendment.Additional note attached to the amendment.
amendmentLocationAmendmentDetailstringLocation within the Bill where the amendment applies.Location within the Bill where the amendment applies.
mainHeaderAmendmentDetailstringMain header text associated with the amendment.Main header text associated with the amendment.
typeAmendmentDetailMotionDetailPingPongItemobjectType of the ping pong item, such as amendment or motion.Type of the ping pong item, such as amendment or motion.
amendmentAmendmentDetailMotionDetailPingPongItemobjectAmendment details associated with the ping pong item.Amendment details associated with the ping pong item.
motionAmendmentDetailMotionDetailPingPongItemobjectMotion details associated with the ping pong item.Motion details associated with the ping pong item.
textAmendmentGrouparray<object>Text content of the amendment group.Text content of the amendment group.
amendmentsAmendmentGrouparray<object>List of amendments belonging to the group.List of amendments belonging to the group.
sortOrderAmendmentGroupinteger (int32)Order in which the amendment group is displayed.Order in which the amendment group is displayed.
indentationAmendmentLineinteger (int32)Level of text indentation for the amendment line.Level of text indentation for the amendment line.
hangingIndentationAmendmentLinestringHanging indentation formatting for the amendment line.Hanging indentation formatting for the amendment line.
isImageAmendmentLinebooleanWhether the amendment line content is an image.Whether the amendment line content is an image.
imageTypeAmendmentLinestringType of image used in the amendment line.Type of image used in the amendment line.
memberIdAmendmentMemberinteger (int32)Identifier of the member associated with the amendment.Identifier of the member associated with the amendment.
nameAmendmentMemberstringName of the member.Name of the member.
partyAmendmentMemberstringPolitical party of the member.Political party of the member.
partyColourAmendmentMemberstringColour code associated with the member's party.Colour code associated with the member's party.
houseAmendmentMemberobjectHouse the member belongs to.House the member belongs to.
memberPhotoAmendmentMemberstringURL of the member's photo.URL of the member's photo.
memberPageAmendmentMemberstringURL of the member's profile page.URL of the member's profile page.
memberFromAmendmentMemberstringConstituency or region the member represents.Constituency or region the member represents.
isLeadAmendmentMemberbooleanWhether the member is the lead sponsor of the amendment.Whether the member is the lead sponsor of the amendment.
summaryTextAmendmentSearchItemarray<string>Summary text describing the amendment search result.Summary text describing the amendment search result.
itemsAmendmentSearchItemSearchResultarray<object>List of amendment search result items.List of amendment search result items.
totalResultsAmendmentSearchItemSearchResultinteger (int32)Total number of results matching the search.Total number of results matching the search.
itemsPerPageAmendmentSearchItemSearchResultinteger (int32)Number of results returned per page.Number of results returned per page.
shortTitleBillstringShort title of the Bill.Short title of the Bill.
formerShortTitleBillstringPrevious short title used for the Bill.Previous short title used for the Bill.
currentHouseBillobjectHouse the Bill is currently in.House the Bill is currently in.
originatingHouseBillobjectHouse in which the Bill originated.House in which the Bill originated.
lastUpdateBillstring (date-time)Date the Bill's record was last updated.Date the Bill's record was last updated.
billWithdrawnBillstring (date-time)Date the Bill was withdrawn, if applicable.Date the Bill was withdrawn, if applicable.
isDefeatedBillbooleanWhether the Bill was defeated.Whether the Bill was defeated.
billTypeIdBillinteger (int32)Identifier of the Bill's type.Identifier of the Bill's type.
introducedSessionIdBillinteger (int32)Identifier of the session in which the Bill was introduced.Identifier of the session in which the Bill was introduced.
includedSessionIdsBillarray<integer (int32)>List of session identifiers the Bill has been part of.List of session identifiers the Bill has been part of.
isActBillbooleanWhether the Bill has become an Act.Whether the Bill has become an Act.
currentStageBillobjectCurrent stage the Bill is at.Current stage the Bill is at.
longTitleBillstringFull legal title of the Bill.Full legal title of the Bill.
summaryBillstringSummary description of the Bill's purpose.Summary description of the Bill's purpose.
promotersBillarray<object>List of organisations or people promoting the Bill.List of organisations or people promoting the Bill.
petitioningPeriodBillstringPeriod during which petitions against the Bill can be lodged.Period during which petitions against the Bill can be lodged.
petitionInformationBillstringInformation about petitioning arrangements for the Bill.Information about petitioning arrangements for the Bill.
agentBillobjectAgent responsible for handling the Bill's petitions.Agent responsible for handling the Bill's petitions.
addressBillAgentstringPostal address of the Bill agent.Postal address of the Bill agent.
phoneNoBillAgentstringPhone number of the Bill agent.Phone number of the Bill agent.
emailBillAgentstringEmail address of the Bill agent.Email address of the Bill agent.
websiteBillAgentstringWebsite address of the Bill agent.Website address of the Bill agent.
titleBillPublicationstringTitle of the Bill publication.Title of the Bill publication.
publicationTypeBillPublicationobjectType of the Bill publication.Type of the Bill publication.
displayDateBillPublicationstring (date-time)Date the publication is displayed as being published.Date the publication is displayed as being published.
linksBillPublicationarray<object>List of links associated with the publication.List of links associated with the publication.
filesBillPublicationarray<object>List of files associated with the publication.List of files associated with the publication.
publicationsBillPublicationListarray<object>List of publications associated with the Bill.List of publications associated with the Bill.
sessionIdBillStageDetailsinteger (int32)Identifier of the parliamentary session for the stage.Identifier of the parliamentary session for the stage.
descriptionBillStageDetailsstringDescription of the Bill stage.Description of the Bill stage.
abbreviationBillStageDetailsstringAbbreviated name of the Bill stage.Abbreviated name of the Bill stage.
stageSittingsBillStageDetailsarray<object>List of sittings held for the Bill stage.List of sittings held for the Bill stage.
committeeBillStageDetailsobjectCommittee associated with the Bill stage.Committee associated with the Bill stage.
nextStageBillStageIdBillStageDetailsinteger (int32)Identifier of the following Bill stage.Identifier of the following Bill stage.
previousStageBillStageIdBillStageDetailsinteger (int32)Identifier of the preceding Bill stage.Identifier of the preceding Bill stage.
hasMotionsBillStageDetailsbooleanWhether the Bill stage has associated motions.Whether the Bill stage has associated motions.
sittingsBillStagePublicationListarray<object>List of sittings associated with the Bill stage's publications.List of sittings associated with the Bill stage's publications.
sittingIdBillStageSittingPublicationListinteger (int32)Identifier of a specific sitting.Identifier of a specific sitting.
categoryBillTypeobjectCategory classification of the Bill type.Category classification of the Bill type.

Schema captured from openapi 23 days ago.

Verification Status

Using the API

Configuration

Base URL
https://bills-api.parliament.uk
Version
v1
Format
openapi
Endpoints
21

Try the API

GET/api/v1/Bills/{billId}/Stages/{billStageId}/Amendments

Returns a list of amendments.

GET/api/v1/Bills/{billId}/Stages/{billStageId}/Amendments/{amendmentId}

Returns an amendment.

GET/api/v1/Bills/{billId}/NewsArticles

Returns a list of news articles for a Bill.

GET/api/v1/BillTypes

Returns a list of Bill types.

GET/api/v1/Bills

Returns a list of Bills.

Requests are proxied through our servers. Only GET endpoints are testable.

Endpoints (21)

/api21 endpoints
GET
/api/v1/Bills/{billId}/Stages/{billStageId}/Amendments

Returns a list of amendments.

GET
/api/v1/Bills/{billId}/Stages/{billStageId}/Amendments/{amendmentId}

Returns an amendment.

GET
/api/v1/Bills/{billId}/NewsArticles

Returns a list of news articles for a Bill.

GET
/api/v1/BillTypes

Returns a list of Bill types.

GET
/api/v1/Bills

Returns a list of Bills.

GET
/api/v1/Bills/{billId}

Return a Bill.

GET
/api/v1/Bills/{billId}/Stages/{billStageId}

Returns a Bill stage.

GET
/api/v1/Bills/{billId}/Stages

Returns all Bill stages.

GET
/api/v1/Publications/{publicationId}/Documents/{documentId}

Return information on a document.

GET
/api/v1/Publications/{publicationId}/Documents/{documentId}/Download

Return a document.

GET
/api/v1/Bills/{billId}/Stages/{billStageId}/PingPongItems

Returns a list of motions or amendments.

GET
/api/v1/Bills/{billId}/Stages/{billStageId}/PingPongItems/{pingPongItemId}

Returns amendment or motion detail.

GET
/api/v1/PublicationTypes

Returns a list of publication types.

GET
/api/v1/Bills/{billId}/Publications

Return a list of Bill publications.

GET
/api/v1/Bills/{billId}/Stages/{stageId}/Publications

Return a list of Bill stage publications.

GET
/api/v1/Rss/allbills.rss

Returns an Rss feed of all Bills.

GET
/api/v1/Rss/publicbills.rss

Returns an Rss feed of public Bills.

GET
/api/v1/Rss/privatebills.rss

Returns an Rss feed of private Bills.

GET
/api/v1/Rss/Bills/{id}.rss

Returns an Rss feed of a certain Bill.

GET
/api/v1/Sittings

Returns a list of Sittings.

GET
/api/v1/Stages

Returns a list of Bill stages.

Query examples

curl -s 'https://bills-api.parliament.uk/swagger/v1/swagger.json' -H 'Accept: application/json'

Machine-readable API description (use it to generate clients).

Machine-readable & source

Bills API — live verification badge

Embed this badge in a README or wiki — it always shows the latest verification state and quality tier.