legislation.gov.uk Scraper for Acts, Statutory Instruments and Amendments

One section of an Act can hold four dated versions and a list of effects not yet applied. Our legislation.gov.uk scraper returns each version, effect and instrument as a row.

Plans from €169 a month · Free project assessment · Reply within 1 business day

API · JSON feed · CSV · Excel · JSON · XML · FTP · SFTP · Amazon S3 · Google Cloud

legislation.gov.uk
legislation.gov.uk Scraper for Acts, Statutory Instruments and Amendments
legislation.gov.ukwhat you get
Typical fields for public registers
record_identity_namestatusregistered_ataddressdocument_url
Delivery

API, JSON feed or CSV, XLSX and JSON files

Schedule

One-time, monthly, weekly, daily or 3 times a day

UK Legislation Scraper as a Managed Service

  1. You send

    legislation.gov.uk pages, filters, fields and a schedule

  2. We run the scrapers

    Built, monitored and repaired by our team

  3. You receive the data

    API, JSON feed or CSV, XLSX and JSON files

You define the slice of the statute book: document types such as ukpga, uksi, ssi or nisr, a range of years, a list of titles, or a subject heading. We build the crawler around those type codes, the year and the number, which form the address of modern items on legislation.gov.uk, allow for older Acts filed under a regnal year instead, and we run and repair it for as long as you need the data.

The hard part is size and structure. A long Act opens into hundreds of provisions, each with its own page, version list and annotations, and opening a whole Act in one go is slow. Pacing, rendering and retries are handled on our side. You receive a table with field documentation, after a free project assessment and, if you want one, a sample on titles you name.

legislation.gov.uk Data: Fields We Extract

The dataset has three levels that share one key - type code, year and number - so an Act, its sections and the effects on those sections join without matching on titles.

  • Itemtitle, short citation such as 2018 c. 12 or 2024 No. 342, legislation type, year, number, the secondary series number in brackets (the C series for commencement orders, for instance), subject heading, language and address.
  • DatesRoyal Assent or date made, the laying statement, the coming into force line as printed, and the signature block reduced to office, department and date.
  • StructureParts, Chapters, cross-headings, sections, articles or regulations, Schedules and their paragraphs, each with number, heading and order.
  • Textthe wording of each provision in the Latest available (Revised) and the Original (As enacted, As made or As adopted by EU) version, kept in separate columns.
  • AnnotationsTextual Amendments with their F-number, the words affected, the date in brackets and the amending instrument, plus Commencement Information notes.
  • Extentthe geographical extent marker for England, Wales, Scotland and Northern Ireland.
  • Statusthe up to date statement with its date, changes that may be brought into force later, or the note that an item exists only in its original format.
  • Related documentsExplanatory Notes, Explanatory Memorandum, Correction Slips with dates, linked impact assessments and the King's Printer original.

Every citation inside a footnote that points to another item is resolved to the same key, so the enabling Act of a set of regulations is a column, not a sentence to parse.

legislation.gov.uk Data: Fields We Extract
Legislation Change Tracker: Versions and Effects

Legislation Change Tracker: Versions and Effects

The richest table on the site is the Changes to Legislation list. Each line names the changed legislation and provision, the type of effect - substituted, inserted, omitted, modified, applied, excluded - the affecting legislation with its year and number, the affecting provision, whether the change has been made to the website text, and a note. It can be read in both directions: effects on an Act, and effects an Act makes elsewhere. The lists record changes made by legislation enacted from 2002 onwards.

Alongside it runs the timeline. Opening a provision shows its alternative versions by date, so a point in time copy of a section can be rebuilt for any date in that list. Section 1 of the Data Protection Act 2018, for example, carries versions for May 2018, the end of 2020, November 2025 and September 2026.

The What's new page groups fresh publications by day and by United Kingdom, Scotland, Wales and Northern Ireland, which suits a daily run: new instruments, then the effects they cause, then a fresh copy of every provision they touch. Draft legislation and impact assessments, the latter filed by department and by stage from Consultation to Post Implementation, show what may come next and how earlier measures were judged.

About legislation.gov.uk and Its Document Types

Source
legislation.gov.uk
Category
public registers
Delivery
API, JSON feed, CSV, XLSX
Plans
From €169 a month
Get a quote

legislation.gov.uk is managed by The National Archives on behalf of HM Government. Its editorial team, together with staff of the Northern Ireland Statutory Publications Office, keeps the revised texts, so the same page is both the published Act and a maintained consolidation of it.

The collection is wider than current Westminster law. UK Public General Acts sit next to Local Acts, Private and Personal Acts, Church Measures, Acts of the Scottish Parliament, Acts of Senedd Cymru, Acts of the Northern Ireland Assembly and the Acts of the old English, Scottish and Irish parliaments. Secondary legislation covers UK, Welsh and Scottish Statutory Instruments, Northern Ireland Statutory Rules, Church Instruments, Ministerial Directions and Ministerial Orders. A separate branch holds Regulations, Decisions and Directives originating from the EU as they stood on IP completion day, with UK amendments applied since.

