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
}

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

Quality
85.7%
Calls answered without a tool error
Speed
833 ms
95% of successful calls finish faster
Cost
5 credits
Firecrawl credits per call
Calls
28
Last 24 hours, every Alexandria user
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