OrbTop

UK Legislation Scraper - Acts and Statutory Instruments

OTHEROPEN SOURCE

Independent tool. Trademarks referenced on this page are the property of their respective owners and are used only to identify the public website this tool reads. No affiliation or endorsement.

Sample output

20 real records from the actor's latest passing test run, updated . Download the sample as JSON or CSV.

idtitletitle_welshtypetype_nameyearnumbercitationlegislation_urlfull_text_urldescriptionmade_datecoming_into_force_datelaid_datesubjectsversion_statusversion_daterepealedextentterritorial_applicationcategoryminor_typetotal_paragraphspdf_urlexplanatory_document_urlexplanatory_document_typeisbnpublishedlast_updatedamendsamended_byamendments_truncatedscraped_at
uksi/2020/1The Police Appeals Tribunals Rules 2020uksiUnitedKingdomStatutoryInstrument202012020 No. 1https://www.legislation.gov.uk/uksi/2020/1https://www.legislation.gov.uk/uksi/2020/1/data.xmlThese Rules set out the circumstances in which a member of a police force, a former police officer or a special constab…2020-01-062020-02-012020-01-10["POLICE, ENGLAND AND WALES"]revised2025-05-28falseE+Wsecondaryrule28https://www.legislation.gov.uk/uksi/2020/1/pdfs/uksi_20200001_en.pdfhttps://www.legislation.gov.uk/uksi/2020/1/pdfs/uksiem_20200001_en.pdfUK Explanatory Memorandum97801111918352020-01-10T12:13:07.377727Z2025-06-10T11:59:31Z[{"id":"uksi/2012/2630","title":"The Police Appeals Tribunals Rules 2012","url":"https://www.legislation.gov.uk/uksi/20…[{"id":"uksi/2020/1","title":"The Police Appeals Tribunals Rules 2020","url":"https://www.legislation.gov.uk/uksi/2020/…true2026-11-25T14:02:59.473Z
ukpga/2026/23English Devolution and Community Empowerment Act 2026ukpgaUnitedKingdomPublicGeneralAct2026232026 Chapter 23https://www.legislation.gov.uk/ukpga/2026/23https://www.legislation.gov.uk/ukpga/2026/23/data.xmlAn Act to make provision about combined authorities, combined county authorities, the Greater London Authority, local a…2026-04-29[]revised2026-11-13falseE+WEprimary936https://www.legislation.gov.uk/ukpga/2026/23/pdfs/ukpga_20260023_en.pdfhttps://www.legislation.gov.uk/ukpga/2026/23/pdfs/ukpgaen_20260023_en.pdfExplanatory Note97801057032732026-05-11T17:02:45.491003Z2026-11-16T10:59:12Z2026-11-25T14:02:43.976Z
ukpga/2026/24National Security (State Threats) Act 2026ukpgaUnitedKingdomPublicGeneralAct2026242026 Chapter 24https://www.legislation.gov.uk/ukpga/2026/24https://www.legislation.gov.uk/ukpga/2026/24/data.xmlAn Act to make provision for the designation of bodies involved in foreign power threat activity; to create offences re…2026-07-08[]revised2026-07-08falseE+W+S+N.I.primary47https://www.legislation.gov.uk/ukpga/2026/24/pdfs/ukpga_20260024_en.pdfhttps://www.legislation.gov.uk/ukpga/2026/24/pdfs/ukpgaen_20260024_en.pdfExplanatory Note97801057032802026-07-08T16:54:58.625226Z2026-10-05T08:34:03Z2026-11-25T14:02:43.976Z
ukpga/2026/22Pension Schemes Act 2026ukpgaUnitedKingdomPublicGeneralAct2026222026 Chapter 22https://www.legislation.gov.uk/ukpga/2026/22https://www.legislation.gov.uk/ukpga/2026/22/data.xmlAn Act to make provision about pension schemes; and for connected purposes.2026-04-29[]revised2026-06-29falseE+W+S+N.I.primary192https://www.legislation.gov.uk/ukpga/2026/22/pdfs/ukpga_20260022_en.pdfhttps://www.legislation.gov.uk/ukpga/2026/22/pdfs/ukpgaen_20260022_en.pdfExplanatory Notes97801057032422026-05-08T10:28:07.70913Z2026-08-26T17:02:37Z2026-11-25T14:02:43.976Z
ukpga/2026/21Children’s Wellbeing and Schools Act 2026ukpgaUnitedKingdomPublicGeneralAct2026212026 Chapter 21https://www.legislation.gov.uk/ukpga/2026/21https://www.legislation.gov.uk/ukpga/2026/21/data.xmlAn Act to make provision about the safeguarding and welfare of children; about support for children in care or leaving …2026-04-29[]revised2026-11-18falseE+W+S+N.I.primary272https://www.legislation.gov.uk/ukpga/2026/21/pdfs/ukpga_20260021_en.pdfhttps://www.legislation.gov.uk/ukpga/2026/21/pdfs/ukpgaen_20260021_en.pdfExplanatory Notes97801057032352026-05-07T12:57:29.026343Z2026-11-18T11:18:50Z2026-11-25T14:02:43.976Z
ukpga/2026/20Crime and Policing Act 2026ukpgaUnitedKingdomPublicGeneralAct2026202026 Chapter 20https://www.legislation.gov.uk/ukpga/2026/20https://www.legislation.gov.uk/ukpga/2026/20/data.xmlAn Act to make provision about anti-social behaviour, offensive weapons, offences against people (including sexual offe…2026-04-29[]revised2026-11-25falseE+W+S+N.I.primary1072https://www.legislation.gov.uk/ukpga/2026/20/pdfs/ukpga_20260020_en.pdfhttps://www.legislation.gov.uk/ukpga/2026/20/pdfs/ukpgaen_20260020_en.pdfExplanatory Note97801057032662026-05-08T16:16:10.54178Z2026-11-25T00:10:00Z2026-11-25T14:02:43.976Z
ukpga/2020/1European Union (Withdrawal Agreement) Act 2020ukpgaUnitedKingdomPublicGeneralAct202012020 c. 1https://www.legislation.gov.uk/ukpga/2020/1https://www.legislation.gov.uk/ukpga/2020/1/data.xmlAn Act to implement, and make other provision in connection with, the agreement between the United Kingdom and the EU u…2020-01-23[]revised2024-02-20falseE+W+S+N.I.primary235https://www.legislation.gov.uk/ukpga/2020/1/pdfs/ukpga_20200001_en.pdfhttps://www.legislation.gov.uk/ukpga/2020/1/pdfs/ukpgaen_20200001_en.pdfExplanatory Note97801057007392020-01-23T18:16:25.074039Z2024-05-18T03:39:03Z2026-11-25T14:02:50.822Z
ukpga/2026/28Sovereign Grant Act 2026ukpgaUnitedKingdomPublicGeneralAct2026282026 Chapter 28https://www.legislation.gov.uk/ukpga/2026/28https://www.legislation.gov.uk/ukpga/2026/28/data.xmlAn Act to specify the amount of the Sovereign Grant for the financial year 2027-28 and the percentage of the income acc…2026-11-02[]revised2026-11-02falseE+W+S+N.I.primary6https://www.legislation.gov.uk/ukpga/2026/28/pdfs/ukpga_20260028_en.pdf97801057033272026-11-02T17:48:17.341085Z2026-11-04T10:37:19Z2026-11-25T14:02:43.976Z
ukpga/2026/27Steel Industry (Nationalisation) Act 2026ukpgaUnitedKingdomPublicGeneralAct2026272026 Chapter 27https://www.legislation.gov.uk/ukpga/2026/27https://www.legislation.gov.uk/ukpga/2026/27/data.xmlAn Act to make provision enabling the Secretary of State in certain circumstances to make regulations relating to the t…2026-07-15[]revised2026-07-15falseE+W+S+N.I.primary64https://www.legislation.gov.uk/ukpga/2026/27/pdfs/ukpga_20260027_en.pdf97801057032972026-07-15T14:52:42.140746Z2026-08-18T10:10:53Z2026-11-25T14:02:43.976Z
ukpga/2026/26Taxation (Energy and Vehicles) Act 2026ukpgaUnitedKingdomPublicGeneralAct2026262026 Chapter 26https://www.legislation.gov.uk/ukpga/2026/26https://www.legislation.gov.uk/ukpga/2026/26/data.xmlAn Act to increase the rate of electricity generator levy and mileage amounts relating to income tax and to provide for…2026-07-15[]revised2026-07-15falseE+W+S+N.I.primary4https://www.legislation.gov.uk/ukpga/2026/26/pdfs/ukpga_20260026_en.pdf97801057033032026-07-15T14:58:03.989258Z2026-08-11T15:18:26Z2026-11-25T14:02:43.976Z
ukpga/2026/25Supply and Appropriation (Main Estimates) Act 2026ukpgaUnitedKingdomPublicGeneralAct2026252026 Chapter 25https://www.legislation.gov.uk/ukpga/2026/25https://www.legislation.gov.uk/ukpga/2026/25/data.xmlAn Act to authorise the use of resources for the year ending with 31 March 2027; to authorise both the issue of sums ou…2026-07-15[]revised2026-07-15falseE+W+S+N.I.primary8https://www.legislation.gov.uk/ukpga/2026/25/pdfs/ukpga_20260025_en.pdf97801057033102026-07-16T09:55:56.503633Z2026-08-18T10:48:53Z2026-11-25T14:02:43.976Z
ukpga/2026/19Victims and Courts Act 2026ukpgaUnitedKingdomPublicGeneralAct2026192026 Chapter 19https://www.legislation.gov.uk/ukpga/2026/19https://www.legislation.gov.uk/ukpga/2026/19/data.xmlAn Act to make provision about the experience of victims within the criminal justice system; about the functions of the…2026-04-29[]revised2026-08-13falseE+W+S+N.I.primary156https://www.legislation.gov.uk/ukpga/2026/19/pdfs/ukpga_20260019_en.pdf97801057032592026-05-08T10:28:13.966914Z2026-08-17T12:30:35Z2026-11-25T14:02:43.976Z
asp/2020/18Social Security Administration and Tribunal Membership (Scotland) Act 2020aspScottishAct202018https://www.legislation.gov.uk/asp/2020/18https://www.legislation.gov.uk/asp/2020/18/data.xmlAn Act of the Scottish Parliament to modify the Social Security (Scotland) Act 2018 in relation to the appointment of p…[]97801059037892020-11-10T15:10:53.532934Z2024-05-05T11:33:39Z2026-11-25T14:03:05.157Z
asp/2020/17Agriculture (Retained EU Law and Data) (Scotland) Act 2020aspScottishAct202017https://www.legislation.gov.uk/asp/2020/17https://www.legislation.gov.uk/asp/2020/17/data.xmlAn Act of the Scottish Parliament to confer powers to modify certain retained EU law relating to agriculture, including…[]97801059037722020-10-02T07:12:24.622404Z2025-07-03T09:09:13Z2026-11-25T14:03:05.157Z
asp/2020/16Children (Scotland) Act 2020aspScottishAct202016https://www.legislation.gov.uk/asp/2020/16https://www.legislation.gov.uk/asp/2020/16/data.xmlAn Act of the Scottish Parliament to amend the law relating to children; and for connected purposes.[]97801059037652020-10-02T07:07:22.934492Z2025-09-22T13:19:30Z2026-11-25T14:03:05.157Z
asp/2020/15Civil Partnership (Scotland) Act 2020aspScottishAct202015https://www.legislation.gov.uk/asp/2020/15https://www.legislation.gov.uk/asp/2020/15/data.xmlAn Act of the Scottish Parliament to enable persons of different sexes to be in a civil partnership; and for connected …[]97801059037582020-07-29T12:09:29.18356Z2024-05-15T11:17:34Z2026-11-25T14:03:05.157Z
asp/2020/14Animals and Wildlife (Penalties, Protections and Powers) (Scotland) Act 2020aspScottishAct202014https://www.legislation.gov.uk/asp/2020/14https://www.legislation.gov.uk/asp/2020/14/data.xmlAn Act of the Scottish Parliament to increase penalties for the most serious animal welfare offences, to provide for fi…[]97801059037412020-07-24T11:15:39.338904Z2024-05-05T11:27:37Z2026-11-25T14:03:05.157Z
asp/2020/13Disclosure (Scotland) Act 2020aspScottishAct202013https://www.legislation.gov.uk/asp/2020/13https://www.legislation.gov.uk/asp/2020/13/data.xmlAn Act of the Scottish Parliament to restate and amend the law relating to the disclosure of criminal history and other…[]97801059037342020-07-15T15:22:16.087612Z2026-04-01T11:30:13Z2026-11-25T14:03:05.157Z
asp/2020/12Scottish Elections (Reform) Act 2020aspScottishAct202012https://www.legislation.gov.uk/asp/2020/12https://www.legislation.gov.uk/asp/2020/12/data.xmlAn Act of the Scottish Parliament to reform certain aspects of the law relating to Scottish parliamentary and local gov…[]97801059037272020-07-14T07:27:40.621518Z2024-05-05T03:39:38Z2026-11-25T14:03:05.157Z
asp/2020/11Consumer Scotland Act 2020aspScottishAct202011https://www.legislation.gov.uk/asp/2020/11https://www.legislation.gov.uk/asp/2020/11/data.xmlAn Act of the Scottish Parliament to establish Consumer Scotland and provide for its functions as a consumer advocacy a…[]97801059037102020-06-10T07:26:17.676031Z2024-05-03T23:26:19Z2026-11-25T14:03:05.157Z