Two things matter to anyone building on it. Not every item is revised: many instruments are available only as made. And Welsh legislation exists in two languages, with a Welsh language search of its own, so the language of a row has to be stored with it.

25Developers
500+Customers
1.5BPages extracted
15,000+Hours saved for our clients

legislation.gov.uk scraping plans and pricing

Airplane

€199one-time

Setup fee included

100,000
One-time
Up to 5 days
7 days

Helicopter

€169/ mo

Setup fee €499

250,000
Monthly
Up to 5 days
14 days

Glasses

€229/ mo

Setup fee €499

1,000,000
Weekly
Up to 5 days
30 days

Microscope popular

€349/ mo

Setup fee €499

2,000,000
Daily
Same day
60 days

DNA

€549/ mo

Setup fee €799

3,000,000
3 times daily
Same day
90 days

Delivery: CSV, JSON or XLSX files, our API or a JSON feed. MCP server on request.

Full plan details

Why Scrape legislation.gov.uk

A reader needs one page; a product needs the relations between pages. Regulatory monitoring teams follow a fixed list of Acts and want to know which section changed, by which instrument and from what date, with the outstanding effects shown before they reach the text.

  • Horizon scanningDrafts, commencement regulations and coming into force lines give a calendar of obligations per sector, filtered by subject heading.
  • Search and AI productsProvision-level text with extent, version date and source citation is a better retrieval unit than a whole Act, and each answer can cite a section.
  • Policy researchCounting instruments by year, type and enabling power shows how often a delegated power is used; the Confers power list names the sections that grant it.
  • Contract and policy upkeepDocuments that quote a section can be matched against its version list and flagged once the quoted wording has been replaced.
  • Devolution comparisonType codes and extent separate Scottish, Welsh and Northern Irish rules on one subject.

About ScrapeIt

ScrapeIt is a managed web scraping agency. For registers and legal sources such as legislation.gov.uk the work is mostly about keys and dates: one identifier per item, one row per provision, no version overwritten by the next. We agree the field list with you, deliver field documentation with the first file, and keep the crawler working when page layouts move. Plans start from EUR 169 a month, or EUR 199 for a one-time extract.

FAQ

Still unsure? Write to info@scrapeit.io

Do you offer a legislation.gov.uk API for Acts and amendments?

Yes. The ScrapeIt legislation.gov.uk API returns citation, provision number, revised text, version date, type of effect and affecting provision as JSON from an endpoint we host, refreshed on the schedule you set. The same rows also come as CSV or XLSX files, a JSON feed or straight into your database.

Is it legal to scrape legislation.gov.uk?

Yes. Acts, instruments, annotations and the changes lists are published for everyone to read. We collect only publicly available data - everything a visitor can see on legislation.gov.uk - and we collect it legally. Names of individual signatories are left out by default; the office and department stay.

Can you track changes to an Act section by section?

Yes. We store every dated version listed for a provision, so you get the old wording, the new wording, the amending instrument and the effective date. Effects still marked as outstanding arrive in a separate table, ready before the revised text catches up.

How often is legislation.gov.uk data refreshed?

On your schedule: daily suits monitoring, because new items are grouped by publication day, and weekly is enough for most research files. Each row keeps the up to date statement the page carried, so you can see through which date known changes had been taken into account.

Which parts of the UK does the UK legislation dataset cover?

All four nations. United Kingdom, Scottish, Welsh and Northern Irish types can be collected together or one by one, and the geographical extent marker is kept per provision. Legislation originating from the EU, drafts and impact assessments are optional blocks with their own columns.

How it works

  1. 1

    Make a request

    You share your needs, expectations, and desired timeframe. We'll suggest the best solution based on your request and budget.

  2. 2

    We configure the crawlers

    Our specialists configure the crawlers and extract a sample dataset for your review before proceeding with the full-scale extraction.

  3. 3

    Collect and deliver

    Once you approve the sample, we launch the project and start full data collection. We gather, filter, and structure the data for easy use, delivering it on time in your preferred format.

  4. 4

    Maintain and support

    Our team manages ongoing processes, monitors website changes, and supports all data extraction cycles. We can also help integrate data into your systems or create dashboards to simplify analysis.

Request a quote

Tell us which sites, which fields and how often. A couple of lines is enough to start.

  • We reply within 1 business day
  • A sample dataset before the full run
  • We sign an NDA on request
  • Delivery by API, JSON feed or files
Which sites, which fields, how often. A couple of lines is enough.

This form is protected by Google reCAPTCHA, which loads when you start filling it in; the Google Privacy Policy and Terms of Service apply. If you prefer not to use it, email us at info@scrapeit.io. Privacy & Cookie Policy

We reply within 1 business day. No obligation.

legislation.gov.uk data from €169/month. Free project assessment, reply within 1 business day.