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.

Try it
Ready-made, maintained by usRecords, 12 fieldsv1.0

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

Typeoptional
Legislation type code: ukpga (UK Acts), uksi (UK statutory instruments), asp (Acts of the Scottish Parliament), ssi (Scottish instruments), wsi (Welsh instruments), nisr (Northern Ireland rules) and so on. Leave empty for every type.
Example: uksi
Yearoptional
Only items of this year.
Example: 2026
Searchoptional
Words that must appear in the title of the item.
Example: waste

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
Endpoint
POSThttps://pullrow.dev/v1/apis/uk-legislation-new/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

typetext
Legislation type code: ukpga (UK Acts), uksi (UK statutory instruments), asp (Acts of the Scottish Parliament), ssi (Scottish instruments), wsi (Welsh instruments), nisr (Northern Ireland rules) and so on. Leave empty for every type.
example: uksi
yearnumber
Only items of this year.
example: 2026
searchtext
Words that must appear in the title of the item.
example: waste

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

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
titletextTitle3 of 3
typetextType3 of 3
type_nametextType name3 of 3
yearnumberYear3 of 3
numbernumberNumber3 of 3
made_datedateMade date3 of 3
published_atdate and timePublished3 of 3
subjecttextSubject3 of 3
summarytextSummary3 of 3
urllinkLink3 of 3
pdf_urllinkPDF link3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordTitleTypeType nameNumberSubjectSummaryYearMade datePublishedLinkPDF link
1The Separation of Waste (England) (Amendment) Regulations 2026uksiUnited Kingdom Statutory Instrument1269ENVIRONMENTAL PROTECTION, ENGLANDThese 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…2026Dec 3, 2026Dec 4, 2026legislation.gov.uk/uksi/2026/1269/madelegislation.gov.uk/uksi/2026/1269/made/data.pdf
2The Scotland Act 1998 (Agency Arrangements) (Specification) (Digital Waste Tracking) Order 2026uksiUnited Kingdom Statutory Instrument1188CONSTITUTIONAL LAWThis 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…2026Nov 11, 2026Nov 13, 2026legislation.gov.uk/uksi/2026/1188/madelegislation.gov.uk/uksi/2026/1188/made/data.pdf
3The Environmental Permitting (Waste Controlling or Transporting) and Relevant Functions of Primary Authorities (Amendment) (England) Regulations 2026uksiUnited Kingdom Statutory Instrument873ENVIRONMENTAL PROTECTION, ENGLANDThese 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…2026Jul 22, 2026Jul 28, 2026legislation.gov.uk/uksi/2026/873/madelegislation.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.
Known limits
  • 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.