Output fields

33 fields per record. Filled = share of the run's 20 records in which the field has a value.

FieldTypeDescriptionFilled
idstringStable identifier: type/year/number, for example ukpga/2020/1
100%
titlestringShort title of the Act, instrument or measure (English)
100%
title_welshstringWelsh-language title, for bilingual Welsh legislation
0%
typestringLegislation type code, for example ukpga, uksi, asp, wsi
100%
type_namestringFull type name, for example UnitedKingdomPublicGeneralAct
100%
yearintegerYear of the item
100%
numberstringNumber within the year (regnal items use the chapter number)
100%
citationstringOfficial citation as printed, for example 2020 c. 1 or 2020 No. 1 (detail option)
60%
legislation_urlstringCanonical page for the item
100%
full_text_urlstringFull text as structured XML
100%
descriptionstringLong title or explanatory summary
100%
made_datestringDate of Royal Assent, enactment or making, ISO-8601 (detail option)
60%
coming_into_force_datestringFirst coming-into-force date, ISO-8601 (statutory instruments, detail option)
5%
laid_datestringDate laid before Parliament, ISO-8601 (statutory instruments, detail option)
5%
subjectsarraySubject headings
5%
version_statusstringStatus of the current text: enacted, made, final or revised (detail option)
60%
version_datestringDate the current version of the text is valid from, ISO-8601 (detail option)
60%
repealedbooleanTrue when the publisher marks the whole item as repealed (detail option). Items whose text has not been revised read false
60%
extentstringTerritorial extent codes, for example E+W+S+N.I. (detail option)
60%
territorial_applicationstringWhere an instrument applies when narrower than its extent, for example E (detail option, statutory instruments)
5%
categorystringprimary or secondary legislation (detail option)
60%
minor_typestringInstrument kind, for example order, regulation, rule (statutory instruments, detail option)
5%
total_paragraphsintegerNumber of provisions in the text (detail option)
60%
pdf_urlstringOfficial PDF of the item as published (detail option)
60%
explanatory_document_urlstringPDF of the Explanatory Notes or Explanatory Memorandum, when published (detail option)
35%
explanatory_document_typestringKind of explanatory document, for example Explanatory Note or UK Explanatory Memorandum (detail option)
35%
isbnstringISBN of the printed edition
100%
publishedstringWhen the item was first published on the site
100%
last_updatedstringWhen the record was last updated on the site
100%
amendsarrayLegislation this item amends, each with id, title, url, number of changes and change kinds (amendments option)
5%
amended_byarrayLegislation that amends this item, in the same shape (amendments option)
5%
amendments_truncatedbooleanTrue when more changes exist than the pages requested (amendments option)
5%
scraped_atstringScraped at
100%

