Legal

How to Search UK Legislation and Pending Bills

Why Access to Legislation Data Matters

UK law changes constantly. In any given year, Parliament passes approximately 30-40 Acts and the government makes over 3,000 Statutory Instruments — secondary legislation that implements the detail behind the headline Acts. For businesses, compliance teams, lawyers, and policy researchers, keeping track of relevant legislation is a fundamental requirement that is harder than it should be.

The official source of UK legislation is legislation.gov.uk, maintained by The National Archives. It contains every Act of Parliament and Statutory Instrument dating back centuries. The UK Parliament website separately publishes information about bills currently progressing through Parliament — proposed legislation that has not yet become law. Neither site is designed for programmatic access or broad searches. legislation.gov.uk excels at finding a specific known Act but is cumbersome for answering questions like 'what legislation applies to data processing in the financial sector?' The Parliament bills tracker shows current bills but does not cross-reference them with existing legislation on the same topic.

For compliance teams, the practical challenge is monitoring. When new regulations come into force, businesses in affected sectors need to update their processes, train staff, and demonstrate compliance. When bills are introduced that might affect their industry, they need to assess the impact and prepare for potential changes. Currently, this monitoring requires either subscribing to expensive legal intelligence services or dedicating staff time to manually checking government websites.

The Legal Intelligence endpoint searches both legislation.gov.uk and the UK Parliament Bills API simultaneously, returning relevant Acts, Statutory Instruments, and pending bills for any keyword query — with relevance scoring that helps you focus on the most pertinent results.

How to Search UK Law

The Legal Intelligence API at /api/v1/legal/{query} accepts a keyword or phrase and searches across both enacted legislation and current Parliamentary bills. You might search for 'data protection' to find GDPR-related legislation, 'building safety' to find regulations affecting the construction sector, or 'employment' to see the statutory framework for workplace law.

The endpoint costs 10 credits per call. The response includes matching legislation (Acts and Statutory Instruments) with their title, year, type, current status, URL to the full text on legislation.gov.uk, and relevant sections or provisions. It also returns current Parliamentary bills with their title, summary, current stage, sponsors, last update date, and URL to the Parliament website.

Relevance scores help you prioritise results. A search for 'data protection' might return dozens of results — the Data Protection Act 2018, the UK GDPR (retained EU law), various amendment regulations, sector-specific data sharing provisions, and pending bills that reference data protection. The relevance score indicates how closely each result matches your query, enabling you to focus on the most pertinent legislation without reading every result.

The government alternative involves two separate searches. legislation.gov.uk has a search function that covers enacted law but not pending bills. The Parliament website has a separate bill tracker that covers proposed legislation but not enacted law. Neither provides relevance scoring or a unified view of both current law and proposed changes on the same topic.

Understanding UK Legislation Structure

UK legislation falls into two main categories. Primary legislation — Acts of Parliament — is debated and voted on by both Houses of Parliament and receives Royal Assent to become law. These are the headline laws: the Data Protection Act 2018, the Employment Rights Act 1996, the Building Safety Act 2022. Acts set out the broad legal framework and principles.

Secondary legislation — primarily Statutory Instruments (SIs) — is made under powers granted by an Act. SIs provide the detailed rules, thresholds, procedures, and technical requirements that implement the Act's provisions. For every Act that affects your business, there may be five to twenty SIs that contain the operational detail. The Retained EU Law (Revocation and Reform) Act 2023, for example, generated numerous SIs as EU-derived legislation was confirmed, amended, or revoked.

Legislation status is important for interpretation. 'In force' means the law is currently active and enforceable. 'Repealed' means it has been replaced or removed — it no longer applies. 'Amended' means the original text has been modified by subsequent legislation. The API returns the current status, helping you avoid relying on legislation that has been superseded.

Some legislation comes into force on a date different from when it was passed. An Act might receive Royal Assent in June 2026 but specify that its provisions come into force in stages over the following 18 months. The API helps identify whether a piece of legislation is fully in force, partially commenced, or not yet operative.

Consolidated legislation on legislation.gov.uk shows the current version of a law incorporating all amendments — this is the authoritative text. The API provides the URL to the consolidated version, ensuring you are reading the law as it currently stands rather than the original text that may have been significantly amended.

