legislation.gov.uk
App · 7 actions
Search and read UK legislation from legislation.gov.uk, The National Archives' official home of every Act and statutory instrument of the UK, Scotland, Wales and Northern Ireland. Find legislation by title, text, type and year, read any section as plain text (latest, as first made or on a date), see the changes made to it and by it, list its explanatory notes and impact assessments, and start a workflow when new legislation is published. No account or API key required.
Actions
| Action | What it does |
|---|---|
| Get legislation | Get a piece of legislation's details: its title and long title, citation, when it was made or enacted and comes into force, where it applies, whether its text is kept up to date and how many known changes are still to be made to it, with its table of contents. |
| Get legislation text | Get the words of one provision (a section, regulation, article or schedule) or of a whole piece of legislation, as numbered plain text with its amendment and commencement notes: the latest version, as first made, or as it stood on a date. |
| List associated documents | List the documents published with a piece of legislation: its explanatory notes or memorandum, impact assessments, transposition notes, correction slips and the printed copy, each with its date and a link to the PDF. |
| List changes made by legislation | List the changes a piece of legislation makes to other legislation: what it amends, repeals or otherwise affects, which of its provisions do it, when each comes into force and whether legislation.gov.uk has made it yet. |
| List changes to legislation | List the changes later legislation makes to a piece of legislation: each amendment, repeal or other effect, the provisions it touches, what makes it, when it comes into force, and whether legislation.gov.uk has made it to the text yet. |
| List new legislation | List the legislation legislation.gov.uk has published, most recent first: everything, one country's or one type, and on one day if you choose. |
| Search legislation | Find UK legislation by words in its title or its text, type, year and number: Acts of the UK, Scottish, Welsh and Northern Ireland parliaments, statutory instruments, and the EU legislation the UK kept. |
Get legislation
Get a piece of legislation's details: its title and long title, citation, when it was made or enacted and comes into force, where it applies, whether its text is kept up to date and how many known changes are still to be made to it, with its table of contents. No API key required.
Inputs
- Legislation
legislationtextRequired - Which Act or instrument: its title, its citation (2018 c. 12, S.I. 2019/419), its reference from another step (ukpga/2018/12) or a link copied from legislation.gov.uk. A title matching several pieces of legislation stops the step and names them.
- Table of contents
contentstext - Its sections and schedules (an instrument's regulations or articles count as sections), every entry including parts and each schedule paragraph, or none.One of:
provisions(Sections and schedules),everything(Everything, with parts and schedule paragraphs),none(Leave it out). Default:provisions.
Outputs
applies_tolist- Where it applies, e.g. ['England', 'Wales'].
body_paragraphsnumber- How many numbered provisions its main body has.
categorytext- 'primary' for an Act or Measure, 'secondary' for an instrument made under one.
citationtext- How it is cited, e.g. '2018 c. 12'.
coming_into_forcelist- The days an instrument says it comes into force. Empty for an Act, whose sections are brought into force one by one.
contentslist- Its table of contents, in order.
contents_countnumber- How many rows the table of contents has.
datetext- The day it was enacted (an Act) or made (an instrument), YYYY-MM-DD.
extenttext- Where it applies, as the site abbreviates it, e.g. 'E+W+S+N.I.'.
is_revisedtrue/false- True when legislation.gov.uk keeps the text up to date with later amendments. False when it holds the text only as first made, as for most instruments.
isbntext- Its ISBN as printed.
last_modifiedtext- When legislation.gov.uk last changed it, YYYY-MM-DD.
long_titletext- What it is for, in its own words (its long title).
notes_urltext- Its explanatory notes or memorandum on legislation.gov.uk, when it has them.
numbernumber- Its number in that year.
outstanding_changesnumber- How many changes by later legislation are known but not yet applied to the text. 'List changes to legislation' lists them.
pdf_urltext- A PDF of it as first printed, when there is one.
provisions_countnumber- How many provisions it has: sections, paragraphs of schedules and so on.
referencetext- The legislation's reference on legislation.gov.uk: its type, year and number, e.g. 'ukpga/2018/12'. Every other action takes it.
schedule_paragraphsnumber- How many paragraphs its schedules have.
titletext- Its title.
typetext- Its type code, e.g. 'ukpga'.
type_nametext- Its type in words, e.g. 'UK Public General Act'.
urltext- Its page on legislation.gov.uk.
version_datetext- For revised text, the day this version of it is in effect from, YYYY-MM-DD.
yearnumber- The year it was made or passed.
Example output
{
"applies_to": [
"England",
"Wales",
"Scotland",
"Northern Ireland"
],
"body_paragraphs": 264,
"category": "primary",
"citation": "2018 c. 12",
"coming_into_force": [],
"contents": [
{
"kind": "section",
"number": "1",
"provision": "section/1",
"status": null,
"title": "Overview",
"url": "https://www.legislation.gov.uk/ukpga/2018/12/section/1",
"within": "Part 1 Preliminary"
},
{
"kind": "section",
"number": "2",
"provision": "section/2",
"status": null,
"title": "Protection of personal data",
"url": "https://www.legislation.gov.uk/ukpga/2018/12/section/2",
"within": "Part 1 Preliminary"
},
{
"kind": "schedule",
"number": "A1",
"provision": "schedule/A1",
"status": null,
"title": "Processing in reliance on relevant international law",
"url": "https://www.legislation.gov.uk/ukpga/2018/12/schedule/A1",
"within": null
}
],
"contents_count": 3,
"date": "2018-05-23",
"extent": "E+W+S+N.I.",
"is_revised": true,
"isbn": "9780105700128",
"last_modified": "2026-09-30",
"long_title": "An Act to make provision for the regulation of the processing of information relating to individuals; to make provision in connection with the Information Commissioner's functions under certain regulations relating to information; to make provision for a direct marketing code of practice; and for connected purposes.",
"notes_url": "https://www.legislation.gov.uk/ukpga/2018/12/notes",
"number": 12,
"outstanding_changes": 9,
"pdf_url": "https://www.legislation.gov.uk/ukpga/2018/12/pdfs/ukpga_20180012_en.pdf",
"provisions_count": 1185,
"reference": "ukpga/2018/12",
"schedule_paragraphs": 936,
"title": "Data Protection Act 2018",
"type": "ukpga",
"type_name": "UK Public General Act",
"url": "https://www.legislation.gov.uk/ukpga/2018/12",
"version_date": "2026-09-30",
"year": 2018
}Get legislation text
Get the words of one provision (a section, regulation, article or schedule) or of a whole piece of legislation, as numbered plain text with its amendment and commencement notes: the latest version, as first made, or as it stood on a date. Ready to summarise or send on. No API key required.
Inputs
- Legislation
legislationtextRequired - Which Act or instrument: its title, its citation (2018 c. 12, S.I. 2019/419), its reference from another step (ukpga/2018/12) or a link copied from legislation.gov.uk. A title matching several pieces of legislation stops the step and names them.
- Provision
provisiontext - Which part, written the way it is cited. Leave it empty for the whole text (cut at 150,000 characters, so ask for a part of a long Act). A plain number is a section, or the regulation or article of that number in an instrument.
- Version
versiontext - The latest text, with the amendments made so far; the text as first passed or made; or the text as it stood on a date.One of:
latest(Latest, with amendments made so far),enacted(As first passed or made),on_date(As it stood on a date). Default:latest. - On date
on_datedate - The day to see the text as it stood. The site's revised text starts in 1991, and an earlier day gives the text as it was then.Only when Version is As it stood on a date.
Outputs
annotationslist- The notes marked in the text, in the order they appear.
applies_tolist- Where it applies, e.g. ['England', 'Wales'].
charactersnumber- How long the whole text is, before any cut.
citationtext- How the legislation is cited, e.g. '2018 c. 12'.
extenttext- Where it applies, e.g. 'E+W+S+N.I.'.
headingtext- The provision's heading, e.g. 'Overview'.
legislation_titletext- The title of the legislation it is from.
outstanding_changesnumber- How many changes by later legislation are known but not yet applied to this text.
provisiontext- Which provision this is, e.g. 'section/1'. Empty for the whole text.
referencetext- The legislation's reference on legislation.gov.uk: its type, year and number, e.g. 'ukpga/2018/12'. Every other action takes it.
statustext- What the site says of the provision, e.g. 'repealed' or 'prospective' (not yet in force). Usually empty.
texttext- The words, numbered as printed, one subsection or paragraph to a line. Notes are marked in place, e.g. [F1] for an amendment, and explained in annotations.
truncatedtrue/false- True when the text was cut at 150,000 characters. Ask for one part or section instead.
urltext- This version on legislation.gov.uk.
versiontext- Which version this is: 'latest', 'enacted' (as first made) or the date asked for.
version_datetext- For revised text, the day this version is in effect from, YYYY-MM-DD.
versionslist- The versions the site holds: 'enacted' (or 'made') and the dates the text changed. Any of the dates can be asked for.
Example output
{
"annotations": [
{
"kind": "Commencement",
"label": "I1",
"text": "S. 1 in force at Royal Assent, see s. 212(2)(a)"
},
{
"kind": "Textual amendment",
"label": "F1",
"text": "Words in s. 1(2) substituted (31.12.2020) by The Data Protection, Privacy and Electronic Communications (Amendments etc) (EU Exit) Regulations 2019 (S.I. 2019/419), reg. 1(2), Sch. 2 para. 2(2) (with reg. 5); 2020 c. 1, Sch. 5 para. 1(1)"
}
],
"applies_to": [
"England",
"Wales",
"Scotland",
"Northern Ireland"
],
"characters": 797,
"citation": "2018 c. 12",
"extent": "E+W+S+N.I.",
"heading": "Overview",
"legislation_title": "Data Protection Act 2018",
"outstanding_changes": 2,
"provision": "section/1",
"reference": "ukpga/2018/12",
"status": null,
"text": "1 [I1] Overview\n(1) This Act makes provision about the processing of personal data.\n(2) Most processing of personal data is subject to the [F1]UK GDPR.\n(3) Part 2 supplements the [F2]UK GDPR.",
"truncated": false,
"url": "https://www.legislation.gov.uk/ukpga/2018/12/section/1",
"version": "latest",
"version_date": "2026-09-30",
"versions": [
"enacted",
"2018-05-23",
"2020-12-31",
"2025-11-17",
"2026-09-30"
]
}List associated documents
List the documents published with a piece of legislation: its explanatory notes or memorandum, impact assessments, transposition notes, correction slips and the printed copy, each with its date and a link to the PDF. No API key required.
Inputs
- Legislation
legislationtextRequired - Which Act or instrument: its title, its citation (2018 c. 12, S.I. 2019/419), its reference from another step (ukpga/2018/12) or a link copied from legislation.gov.uk. A title matching several pieces of legislation stops the step and names them.
Outputs
countnumber- How many documents there are.
documentslist- The documents, each a PDF.
notes_urltext- Its explanatory notes on legislation.gov.uk, when it has them.
referencetext- The legislation's reference on legislation.gov.uk: its type, year and number, e.g. 'ukpga/2018/12'. Every other action takes it.
titletext- The legislation's title.
Example output
{
"count": 3,
"documents": [
{
"date": "2022-01-13",
"kind": "Explanatory notes",
"language": null,
"size_bytes": 1240195,
"stage": null,
"title": "Explanatory Note",
"url": "https://www.legislation.gov.uk/ukpga/2018/12/pdfs/ukpgaen_20180012_en.pdf"
},
{
"date": "2019-08-19",
"kind": "Correction slip",
"language": null,
"size_bytes": 101314,
"stage": null,
"title": "Correction Slip 1",
"url": "https://www.legislation.gov.uk/ukpga/2018/12/pdfs/ukpgacs_20180012_en_001.pdf"
},
{
"date": "2018-05-24",
"kind": "Printed copy",
"language": null,
"size_bytes": 3060320,
"stage": null,
"title": "Printed copy",
"url": "https://www.legislation.gov.uk/ukpga/2018/12/pdfs/ukpga_20180012_en.pdf"
}
],
"notes_url": "https://www.legislation.gov.uk/ukpga/2018/12/notes",
"reference": "ukpga/2018/12",
"title": "Data Protection Act 2018"
}List changes made by legislation
List the changes a piece of legislation makes to other legislation: what it amends, repeals or otherwise affects, which of its provisions do it, when each comes into force and whether legislation.gov.uk has made it yet. Useful for seeing what a new instrument changes. No API key required.
Inputs
- Legislation
legislationtextRequired - The legislation making the changes. Which Act or instrument: its title, its citation (2018 c. 12, S.I. 2019/419), its reference from another step (ukpga/2018/12) or a link copied from legislation.gov.uk. A title matching several pieces of legislation stops the step and names them.
- Which changes
appliedtext - All recorded changes, or only those legislation.gov.uk has or hasn't yet made to the text. The ones not yet made are what to check before relying on the text.One of:
all(All changes),unapplied(Only those not yet made to the text),applied(Only those already made to the text). Default:all. - Page
pagenumber - Which page of results, from 1. Ask for the next when has_more is true.From 1 to 10000. Default:
1. - Results per page
limitnumber - How many to return, up to 100.From 1 to 100. Default:
20.
Outputs
applied_filtertext- Which changes were listed: all, applied or unapplied.
changeslist- The changes, most recently recorded first.
countnumber- How many are on this page.
has_moretrue/false- True when there is a next page: ask for page + 1.
pagenumber- Which page this is, from 1.
referencetext- The legislation's reference on legislation.gov.uk: its type, year and number, e.g. 'ukpga/2018/12'. Every other action takes it.
totalnumber- How many changes are recorded in all.
total_pagesnumber- How many pages there are.
Example output
{
"applied_filter": "all",
"changes": [
{
"affected_provisions": "rule 10(1)(c)",
"affected_reference": "uksi/2009/1976",
"affected_title": "The Tribunal Procedure (First-tier Tribunal) (General Regulatory Chamber) Rules 2009",
"affected_url": "https://www.legislation.gov.uk/uksi/2009/1976",
"affecting_provisions": "Sch. 3 para. 11(2)(a)",
"affecting_reference": "uksi/2026/386",
"affecting_title": "The Data (Use and Access) Act 2025 (Consequential Amendments and Transitional Provision) Regulations 2026",
"affecting_url": "https://www.legislation.gov.uk/uksi/2026/386",
"applied": true,
"change": "words substituted",
"commenced_by": "reg. 1(2)",
"extent": "same as the provision changed",
"in_force": [
{
"date": "2026-09-30",
"prospective": false,
"qualification": "wholly in force"
}
],
"notes": null,
"recorded_at": "2026-10-02T14:01:16Z",
"summary": "The Tribunal Procedure (First-tier Tribunal) (General Regulatory Chamber) Rules 2009 rule 10(1)(c): words substituted by The Data (Use and Access) Act 2025 (Consequential Amendments and Transitional Provision) Regulations 2026 Sch. 3 para. 11(2)(a) (applied)"
}
],
"count": 1,
"has_more": true,
"page": 1,
"reference": "uksi/2026/386",
"total": 805,
"total_pages": 805
}List changes to legislation
List the changes later legislation makes to a piece of legislation: each amendment, repeal or other effect, the provisions it touches, what makes it, when it comes into force, and whether legislation.gov.uk has made it to the text yet. Most recently recorded first. No API key required.
Inputs
- Legislation
legislationtextRequired - The legislation that is changed. Which Act or instrument: its title, its citation (2018 c. 12, S.I. 2019/419), its reference from another step (ukpga/2018/12) or a link copied from legislation.gov.uk. A title matching several pieces of legislation stops the step and names them.
- Which changes
appliedtext - All recorded changes, or only those legislation.gov.uk has or hasn't yet made to the text. The ones not yet made are what to check before relying on the text.One of:
all(All changes),unapplied(Only those not yet made to the text),applied(Only those already made to the text). Default:all. - Page
pagenumber - Which page of results, from 1. Ask for the next when has_more is true.From 1 to 10000. Default:
1. - Results per page
limitnumber - How many to return, up to 100.From 1 to 100. Default:
20.
Outputs
applied_filtertext- Which changes were listed: all, applied or unapplied.
changeslist- The changes, most recently recorded first.
countnumber- How many are on this page.
has_moretrue/false- True when there is a next page: ask for page + 1.
pagenumber- Which page this is, from 1.
referencetext- The legislation's reference on legislation.gov.uk: its type, year and number, e.g. 'ukpga/2018/12'. Every other action takes it.
totalnumber- How many changes are recorded in all.
total_pagesnumber- How many pages there are.
Example output
{
"applied_filter": "unapplied",
"changes": [
{
"affected_provisions": "Sch. 3 para. 2(1)",
"affected_reference": "ukpga/2018/12",
"affected_title": "Data Protection Act 2018",
"affected_url": "https://www.legislation.gov.uk/ukpga/2018/12",
"affecting_provisions": "s. 2(1)(l)",
"affecting_reference": "ukpga/2023/48",
"affecting_title": "Veterans Advisory and Pensions Committees Act 2023",
"affecting_url": "https://www.legislation.gov.uk/ukpga/2023/48",
"applied": false,
"change": "words substituted",
"commenced_by": "s. 3(3)",
"extent": "same as the provision changed",
"in_force": [
{
"date": null,
"prospective": true,
"qualification": null
}
],
"notes": null,
"recorded_at": "2026-02-06T16:20:16Z",
"summary": "Data Protection Act 2018 Sch. 3 para. 2(1): words substituted by Veterans Advisory and Pensions Committees Act 2023 s. 2(1)(l) (not yet applied)"
}
],
"count": 1,
"has_more": true,
"page": 1,
"reference": "ukpga/2018/12",
"total": 9,
"total_pages": 9
}List new legislation
List the legislation legislation.gov.uk has published, most recent first: everything, one country's or one type, and on one day if you choose. New statutory instruments appear most working days. No API key required.
Inputs
- Published on
published_ondate - Only what was published on this day. Leave it empty for the latest, whenever it was published.
- Which legislation
scopetext - Everything, one country's legislation, or one type.One of:
all(All new legislation),uk(UK-wide legislation),scotland(Scottish legislation),wales(Welsh legislation),ni(Northern Ireland legislation),ukpga(UK Public General Acts),uksi(UK Statutory Instruments),asp(Acts of the Scottish Parliament),ssi(Scottish Statutory Instruments),asc(Acts of Senedd Cymru), and 9 more. Default:all. - Page
pagenumber - Which page of results, from 1. Ask for the next when has_more is true.From 1 to 10000. Default:
1. - Results per page
limitnumber - How many to return, up to 100.From 1 to 100. Default:
20.
Outputs
countnumber- How many are on this page.
has_moretrue/false- True when there is a next page: ask for page + 1.
itemslist- The legislation, most recently published first.
pagenumber- Which page this is, from 1.
published_ontext- The day asked for, YYYY-MM-DD. Empty when no day was given and the list is simply the latest first.
scopetext- Which legislation was listed, e.g. 'all' or 'uksi'.
scope_nametext- The same in words, e.g. 'UK Statutory Instruments'.
totalnumber- How many match in all. Empty when the site doesn't count them, as for a search of the text.
Example output
{
"count": 1,
"has_more": true,
"items": [
{
"citation": "S.I. 2026/1146",
"date": "2026-10-30",
"number": 1146,
"pdf_url": "https://www.legislation.gov.uk/uksi/2026/1146/made/data.pdf",
"published": "2026-10-30",
"published_at": "2026-10-30T17:21:25.734273+01:00",
"reference": "uksi/2026/1146",
"subjects": [
"SOCIAL SECURITY"
],
"summary": "Under the Pneumoconiosis etc. (Workers\u2019 Compensation) Act 1979 (c. 41) (\u201cthe 1979 Act\u201d), lump sum payments may be made to certain persons disabled by a disease to which the Act applies, or to dependants of persons who were so disabled before they died.",
"title": "The Pneumoconiosis etc. (Workers\u2019 Compensation) (Payment of Claims) (Amendment) (No. 2) Regulations 2026",
"type": "uksi",
"type_name": "UK Statutory Instrument",
"updated_at": "2026-11-02T09:46:50+01:00",
"url": "https://www.legislation.gov.uk/uksi/2026/1146",
"year": 2026
}
],
"page": 1,
"published_on": "2026-10-30",
"scope": "uk",
"scope_name": "UK-wide legislation",
"total": 7
}Search legislation
Find UK legislation by words in its title or its text, type, year and number: Acts of the UK, Scottish, Welsh and Northern Ireland parliaments, statutory instruments, and the EU legislation the UK kept. Each result has its title, citation, type, the day it was made or enacted, a summary and a link. No API key required.
Inputs
- Words in the title
titletext - Only legislation with all of these words in its title. Put a phrase in double quotes to match it exactly.
- Words in the text
texttext - Only legislation whose text contains these words. Put a phrase in double quotes to match it exactly. A text search doesn't say how many match in all.
- Types
legislation_typeslist - Only these kinds of legislation. Leave it empty for all UK Acts and instruments (the EU legislation and drafts the site also holds are left out unless picked).One or more of:
ukpga(UK Public General Acts),uksi(UK Statutory Instruments),asp(Acts of the Scottish Parliament),ssi(Scottish Statutory Instruments),asc(Acts of Senedd Cymru),anaw(Acts of the National Assembly for Wales),mwa(Measures of the National Assembly for Wales),wsi(Welsh Statutory Instruments),nia(Acts of the Northern Ireland Assembly),nisr(Northern Ireland Statutory Rules), and 24 more. - From year
from_yearnumber - Only legislation from this year on. Give the same year in To year for one year.From 1200 to 2100.
- To year
to_yearnumber - Only legislation from this year or earlier.From 1200 to 2100.
- Number
numbernumber - Only legislation with this number: an Act's chapter number or an instrument's number, e.g. 12 for 2018 c. 12. With a year, it finds one piece of legislation.At least 1.
- Order
sorttext - Newest first, by year and number, unless you choose otherwise.One of:
newest(Newest first),published(Most recently published first),title(By title, A to Z). Default:newest. - Page
pagenumber - Which page of results, from 1. Ask for the next when has_more is true.From 1 to 10000. Default:
1. - Results per page
limitnumber - How many to return, up to 100.From 1 to 100. Default:
20.
Outputs
countnumber- How many are on this page.
has_moretrue/false- True when there is a next page: ask for page + 1.
pagenumber- Which page this is, from 1.
resultslist- The legislation found, in the order asked for.
totalnumber- How many match in all. Empty when the site doesn't count them, as for a search of the text.
Example output
{
"count": 2,
"has_more": true,
"page": 1,
"results": [
{
"citation": "2018 c. 12",
"date": "2018-05-23",
"number": 12,
"pdf_url": "https://www.legislation.gov.uk/ukpga/2018/12/2026-09-30/data.pdf",
"published": "2019-08-19",
"published_at": "2019-08-19T00:00:00+01:00",
"reference": "ukpga/2018/12",
"subjects": [],
"summary": "An Act to make provision for the regulation of the processing of information relating to individuals; to make provision in connection with the Information Commissioner\u2019s functions under certain regulations relating to information; to make provision for a direct marketing code of practice; and for connected purposes.",
"title": "Data Protection Act 2018",
"type": "ukpga",
"type_name": "UK Public General Act",
"updated_at": "2026-09-30T11:46:18+01:00",
"url": "https://www.legislation.gov.uk/ukpga/2018/12",
"year": 2018
},
{
"citation": "1998 c. 29",
"date": "1998-07-16",
"number": 29,
"pdf_url": "https://www.legislation.gov.uk/ukpga/1998/29/2019-12-02/data.pdf",
"published": "1998-07-16",
"published_at": "1998-07-16T00:00:00+01:00",
"reference": "ukpga/1998/29",
"subjects": [
"Privacy and data protection",
"Legislation"
],
"summary": "An Act to make new provision for the regulation of the processing of information relating to individuals, including the obtaining, holding, use or disclosure of such information.",
"title": "Data Protection Act 1998",
"type": "ukpga",
"type_name": "UK Public General Act",
"updated_at": "2026-02-09T11:12:04+01:00",
"url": "https://www.legislation.gov.uk/ukpga/1998/29",
"year": 1998
}
],
"total": 3
}