UK Legislation API
New and searchable UK legislation from legislation.gov.uk: Acts and statutory instruments with title, type, year, number, date made, publication time, subject, a short summary and links to the page and the PDF.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from legislation.gov.uk
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/uk-legislation-new/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"type":"uksi"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
12 fields: 11 here, 1 technical one under Technical details.
Basics
- Title
Title of the Act or instrument.
Example The Separation of Waste (England) (Amendment) Regulations 2026
- Type
Type code such as ukpga, uksi, asp or wsi.
Example uksi
- Type name
Type in words, such as United Kingdom Statutory Instrument.
Example United Kingdom Statutory Instrument
- Number
Number of the item within its type and year.
Example 1269
- Subject
Subject heading of the item, when it has one.
Example ENVIRONMENTAL PROTECTION, ENGLAND
- Summary
Explanatory note in plain text, cut to 600 characters.
Example These Regulations amend regulation 1 of the Separation of Waste (England) Regulations 2024 (S.I. 2024/666)(‘the 2024…
Dates
- Year
Year of the item.
Example 2026
- Made date
Date the item was made or created.
Example Dec 3, 2026
- Published
When the item was published on legislation.gov.uk (UTC).
Example Dec 4, 2026
Links
- Link
Link to the item on legislation.gov.uk.
- PDF link
Link to the PDF of the item.
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- ID
idOwn id of the item, such as uksi/2026/1269.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
title | text | Title | 3 of 3 |
type | text | Type | 3 of 3 |
type_name | text | Type name | 3 of 3 |
year | number | Year | 3 of 3 |
number | number | Number | 3 of 3 |
made_date | date | Made date | 3 of 3 |
published_at | date and time | Published | 3 of 3 |
subject | text | Subject | 3 of 3 |
summary | text | Summary | 3 of 3 |
url | link | Link | 3 of 3 |
pdf_url | link | PDF link | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Title | Type | Type name | Number | Subject | Summary | Year | Made date | Published | Link | PDF link |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | The Separation of Waste (England) (Amendment) Regulations 2026 | uksi | United Kingdom Statutory Instrument | 1269 | ENVIRONMENTAL PROTECTION, ENGLAND | These Regulations amend regulation 1 of the Separation of Waste (England) Regulations 2024 (S.I. 2024/666)(‘the 2024 Regulations’). Regulation 2 amends regulation 1 of the 2024 Regulations so that paragraph 4(1)(e) of Schedule 1 comes into force on 1st April 2030 instead of 31st… | 2026 | Dec 3, 2026 | Dec 4, 2026 | legislation.gov.uk/uksi/2026/1269/made | legislation.gov.uk/uksi/2026/1269/made/data.pdf |
| 2 | The Scotland Act 1998 (Agency Arrangements) (Specification) (Digital Waste Tracking) Order 2026 | uksi | United Kingdom Statutory Instrument | 1188 | CONSTITUTIONAL LAW | This Order paves the way for the Scottish Ministers and a Minister of the Crown to enter into agency arrangements, under which a Minister of the Crown can exercise certain functions of the designated person acting under, or in accordance with, any regulations made under section… | 2026 | Nov 11, 2026 | Nov 13, 2026 | legislation.gov.uk/uksi/2026/1188/made | legislation.gov.uk/uksi/2026/1188/made/data.pdf |
| 3 | The Environmental Permitting (Waste Controlling or Transporting) and Relevant Functions of Primary Authorities (Amendment) (England) Regulations 2026 | uksi | United Kingdom Statutory Instrument | 873 | ENVIRONMENTAL PROTECTION, ENGLAND | These Regulations make amendments to the Environmental Permitting (England and Wales) Regulations 2016 (S.I. 2016/1154) (“the EPR 2016”) in relation to waste controlling activity, waste controlling-transporting activity and waste transporting activity (together “waste… | 2026 | Jul 22, 2026 | Jul 28, 2026 | legislation.gov.uk/uksi/2026/873/made | legislation.gov.uk/uksi/2026/873/made/data.pdf |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Items come newest published first, 20 per request, so a run of 500 items takes about 25 requests and runs at one request every second.
- Without a type, year or title words the run lists the newest items across all legislation types of the UK, Scotland, Wales and Northern Ireland.
- The title filter matches words in the title only, not in the text of the law.
- made_date is the date the item was created or made (the source's creation date) and is missing for some older items; subject and summary are filled only when the source has them, mostly for statutory instruments.
- The summary is the source's explanatory note cut to 600 characters; the full law text is not included, pdf_url and url link to it on legislation.gov.uk.
- The source adds items as the National Archives publishes them, usually within hours on working days.
- Contains public sector information licensed under the Open Government Licence v3.0 (Crown copyright); credit legislation.gov.uk when you reuse it.
- Not affiliated with or endorsed by The National Archives.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.