Tracking Parliamentary Bills

A Parliamentary bill is proposed legislation that has not yet become law. Bills go through several stages in both the House of Commons and the House of Lords before receiving Royal Assent. Understanding the stage tells you how likely the bill is to become law and how much it might change before it does.

First Reading is the formal introduction — no debate, no vote. It means the bill exists, but nothing more. Second Reading is the first major debate on the bill's principles. If the Commons votes against at Second Reading, the bill is dead. Committee Stage involves line-by-line examination and amendment — this is where the detail changes. Report Stage allows the whole House to consider and vote on amendments made in committee. Third Reading is the final vote.

After passing one House, the bill goes through the same stages in the other House. If the Lords amend the bill, it returns to the Commons to consider those amendments (known as 'ping-pong' if disagreements persist). Royal Assent is the formal step that turns a bill into an Act.

The API returns the current stage for each bill, enabling you to assess its maturity. A bill at Committee Stage in the Commons is real but may still change significantly. A bill that has passed both Houses and is awaiting Royal Assent is virtually certain to become law in its current form.

For compliance teams, tracking bills is an early warning system. A pending bill that would require new reporting obligations gives your team months to prepare rather than scrambling after the law takes effect. The API makes this monitoring systematic — a monthly query for bills in your sector reveals what is coming down the pipeline.

Putting It Together: Building a Regulatory Picture

The power of the Legal Intelligence endpoint lies in combining enacted law with pending legislation. A search for 'artificial intelligence' might return the existing data protection framework that governs AI systems today, plus a pending AI regulation bill that will impose new requirements tomorrow. This unified view — current obligations plus upcoming changes — is exactly what compliance teams need.

For sector-specific monitoring, regular queries build a regulatory picture over time. A fintech company might query 'financial services regulation' monthly to track new SIs that affect its compliance obligations, plus bills that could change the regulatory landscape. A construction firm might monitor 'building safety' and 'planning' to stay ahead of regulatory changes in both areas.

The relevance scoring helps manage the volume of results. UK legislation is vast — a broad query like 'employment' returns hundreds of results spanning the Employment Rights Act, Working Time Regulations, National Minimum Wage Act, Equality Act, and dozens of sector-specific provisions. The relevance score ranks results so that the most directly relevant legislation appears first, enabling efficient review without reading every result.

Cross-referencing legal data with other endpoints adds business context. A company checking whether a new environmental regulation affects its operations can query the legal endpoint for the regulation, then query the environment endpoint for its postcode to see whether its site falls within the regulated zone. This combination of legal and geographic intelligence is not available from any single government source.

For law firms and legal tech companies, the API provides structured legal data that powers client-facing tools. A law firm's client portal could include a 'regulatory radar' that automatically surfaces new legislation relevant to each client's sector — a high-value service built on a 10-credit API call.

Practical Use for Compliance and Research

For in-house compliance teams, the API replaces manual monitoring of government websites. Instead of checking legislation.gov.uk and the Parliament bill tracker weekly, a scheduled API query surfaces new and changed legislation matching the team's watch list of topics. When a new SI comes into force or a bill advances to a new stage, the compliance team is notified through their existing workflow rather than discovering the change weeks later.

For legal researchers and academics, the API enables systematic study of legislative trends. How many SIs were made under the Building Safety Act 2022 in its first two years? How many bills mentioning 'artificial intelligence' have been introduced since 2023? These questions, which require laborious manual counting on government websites, become simple API queries.

For policy organisations and think tanks, the API supports briefing preparation. When a bill reaches Second Reading, a policy researcher can query the topic to understand the full existing legislative context, identify which earlier Acts the bill amends or supplements, and build a briefing note that shows the bill's place in the broader regulatory landscape.

For journalists covering Parliament, the bills data provides raw material for reporting on legislative progress. Tracking which bills advance, which stall, and which are withdrawn tells a story about government priorities and Parliamentary dynamics.

At 10 credits per call, the Legal Intelligence endpoint costs less than a penny per query. For a compliance team monitoring five topics monthly, the annual cost is negligible compared to the legal intelligence subscriptions that serve the same purpose at thousands of pounds per year.

Try it yourself

Use the free tool or explore the full API with 200 free credits.