About this actor

UK Legislation Scraper — Acts and Statutory Instruments

Collects the UK statute book from legislation.gov.uk as structured records: Acts of Parliament, Scottish, Welsh and Northern Ireland legislation, Statutory Instruments, Church measures and retained EU law. Each record carries the reference, title, dates, territorial extent, subject headings and links to the official text, with an optional amendment trail showing which legislation changed which.


UK Legislation Scraper Features

  • Covers 30 legislation types in one actor, from UK Public General Acts and Statutory Instruments to Scottish Acts, Welsh Statutory Instruments, Northern Ireland Orders and EU Regulations that still sit on the UK statute book
  • Filters by type, year range and title text, so you can pull "every Statutory Instrument made in 2024" or "everything with 'data protection' in the title"
  • Returns the enactment or making date, the first coming-into-force date, the date laid before Parliament, territorial extent (for example E+W+S+N.I.) and the official subject headings
  • Optional amendment trail: the legislation each item amends and the legislation that amends it, with the number and kind of changes
  • Links every record to the official page, the structured full-text XML and the published PDF
  • Flat, consistent records that load straight into a spreadsheet, a database or a compliance tool

Who Uses UK Legislation Data?

  • Regtech and compliance teams — keep a register of new and changed UK law against the obligations you track
  • Policy and public affairs monitors — watch what a department, devolved parliament or subject area enacted this month
  • Legal publishers and legal AI teams — build a clean index of the statute book to link, cite and train against
  • Law firms and in-house counsel — find every instrument touching a subject, then follow the amendment trail
  • Researchers — study legislative volume by year, type and nation

