Notes
- Keyless; reuse is under the Open Government Licence v3.0 with exceptions the site lists, and a fair use policy applies.
- Items are addressed as /{type}/{year}/{number}: type is a code such as ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp, ssi, wsi, nia, nisr; all, primary and secondary work in listings.
- The format is picked by a data.ext suffix (data.xml, data.rdf, data.feed) or by content negotiation on the Accept header; without either you get the HTML page.
- With no version the current revised text is returned; a date (YYYY-MM-DD) gives the text in force then, enacted or made the original. Dates before 1991-02-01 redirect to the base-date version.
- Lists are Atom feeds paged by first/previous/next/last links, with opensearch:totalResults and leg:morePages.
Endpoints
Get a piece of legislation
- A whole large Act can be big; use legislation.section for one provision.
Get legislation as at a date
Get one provision
List legislation by type and year
Search legislation by title
- Calls the /all listing, which takes the same filters: /search only answers with a 301 to a listing, and redirects are never followed.