UK Legislation & Bills API — Search Acts, Statutory Instruments & Pending Bills
The UK has over 60,000 items of primary and secondary legislation on legislation.gov.uk, and Parliament introduces 30-50 new bills per session. Legal tech companies, compliance platforms, and policy researchers need to search this corpus, track changes, and monitor pending legislation — but legislation.gov.uk and the Parliament Bills API are separate services with different structures and no cross-referencing. The Legal Intelligence endpoint searches both simultaneously: find existing legislation by keyword and see related pending bills that could change the legal landscape. For compliance teams, it answers two questions in one call: what does the law currently say, and what might change?
What You Get
- •Legislation search: matching Acts of Parliament and Statutory Instruments with title, type, year, and direct URL
- •Pending bills: current Parliamentary bills matching the query, with title, current stage, and URL to the bill page
- •Result counts: total matching legislation items and total relevant pending bills
- •Direct links: every result includes a URL to the authoritative source on legislation.gov.uk or parliament.uk
Data Sources
legislation.gov.uk
The National Archives’ comprehensive database of UK legislation. Contains every Act of Parliament, Statutory Instrument, Scottish Act, Welsh Act, and Northern Ireland legislation since 1267. Full text, amendments, and revision history. The authoritative source used by courts, lawyers, and government.
UK Parliament Bills API
Real-time tracking of bills progressing through the House of Commons and House of Lords. Provides bill title, type (public, private, hybrid), current stage (first reading through to Royal Assent), sponsor, and related documents. Updated as bills progress through parliamentary stages.
Use Cases
Regulatory Compliance Monitoring
Compliance teams at regulated firms need to know when legislation affecting their industry changes or when new bills could create future obligations. Searching for "financial services" returns current FCA-related Acts and any pending bills that could affect regulation. Automated daily queries replace manual Parliament monitoring.
Legal Research Automation
Law firms conducting research for client matters start with legislation searches. The endpoint returns relevant Acts and Statutory Instruments with direct links to full text, eliminating the need to navigate legislation.gov.uk’s search interface. The pending bills data adds a forward-looking dimension that traditional legal databases charge premium rates for.
Policy Analysis Tools
Think tanks and policy consultancies track legislative activity across policy areas. Queries like "housing", "climate", or "artificial intelligence" reveal both the existing legal framework and upcoming changes. The structured JSON format enables automated trend analysis across sessions.
GovTech & RegTech Platforms
Companies building regulatory technology products need legislation data as a foundational layer. The endpoint provides a clean API for searching and monitoring UK law without building custom scrapers for legislation.gov.uk or the Parliament website.
Example
Request
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://www.ukdatapi.com/api/v1/legal/data%20protection"
Response
{
"data": {
"query": "data protection",
"legislation": [
{ "title": "Data Protection Act 2018", "type": "ukpga", "year": "2018", "url": "https://www.legislation.gov.uk/ukpga/2018/12" },
{ "title": "The Data Protection, Privacy and Electronic Communications (Amendments etc) (EU Exit) Regulations 2019", "type": "uksi", "year": "2019", "url": "https://www.legislation.gov.uk/uksi/2019/419" }
],
"pending_bills": [
{ "title": "Data Protection and Digital Information Bill", "stage": "Committee stage", "url": "https://bills.parliament.uk/bills/3430" }
],
"total_legislation": 47,
"total_bills": 1
}
}Pricing
| Depth | Credits |
|---|---|
| Summary | 10 |
| Standard | 10 |
| Full | 10 |
Related Endpoints
GET /api/v1/entity/{identifier}
UK Company Intelligence API
Access 5M+ UK companies via API. Get officers, PSCs, filings, charges, regulatory status, and proprietary Corporate Distress Score (0-100). From £0.002/call.
GET /api/v1/report/entity/{identifier}
UK Company Due Diligence Report API
Automated company due diligence: PROCEED, CAUTION, or DO NOT ENGAGE verdict with red/green flags, distress scoring, and actionable recommendations.
GET /api/v1/tenders
UK Public Procurement API
Track £300B+ UK public procurement: open tenders, contract awards, buyer details, values. Contracts Finder + Find a Tender in one API. From £0.02/call.