legislation.gov.uk
UK legislation from legislation.gov.uk (The National Archives): search and listing feeds across every legislation type (UK Public General Acts, Statutory Instruments, Scottish, Welsh and Northern Ireland legislation, retained EU law), title-to-identifier lookup, tables of contents, the text of one provision or structural division (section, article, regulation, part, chapter, schedule) in its current, enacted/made or point-in-time version, and the changes-to-legislation register. Reads the site's stateless XML/Atom representations (CLML data.xml, Atom data.feed) under the Open Government Licence v3.0.
1 ready-made skill uses legislation.gov.ukTry legislation.gov.uk now.
Choose an example or ask your own question.
const result = await firecrawl.scrape({
alexandria: {
provider: "legislation-gov-uk",
capability: "legislation/get_contents",
options: {
number: 21,
type: "ukpga",
year: 2008,
},
},
});This is a sample shape. Press Run to see live data from legislation.gov.uk.
- document_class
- UnitedKingdomPublicGeneralAct
- document_uri
- http://www.legislation.gov.uk/ukpga/2008/21
- enactment_date
- 2008-11-13
- html_url
- https://www.legislation.gov.uk/ukpga/2008/21/contents
- id_uri
- http://www.legislation.gov.uk/id/ukpga/2008/21
- identifier
- ukpga/2008/21
- long_title
- An Act to enable local planning authorities to set requirements for energy use and energy efficiency in local plans.
- modified
- 2026-04-30
- number_of_provisions
- 3
- observed_at_ms
- 1790487996764
- restrict_extent
- E+W
- source_url
- https://www.legislation.gov.uk/ukpga/2008/21/contents/data.xml
- title
- Planning and Energy Act 2008
- valid
- 2026-03-25
- version
- current
| depth | document_uri | extent | id_uri | level | number | ref | start_date | title |
|---|---|---|---|---|---|---|---|---|
| 0 | legislation.gov.uk/ukpga/2008/21/section/1 | E+W | legislation.gov.uk/id/ukpga/2008/21/section/1 | item | 1 | section-1 | Energy policies | |
| 0 | legislation.gov.uk/ukpga/2008/21/section/2 | E+W | legislation.gov.uk/id/ukpga/2008/21/section/2 | item | 2 | section-2 | Interpretation | |
| 0 | legislation.gov.uk/ukpga/2008/21/section/3 | E+W | legislation.gov.uk/id/ukpga/2008/21/section/3 | item | 3 | section-3 | Short title and extent |
Use cases
1Built-in skills that call legislation.gov.uk.