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
numberRequired

number

stringRequired

Legislation type code, e.g. `ukpga`, `uksi`, `asp`.

numberRequired

year

string

`affected`: changes made to this legislation. `affecting`: changes this legislation makes to others.

number

page

number

Effects per page (`results-count`), 1-50.

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "legislation-gov-uk",
    capability: "legislation/list_changes",
    options: {
      number: 29,
      per_page: 10,
      type: "ukpga",
      year: 2008,
    },
  },
});
2Response example

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

direction
affected
html_url
https://www.legislation.gov.uk/changes/affected/ukpga/2008/29
identifier
ukpga/2008/29
items_per_page
10
observed_at_ms
1790488001043
page
1
source_url
https://www.legislation.gov.uk/changes/affected/ukpga/2008/29/data.feed?results-count=10&sort=modified&page=1
start_index
1
total_pages
123
total_results
1222
affected_provisionsaffected_titleaffected_uriaffecting_provisionsaffecting_titleaffecting_uriappliedcommencement_authorityeffect_idin_forcemodifiedrequires_appliedsavingstypeuri
s. 6(7)(b)(i)Planning Act 2008legislation.gov.uk/id/ukpga/2008/29s. 2(2)(a)Planning and Infrastructure Act 2025legislation.gov.uk/id/ukpga/2025/34trues. 118(1)(a)key-a2d5f3f9bf759e382f398045682a474etrues. 2(4) 116words omittedlegislation.gov.uk/id/effect/key-a2d5f3f9bf759e382f398045682a474e
s. 6(7A)Planning Act 2008legislation.gov.uk/id/ukpga/2008/29s. 2(2)(b)Planning and Infrastructure Act 2025legislation.gov.uk/id/ukpga/2025/34trues. 118(1)(a)key-299497a717169792b4b81dad1ec8dee2trues. 2(4) 116words omittedlegislation.gov.uk/id/effect/key-299497a717169792b4b81dad1ec8dee2
s. 6(10)Planning Act 2008legislation.gov.uk/id/ukpga/2008/29s. 2(2)(c)Planning and Infrastructure Act 2025legislation.gov.uk/id/ukpga/2025/34trues. 118(1)(a)key-c4860b9e5ee20d71e40426f2b0e84bcftrues. 2(4) 116insertedlegislation.gov.uk/id/effect/key-c4860b9e5ee20d71e40426f2b0e84bcf
s. 6ZAPlanning Act 2008legislation.gov.uk/id/ukpga/2008/29s. 1(6)Planning and Infrastructure Act 2025legislation.gov.uk/id/ukpga/2025/34trues. 118(1)(a)key-7d16af01b0d2de09a96f80415f3a660btrues. 116insertedlegislation.gov.uk/id/effect/key-7d16af01b0d2de09a96f80415f3a660b
s. 35B-35DPlanning Act 2008legislation.gov.uk/id/ukpga/2008/29s. 4(4)Planning and Infrastructure Act 2025legislation.gov.uk/id/ukpga/2025/34trues. 118(1)(c)key-dc603feaada09e5eeeb40a417dde475btrues. 116insertedlegislation.gov.uk/id/effect/key-dc603feaada09e5eeeb40a417dde475b
s. 35ZA(10A)Planning Act 2008legislation.gov.uk/id/ukpga/2008/29s. 4(3)Planning and Infrastructure Act 2025legislation.gov.uk/id/ukpga/2025/34trues. 118(1)(c)key-a72bcf8d3dfe39e7a76496b1aa340016trues. 116insertedlegislation.gov.uk/id/effect/key-a72bcf8d3dfe39e7a76496b1aa340016
s. 37(3)(b)Planning Act 2008legislation.gov.uk/id/ukpga/2008/29s. 6(2)(a)(i)Planning and Infrastructure Act 2025legislation.gov.uk/id/ukpga/2025/34trues. 118(1)(c)key-e18014e013e6a2a4a4e99cbf2dc70110trues. 116word insertedlegislation.gov.uk/id/effect/key-e18014e013e6a2a4a4e99cbf2dc70110
s. 37(3)(c)Planning Act 2008legislation.gov.uk/id/ukpga/2008/29s. 6(2)(a)(ii)Planning and Infrastructure Act 2025legislation.gov.uk/id/ukpga/2025/34trues. 118(1)(c)key-dfa9d3d457fcd64200484686387e305btrues. 116omittedlegislation.gov.uk/id/effect/key-dfa9d3d457fcd64200484686387e305b
s. 37(7)Planning Act 2008legislation.gov.uk/id/ukpga/2008/29s. 6(2)(b)Planning and Infrastructure Act 2025legislation.gov.uk/id/ukpga/2025/34trues. 118(1)(c)key-8d7eb3c9e8f61a7fe24deb926102ebf7trues. 116omittedlegislation.gov.uk/id/effect/key-8d7eb3c9e8f61a7fe24deb926102ebf7
s. 37(8)Planning Act 2008legislation.gov.uk/id/ukpga/2008/29s. 6(2)(b)Planning and Infrastructure Act 2025legislation.gov.uk/id/ukpga/2025/34trues. 118(1)(c)key-37bc29b801c63cd00444409ad694b685trues. 116omittedlegislation.gov.uk/id/effect/key-37bc29b801c63cd00444409ad694b685

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