How the UK Legislation Scraper Works

  1. Choose the legislation types and an optional year range, or leave the types empty to walk the whole statute book, primary legislation first and newest first.
  2. The scraper lists every matching Act, instrument or measure.
  3. For each one it reads the dates, extent and subject headings, unless you turn that option off for a faster title-and-reference listing.
  4. With amendments switched on, it also reads which legislation each item amends and is amended by.
  5. Every item is saved as one structured record.

Input

{
  "legislationTypes": ["uksi"],
  "yearFrom": 2024,
  "yearTo": 2024,
  "includeDetail": true,
  "includeAmendments": false,
  "maxItems": 500
}
Field Type Default Description
legislationTypes Array all Which types to collect, for example ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp (Acts of the Scottish Parliament), wsi (Welsh Statutory Instruments). Empty means every type.
yearFrom Integer none Earliest year to include.
yearTo Integer none Latest year to include.
titleContains String none Keep only items whose title contains this text, for example "data protection".
includeDetail Boolean true Add dates, extent, subjects, paragraph count and PDF link. Turn off for a faster listing.
includeAmendments Boolean false Add the amends and amended_by lists. Slower, because it adds work per record.
maxAmendmentPages Integer 2 Pages of changes to read per direction (up to 50 changes per page). Records are flagged amendments_truncated when more exist.
maxItems Integer 10 Maximum number of items to save.

