Firecrawl Alexandria

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.

Other sites in this stack:GOV.UKCompanies HouseIPO trade marks
1 Firecrawl tool uses legislation.gov.uk

Try legislation.gov.uk now.

Choose an example or ask your own question.

legislation.gov.uk
TRY ASKING
1Request
number

1-based page of 20 results; the continuation cursor is the next page number.

string

`published` orders by publication date, newest first (the site's What's New listing). Omit for the site's default relevance/title order.

string

Full-text search words, e.g. `nationally significant infrastructure project`.

string

Words that must appear in the title, e.g. `Planning Act`.

string

Legislation type code (`ukpga`, `ukla`, `asp`, `asc`, `anaw`, `nia`, `uksi`, `wsi`, `ssi`, `nisr`, `eur`, `eudn`, `eudr`, ...) or family: `all`, `primary`, `secondary`, `primary+secondary` (default).

number

Calendar year of the legislation.

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "legislation-gov-uk",
    capability: "legislation/search_legislation",
    options: {
      title: "Planning Act",
      type: "primary+secondary",
      year: 2008,
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from legislation.gov.uk.

{
  "items_per_page": 20,
  "observed_at_ms": 1790487988557,
  "page": 1,
  "query": {
    "sort": null,
    "text": null,
    "title": "Planning Act",
    "type": "primary+secondary",
    "year": 2008
  },
  "results": [
    {
      "categories": [
        "Planning (town and country)",
        "Hearings",
        "Waste local plan",
        "Waste policies and regulation",
        "Injunctions"
      ],
      "contents_url": "http://www.legislation.gov.uk/ukpga/2008/29/contents",
      "data_xml_url": "http://www.legislation.gov.uk/ukpga/2008/29/2026-07-24/data.xml",
      "document_class": "UnitedKingdomPublicGeneralAct",
      "id_uri": "http://www.legislation.gov.uk/id/ukpga/2008/29",
      "identifier": "ukpga/2008/29",
      "isbn": "9780105429081",
      "latest_version_url": "http://www.legislation.gov.uk/ukpga/2008/29/2026-07-24",
      "number": "29",
      "published": "2008-11-26T00:00:00+01:00",
      "summary": "An Act to establish the Infrastructure Planning Commission and make provision about its functions; to make provision about, and about matters ancillary to, the authorisation of projects for the development of nationally significant infrastructure; to make provision about town and country planning; to make provision about the imposition of a Community Infrastructure Levy; and for connected purposes.",
      "title": "Planning Act 2008",
      "type": "ukpga",
      "updated": "2026-08-04T11:48:01+01:00",
      "year": 2008
    },
    {
      "categories": [
        "Planning applications",
        "Planning (town and country)",
        "Energy efficiency",
        "Building regulations",
        "Compulsory purchase"
      ],
      "contents_url": "http://www.legislation.gov.uk/ukpga/2008/21/contents",
      "data_xml_url": "http://www.legislation.gov.uk/ukpga/2008/21/2026-03-25/data.xml",
      "document_class": "UnitedKingdomPublicGeneralAct",
      "id_uri": "http://www.legislation.gov.uk/id/ukpga/2008/21",
      "identifier": "ukpga/2008/21",
      "isbn": "9780105421085",
      "latest_version_url": "http://www.legislation.gov.uk/ukpga/2008/21/2026-03-25",
      "number": "21",
      "published": "2008-11-13T00:00:00+01:00",
      "summary": "An Act to enable local planning authorities to set requirements for energy use and energy efficiency in local plans.",
      "title": "Planning and Energy Act 2008",
      "type": "ukpga",
      "updated": "2026-04-30T09:29:35+01:00",
      "year": 2008
    },
    {
      "categories": [
        "Compulsory purchase",
        "Planning (town and country)",
        "Community development",
        "Planning applications",
        "Urban development",
        "TOWN AND COUNTRY PLANNING, WALES",
        "Local Government",
        "CYNLLUNIO GWLAD A THREF, CYMRU"
      ],
      "contents_url": "http://www.legislation.gov.uk/wsi/2008/2162/contents/made/welsh",
      "data_xml_url": "http://www.legislation.gov.uk/wsi/2008/2162/made/welsh/data.xml",
      "document_class": "WelshStatutoryInstrument",
      "id_uri": "http://www.legislation.gov.uk/id/wsi/2008/2162",
      "identifier": "wsi/2008/2162",
      "isbn": "9780110918334",
      "latest_version_url": "http://www.legislation.gov.uk/wsi/2008/2162/made",
      "number": "2162",
      "published": "2008-08-12T00:00:00+01:00",
      "summary": "This Order brings to an end the transitional arrangements made under the Planning and Compulsory Purchase Act 2004 (Commencement No.4 and Consequential, Transitional and Savings Provisions) (Wales) Order 2005 (“the No.4 Order”) in relation to “Neath Port Talbot County Borough Council (“the Council”). Mae'r Gorchymyn hwn yn dod â'r trefniadau trosiannol a wnaed o dan Orchymyn Deddf Cynllunio a Phrynu Gorfodol 2004 (Cychwyn Rhif 4 a Darpariaethau Canlyniadol a Throsiannol a Darpariaethau Arbed) (Cymru) 2005 (“Gorchymyn Rhif 4”) i ben o ran Cyngor Bwrdeistref Sirol Castell-nedd Port Talbot (“y Cyngor”).",
      "title": "The Planning and Compulsory Purchase Act 2004 (Commencement No.4 and Consequential, Transitional and Savings Provisions) (Wales) (Amendment No.2) Order 2008 / Gorchymyn Deddf Cynllunio a Phrynu Gorfodol 2004 (Cychwyn Rhif 4 a Darpariaethau Canlyniadol a Throsiannol a Darpariaethau Arbed) (Cymru) (Diwygio Rhif 2) 2008",
      "type": "wsi",
      "updated": "2023-04-24T11:23:50+01:00",
      "year": 2008
    },
    {
      "categories": [
        "Structure plans",
        "Council policies and plans",
        "Planning (town and country)",
        "Community development",
        "Planning applications",
        "TOWN AND COUNTRY PLANNING"
      ],
      "contents_url": "http://www.legislation.gov.uk/ssi/2008/427/contents/made",
      "data_xml_url": "http://www.legislation.gov.uk/ssi/2008/427/made/data.xml",
      "document_class": "ScottishStatutoryInstrument",
      "id_uri": "http://www.legislation.gov.uk/id/ssi/2008/427",
      "identifier": "ssi/2008/427",
      "isbn": "9780111001707",
      "latest_version_url": "http://www.legislation.gov.uk/ssi/2008/427/made",
      "number": "427",
      "published": "2008-12-18T00:00:00+01:00",
      "summary": "This Order makes saving, transitional and consequential provisions in relation to the substitution of a new Part 2 to the Town and Country Planning (Scotland) Act 1997 (c. 8) (“the 1997 Act”) by section 2 of the Planning etc. (Scotland) Act 2006 (asp 17).",
      "title": "The Planning etc. (Scotland) Act 2006 (Development Planning) (Saving, Transitional and Consequential Provisions) Order 2008",
      "type": "ssi",
      "updated": "2023-04-24T10:04:58+01:00",
      "year": 2008
    },
    {
      "categories": [
        "Town planning",
        "TOWN AND COUNTRY PLANNING"
      ],
      "contents_url": "http://www.legislation.gov.uk/ssi/2008/411/contents/made",
      "data_xml_url": "http://www.legislation.gov.uk/ssi/2008/411/made/data.xml",
      "document_class": "ScottishStatutoryInstrument",
      "id_uri": "http://www.legislation.gov.uk/id/ssi/2008/411",
      "identifier": "ssi/2008/411",
      "isbn": "9780111001295",
      "latest_version_url": "http://www.legislation.gov.uk/ssi/2008/411/made",
      "number": "411",
      "published": "2008-12-11T00:00:00+01:00",
      "summary": "This Order brings section 52(1) of the Planning etc. (Scotland) Act 2006 (“the Act”) into force on 12th December 2008 and Parts 3 and 4 and section 54(17) of the Act into force on that date only for the purposes of enabling orders or regulations to be made.",
      "title": "The Planning etc. (Scotland) Act 2006 (Commencement No. 5) Order 2008",
      "type": "ssi",
      "updated": "2023-04-24T10:04:58+01:00",
      "year": 2008
    },
    {
      "categories": [
        "Listed buildings",
        "TOWN AND COUNTRY PLANNING"
      ],
      "contents_url": "http://www.legislation.gov.uk/ssi/2008/191/contents/made",
      "data_xml_url": "http://www.legislation.gov.uk/ssi/2008/191/made/data.xml",
      "document_class": "ScottishStatutoryInstrument",
      "id_uri": "http://www.legislation.gov.uk/id/ssi/2008/191",
      "identifier": "ssi/2008/191",
      "isbn": "9780110816555",
      "latest_version_url": "http://www.legislation.gov.uk/ssi/2008/191/made",
      "number": "191",
      "published": "2008-05-15T00:00:00+01:00",
      "summary": "This Order brings section 55(2) of the Planning etc. (Scotland) Act 2006 (“the Act”) into force on 1st June 2008.",
      "title": "The Planning etc. (Scotland) Act 2006 (Commencement No. 4) Order 2008",
      "type": "ssi",
      "updated": "2023-04-24T10:04:58+01:00",
      "year": 2008
    },
    {
      "categories": [
        "Town planning",
        "TOWN AND COUNTRY PLANNING"
      ],
      "contents_url": "http://www.legislation.gov.uk/ssi/2008/165/contents/made",
      "data_xml_url": "http://www.legislation.gov.uk/ssi/2008/165/made/data.xml",
      "document_class": "ScottishStatutoryInstrument",
      "id_uri": "http://www.legislation.gov.uk/id/ssi/2008/165",
      "identifier": "ssi/2008/165",
      "isbn": "9780110816272",
      "latest_version_url": "http://www.legislation.gov.uk/ssi/2008/165/made",
      "number": "165",
      "published": "2008-04-22T00:00:00+01:00",
      "summary": "This Order preserves Part 2 of the Town and Country Planning (Scotland) Act 1997 (“the 1997 Act”) in full force and effect notwithstanding the commencement for certain purposes of section 2 of the Planning etc. (Scotland) Act 2006 (“the 2006 Act”). Section 2 of the 2006 Act substitutes a new Part 2 for Part 2 of the 1997 Act.",
      "title": "The Planning etc. (Scotland) Act 2006 (Development Planning) (Saving Provisions) Order 2008",
      "type": "ssi",
      "updated": "2023-04-24T10:04:58+01:00",
      "year": 2008
    },
    {
      "categories": [
        "Town planning",
        "TOWN AND COUNTRY PLANNING"
      ],
      "contents_url": "http://www.legislation.gov.uk/ssi/2008/164/contents/made",
      "data_xml_url": "http://www.legislation.gov.uk/ssi/2008/164/made/data.xml",
      "document_class": "ScottishStatutoryInstrument",
      "id_uri": "http://www.legislation.gov.uk/id/ssi/2008/164",
      "identifier": "ssi/2008/164",
      "isbn": "9780110816258",
      "latest_version_url": "http://www.legislation.gov.uk/ssi/2008/164/made",
      "number": "164",
      "published": "2008-04-22T00:00:00+01:00",
      "summary": "This Order brings section 2 of the Planning etc. (Scotland) Act 2006 (“the Act”) into force on 19th May 2008 for the purposes of enabling orders and regulations to be made and directions and guidance to be issued. The Order brings sections 2 and 54 (17)(a)(i) of the Act into force for other purposes on 25th June 2008.",
      "title": "The Planning etc. (Scotland) Act 2006 (Commencement No. 3) Order 2008",
      "type": "ssi",
      "updated": "2023-04-24T10:04:58+01:00",
      "year": 2008
    },
    {
      "categories": [
        "Compulsory purchase",
        "Planning (town and country)",
        "Community development",
        "Planning applications",
        "Urban development",
        "TOWN AND COUNTRY PLANNING, WALES",
        "CYNLLUNIO GWLAD A THREF, CYMRU"
      ],
      "contents_url": "http://www.legislation.gov.uk/wsi/2008/10/contents/made/welsh",
      "data_xml_url": "http://www.legislation.gov.uk/wsi/2008/10/made/welsh/data.xml",
      "document_class": "WelshStatutoryInstrument",
      "id_uri": "http://www.legislation.gov.uk/id/wsi/2008/10",
      "identifier": "wsi/2008/10",
      "isbn": "9780110917276",
      "latest_version_url": "http://www.legislation.gov.uk/wsi/2008/10/made",
      "number": "10",
      "published": "2008-01-08T00:00:00+01:00",
      "summary": "This Order brings to an end the transitional arrangements made under the Planning and Compulsory Purchase Act 2004 (Commencement No.4 and Consequential, Transitional and Savings Provisions) (Wales) Order 2005 (“the No.4 Order”) in relation to Newport City Council (“the Council”). Mae'r Gorchymyn hwn yn dod â'r trefniadau trosiannol a wnaed o dan Orchymyn Deddf Cynllunio a Phrynu Gorfodol 2004 (Cychwyn Rhif 4 a Darpariaethau Canlyniadol a Throsiannol a Darpariaethau Arbed) (Cymru) 2005 (“Gorchymyn Rhif 4”) i ben o ran Cyngor Dinas Casnewydd (“y Cyngor”).",
      "title": "The Planning and Compulsory Purchase Act 2004 (Commencement No.4 and Consequential, Transitional and Savings Provisions) (Wales) (Amendment No.1) Order 2008 / Gorchymyn Diwygio Deddf Cynllunio a Phrynu Gorfodol 2004 (Cychwyn Rhif 4 a Darpariaethau Canlyniadol a Throsiannol a Darpariaethau Arbed) (Cymru) (Diwygio Rhif 1) 2008",
      "type": "wsi",
      "updated": "2023-04-24T11:23:50+01:00",
      "year": 2008
    }
  ],
  "source_url": "https://www.legislation.gov.uk/primary+secondary/2008/data.feed?title=Planning+Act",
  "start_index": 1,
  "total_results": 9
}

Skills

Official skills using legislation.gov.uk

Vaping policy impact snapshotUse when a tobacco control policy analyst at a health department or charity assesses vaping regulation for a briefing. Compares tobacco use prevalence across countries from WHO, tracks public search interest in vaping products over time, reads the current UK legislative text and amendments, and gathers recent studies on youth uptake into one sourced snapshot.

For one jurisdiction considering a measure (flavour ban, disposable ban, tax) and two or three comparator countries.

1. Prevalence baseline

  1. Find tobacco and e-cigarette indicators with Indicators (query tobacco use, e-cigarette).

  2. Pull values for the jurisdiction and comparators with Data (spatial_dims ISO3, sex dimension where offered). Note survey years.

2. Public behaviour signal

  1. Read Interest over time for disposable vape, vape shop and nicotine pouches in each country (geo) across the policy date. A drop or shift to substitutes after a measure is a signal worth testing.

  2. Check Related queries for rising substitutes or cross-border buying terms.

3. Law as written

  1. Find the UK instrument with Search legislation (title vapes or tobacco), read the key provision with Get provision and commencement with List changes.

4. Evidence

  1. Search Search (e-cigarette policy plus youth, flavour, natural experiment; last three years) and read key abstracts with Article.

Write the snapshot

  • Baseline table: country, measure, prevalence, survey year.

  • Signals: search trend changes around policy dates, labelled as indicative.

  • Law: provisions, commencement dates.

  • Evidence: study, design, finding, PMID.

  • Sources: WHO codes, trend queries, legislation ids, PMIDs. Say what could not be found.

View skill

Quality, speed and cost, last 24 hours, across every agent call to legislation.gov.uk through Alexandria.

Quality
100%
Calls answered without a tool error
Speed
2.9 s
95% of successful calls finish faster
Cost
5 credits
Firecrawl credits per call
Calls
88
Last 24 hours, every Alexandria user
Quality and speed of each tool, last 24 hours
ToolQualitySpeedCalls
Lookup identifier100%1.5 s57
Get provision100%2.9 s20
Browse the library
//
Get started
//
Give your agent legislation.gov.uk.
One API key for the live web and every provider in Alexandria.
Are you an AI agent? See setup options