Example: Acts of the Scottish Parliament passed in 2020

{
  "legislationTypes": ["asp"],
  "yearFrom": 2020,
  "yearTo": 2020,
  "maxItems": 50
}

Output

One record per Act, instrument or measure:

{
  "id": "uksi/2020/1",
  "title": "The Police Appeals Tribunals Rules 2020",
  "type": "uksi",
  "type_name": "UnitedKingdomStatutoryInstrument",
  "year": 2020,
  "number": "1",
  "citation": "2020 No. 1",
  "legislation_url": "https://www.legislation.gov.uk/uksi/2020/1",
  "full_text_url": "https://www.legislation.gov.uk/uksi/2020/1/data.xml",
  "description": "These Rules set out the circumstances in which a member of a police force ... may appeal to a police appeals tribunal.",
  "made_date": "2020-01-06",
  "coming_into_force_date": "2020-02-01",
  "laid_date": "2020-01-10",
  "subjects": ["POLICE, ENGLAND AND WALES"],
  "version_status": "revised",
  "version_date": "2025-05-28",
  "repealed": false,
  "extent": "E+W",
  "territorial_application": null,
  "category": "secondary",
  "minor_type": "rule",
  "total_paragraphs": 28,
  "pdf_url": "https://www.legislation.gov.uk/uksi/2020/1/pdfs/uksi_20200001_en.pdf",
  "explanatory_document_url": "https://www.legislation.gov.uk/uksi/2020/1/pdfs/uksiem_20200001_en.pdf",
  "explanatory_document_type": "UK Explanatory Memorandum",
  "isbn": "9780111191835",
  "published": "2020-01-10T00:00:00+00:00",
  "last_updated": "2025-06-10T12:00:00+01:00",
  "amends": [
    { "id": "uksi/2012/2630", "title": "The Police Appeals Tribunals Rules 2012", "url": "https://www.legislation.gov.uk/uksi/2012/2630", "effects": 1, "effect_types": ["revoked"] }
  ],
  "amended_by": [],
  "amendments_truncated": false
}
Field Description
id Stable identifier in the form type/year/number.
title Short title.
title_welsh Welsh-language title of bilingual Welsh legislation.
type, type_name Type code and full type name.
year, number Year and number within the year (older items use regnal references).
citation Official citation as printed, such as 2020 c. 1 or 2020 No. 1.
legislation_url Canonical page for the item.
full_text_url Full text as structured XML.
description Long title or summary.
made_date Date of Royal Assent, enactment or making.
coming_into_force_date First coming-into-force date (Statutory Instruments).
laid_date Date laid before Parliament (Statutory Instruments).
subjects Subject headings.
version_status Status of the current text: enacted, made, final or revised.
version_date Date the current version of the text is valid from.
repealed true when the whole item is marked repealed.
extent Territorial extent codes.
territorial_application Where an instrument applies when narrower than its extent.
category, minor_type primary or secondary, and the instrument kind.
total_paragraphs Number of provisions in the text.
pdf_url Official PDF as published.
explanatory_document_* Explanatory Notes or Memorandum PDF and its kind, when published.
amends, amended_by Counterpart legislation with change counts and kinds (only with includeAmendments).

Some fields are empty where the publisher does not record them. Many recently made Statutory Instruments have no making date or extent yet, and amends/amended_by stay empty unless you turn amendments on.


Tips

  • Whole statute book: leave legislationTypes empty and raise maxItems. The corpus is several hundred thousand items, so long runs are normal. Narrow by type and year to refresh just the part you track.
  • Keeping up with new law: filter to the current year and schedule a weekly run.
  • Speed: switch includeDetail off for a plain reference list of titles and links.
  • Amendments: use a small maxItems first. Heavily amended Acts have hundreds of changes, and amendments_truncated tells you when a list was cut at your page limit.

FAQ

Does it need an account or API key? No. It reads the public statute book.

Is the text itself included? Each record links the official full text as structured XML and the published PDF. The record carries the metadata, not the whole body of the Act.

Does it show whether an Act has been repealed? version_status reports the state of the current text, and amended_by shows the legislation that changed or repealed an item. It does not give a single in-force or repealed flag.

Is the data current? Yes. Records reflect the publisher's statute book at the time of the run, and last_updated shows when each item last changed.

Can I schedule it? Yes. Use Apify schedules to run weekly, filtered to the types and years you follow.