# UK Parliament Bills Tracker: Stages, Sponsors & Royal Assent (`pankajbhatia/uk-parliament-bills`) Actor

Track bills in the UK Parliament from the official Bills API: title, long title, summary, type, current stage and house, next sitting, sponsors and departments, Royal Assent status. Filter by keyword, house, status.

- **URL**: https://apify.com/pankajbhatia/uk-parliament-bills.md
- **Developed by:** [Pankaj Bhatia](https://apify.com/pankajbhatia) (community)
- **Categories:** News, Business
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 bills

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## UK Parliament Bills Tracker: Stages, Sponsors & Royal Assent

Track **bills in the UK Parliament** from the official **UK Parliament Bills API**. It covers government bills, private members' bills, Lords bills, hybrid bills and private bills. Each row has the **bill ID**, **short title** (and any former title), **bill type**, originating and **current house**, **current stage** (for example second reading, committee stage, report stage or Royal Assent), the **next or last sitting date**, whether it has become an **Act**, defeated or withdrawn status, session, and **last update** time. With details turned on, you also get the **long title**, **summary**, **sponsors** with their party, **sponsoring departments** and promoters. Each row links to the bill's page on bills.parliament.uk. You can filter by **keyword**, **current house** and **status** (all, active or Acts). No login or API key is needed.

### Who is it for?

- **Public affairs, lobbying and policy teams** following legislation that affects their sector.
- **Law firms and compliance teams** watching for new Acts and amendments.
- **Journalists and researchers** following bills through Parliament.
- **Civic tech and newsletter builders** who need a clean legislation feed.

### How to use it

1. Optionally enter **search terms** that appear in the bill title, such as housing, energy or data. Leave empty for all bills.
2. Choose the **current house** and **status**.
3. Keep **Include details** on for long titles, summaries and sponsors, set **Max results per search term** and click **Start**. The most recently updated bills come first.

### Input example

```json
{"searchTerms": ["energy", "planning"], "status": "active", "includeDetails": true, "maxResultsPerSearch": 100}
```

### Output example

```json
{"billId": 4305, "shortTitle": "Building Safety (Remediation of Unsafe Cladding etc) Bill", "billType": "Government Bill", "currentHouse": "Commons", "currentStage": "Committee stage", "nextOrLastSitting": "2026-11-12", "isAct": false, "sponsors": "Angela Rayner (Labour)", "url": "https://bills.parliament.uk/bills/4305"}
```

### How much does it cost?

Pay-per-event: a small fee **per bill** returned, plus a tiny per-run start fee. There is no subscription and no separate platform usage cost. For example, 1,000 bills cost about $0.50. Searches with no matches and error rows are **not charged**. Use **Max results per search term** or **Maximum cost per run** to cap your spending.

### Use it through the API, integrations or AI agents

Run it from the Apify API, on a schedule, or connect it to Make, Zapier, n8n or Google Sheets. AI agents can find and call it through the Apify MCP server. Output is clean JSON with the same fields on every run.

### FAQ

**Is it legal?** Yes. UK Parliament publishes bill data through an official public API under the Open Parliament Licence. Sponsors are Members of Parliament acting in their public role. The tool does not collect contact details of bill agents. It is not affiliated with UK Parliament.

**How fresh is it?** The API updates throughout the day as bills move through stages.

**Does it include the bill text?** No. It gives metadata and summaries. Follow the link for the full text and amendments.

**Can I track bills over time?** Yes. Schedule the tool daily and compare currentStage values between runs.

### More tools from this developer

- [SAM.gov Contract Opportunities Finder & Bid Alerts](https://apify.com/pankajbhatia/sam-gov-contract-opportunities): federal contract opportunities and bid alerts
- [Sitemap & URL Extractor](https://apify.com/pankajbhatia/sitemap-url-extractor): get every URL of a website from its sitemaps
- [Website to Markdown for AI & RAG](https://apify.com/pankajbhatia/website-to-markdown): turn web pages into clean Markdown for LLMs
- [Tech Stack Detector](https://apify.com/pankajbhatia/tech-stack-detector): find what any website is built with
- [Apple App Store Reviews Scraper](https://apify.com/pankajbhatia/app-store-reviews): App Store reviews and ratings for any app
- [ATS Jobs Scraper](https://apify.com/pankajbhatia/ats-jobs-scraper): jobs from Greenhouse, Lever, Ashby, Workable and more
- [Website Screenshot](https://apify.com/pankajbhatia/website-screenshot): full-page, mobile and PDF screenshots in bulk
- [PDF to Text & Markdown Extractor](https://apify.com/pankajbhatia/pdf-text-extractor): extract text from PDFs for AI and search
- [Domain WHOIS, DNS & SSL Checker](https://apify.com/pankajbhatia/domain-whois-dns-ssl-checker): bulk domain, DNS, email security and SSL checks
- [SEO Meta Tags & On-Page Audit](https://apify.com/pankajbhatia/seo-meta-tags-checker): bulk on-page SEO audit with fixes
- [Bulk URL Status & Broken Link Checker](https://apify.com/pankajbhatia/url-status-broken-link-checker): status codes, redirect chains and broken links
- [RSS & Atom Feed Reader](https://apify.com/pankajbhatia/rss-feed-reader): merge and filter many news feeds
- [Hacker News Scraper](https://apify.com/pankajbhatia/hacker-news-scraper): HN stories, comments and Who is hiring jobs
- [Academic Paper Search](https://apify.com/pankajbhatia/academic-paper-search): papers from Crossref, arXiv and PubMed
- [SEC EDGAR Filings & Financials](https://apify.com/pankajbhatia/sec-edgar-filings-financials): 10-K, 10-Q, 8-K filings and company financials
- [Apple Podcasts Scraper](https://apify.com/pankajbhatia/apple-podcasts-scraper): podcast details and full episode lists
- [App Store Top Charts & App Search](https://apify.com/pankajbhatia/app-store-top-charts): top free, paid and grossing app rankings
- [ClinicalTrials.gov Scraper](https://apify.com/pankajbhatia/clinicaltrials-gov-scraper): search and export clinical trials
- [USAspending Federal Awards](https://apify.com/pankajbhatia/usaspending-federal-awards): who won federal contracts and grants
- [Grants.gov Opportunities](https://apify.com/pankajbhatia/grants-gov-opportunities): open and forecasted federal grants
- [Weather Forecast & Alerts](https://apify.com/pankajbhatia/weather-forecast-alerts): 9-day forecasts for any city, plus U.S. alerts
- [EU TED Tenders Scraper](https://apify.com/pankajbhatia/ted-eu-tenders-scraper): European public procurement notices
- [Bulk Domain Availability Checker](https://apify.com/pankajbhatia/bulk-domain-availability-checker): check which domains are free to register
- [Product Recalls Scraper](https://apify.com/pankajbhatia/product-recalls-fda-cpsc-nhtsa): FDA, CPSC and NHTSA vehicle recalls
- [Federal Register Scraper](https://apify.com/pankajbhatia/federal-register-documents): U.S. rules, notices and comment deadlines
- [npm & PyPI Package Stats](https://apify.com/pankajbhatia/npm-pypi-package-stats): downloads, versions and licenses for packages
- [Open Library Books Scraper](https://apify.com/pankajbhatia/open-library-books-scraper): book search and ISBN lookup
- [UK Contracts Finder Scraper](https://apify.com/pankajbhatia/uk-contracts-finder-scraper): UK public tenders and contract awards
- [Wikipedia Scraper](https://apify.com/pankajbhatia/wikipedia-scraper): articles, full text and page views
- [Currency Exchange Rates (ECB)](https://apify.com/pankajbhatia/currency-exchange-rates-ecb): official latest and historical FX rates
- [Barcode Product Lookup](https://apify.com/pankajbhatia/barcode-product-lookup): EAN/UPC barcodes to product and nutrition data
- [Global Company Registry Search (LEI)](https://apify.com/pankajbhatia/gleif-lei-company-search): official company records and parents
- [VIN Decoder (NHTSA)](https://apify.com/pankajbhatia/vin-decoder-nhtsa): bulk vehicle specs from VINs
- [PubMed Scraper](https://apify.com/pankajbhatia/pubmed-scraper): biomedical articles and abstracts
- [US Address Geocoder (Census)](https://apify.com/pankajbhatia/us-census-address-geocoder): lat/long, county and tract for U.S. addresses
- [Remote Jobs Aggregator](https://apify.com/pankajbhatia/remote-jobs-aggregator): remote jobs from Remote OK, Jobicy and Arbeitnow
- [Hugging Face Hub Scraper](https://apify.com/pankajbhatia/hugging-face-hub-scraper): AI models, datasets and Spaces
- [World Bank Indicators](https://apify.com/pankajbhatia/world-bank-indicators): GDP, population and 1,400+ indicators
- [TV Shows & Episodes Scraper](https://apify.com/pankajbhatia/tv-shows-episodes-scraper): TV shows, episodes, cast and schedules
- [WordPress Plugins & Themes Scraper](https://apify.com/pankajbhatia/wordpress-plugins-themes-scraper): plugin and theme installs and ratings
- [US Nonprofit Search (IRS)](https://apify.com/pankajbhatia/us-nonprofit-search-irs): tax-exempt organizations with size and category
- [Music Metadata Scraper (MusicBrainz)](https://apify.com/pankajbhatia/musicbrainz-music-metadata): artists, albums, tracks and ISRCs
- [Package Stats: crates.io, RubyGems, Packagist & NuGet](https://apify.com/pankajbhatia/package-registry-stats): Rust, Ruby, PHP and .NET package stats
- [FDA Drug Labels & NDC Scraper](https://apify.com/pankajbhatia/fda-drug-labels-ndc): official drug labels and NDC codes
- [Public Holidays API](https://apify.com/pankajbhatia/public-holidays-api): holidays and long weekends for 100+ countries
- [US Treasury Rates](https://apify.com/pankajbhatia/us-treasury-rates-yields): Treasury yield curves, T-bill rates and national debt
- [USGS Earthquake Search](https://apify.com/pankajbhatia/usgs-earthquake-search): worldwide earthquakes by area and magnitude
- [NOAA Tides & Water Levels](https://apify.com/pankajbhatia/noaa-tides-currents): tide predictions and water data for U.S. coasts
- [UK Police Crime Data](https://apify.com/pankajbhatia/uk-police-crime-data): UK street-level crimes by postcode
- [UK Food Hygiene Ratings](https://apify.com/pankajbhatia/uk-food-hygiene-ratings): official UK food hygiene ratings
- [Open Source Vulnerability Scanner](https://apify.com/pankajbhatia/open-source-vulnerability-scanner): known vulnerabilities for open-source packages
- [FDIC Bank Data](https://apify.com/pankajbhatia/fdic-bank-data): US banks, branches, financials and failures
- [FEMA Disaster Declarations](https://apify.com/pankajbhatia/fema-disaster-declarations): US federal disaster declarations and aid
- [US Hospital & Nursing Home Ratings](https://apify.com/pankajbhatia/us-healthcare-facility-ratings): Medicare Care Compare facility ratings
- [EPA Facility Compliance](https://apify.com/pankajbhatia/epa-facility-compliance): EPA violations, inspections and penalties
- [US Building Permits](https://apify.com/pankajbhatia/us-building-permits): new building permits in six US cities
- [US Restaurant Inspections](https://apify.com/pankajbhatia/us-restaurant-inspections): NYC, Chicago and Austin restaurant health grades
- [UK House Prices](https://apify.com/pankajbhatia/uk-house-prices-land-registry): Land Registry sold prices for England and Wales
- [Car Safety Ratings & Complaints](https://apify.com/pankajbhatia/car-safety-ratings-complaints): NHTSA crash-test stars and owner complaints
- [Nordic Company Registry](https://apify.com/pankajbhatia/nordic-company-registry): Norway and Finland company search
- [US Schools Directory](https://apify.com/pankajbhatia/us-schools-directory): NCES public, private and college data
- [Firefox Add-ons & VS Code Extensions](https://apify.com/pankajbhatia/browser-code-extensions-scraper): Firefox add-ons and Open VSX extensions
- [UK Flood Warnings & River Levels](https://apify.com/pankajbhatia/uk-flood-warnings-river-levels): live England flood warnings and river levels
- [Airports Database](https://apify.com/pankajbhatia/airports-database): worldwide airports, codes and runways
- [US Lobbying Disclosures](https://apify.com/pankajbhatia/us-lobbying-disclosures): federal LDA lobbying filings
- [ENERGY STAR Certified Products](https://apify.com/pankajbhatia/energy-star-certified-products): certified appliance and electronics models with specs
- [Car Fuel Economy & Specs (EPA)](https://apify.com/pankajbhatia/car-fuel-economy-epa): EPA MPG, EV range and CO2 for 50,000+ vehicles
- [Museum Art Collections](https://apify.com/pankajbhatia/museum-art-collections): artworks and images from the Met, Chicago and Cleveland
- [NIH Research Grants](https://apify.com/pankajbhatia/nih-research-grants): NIH-funded research projects and award amounts
- [UK Find a Tender Notices](https://apify.com/pankajbhatia/uk-find-a-tender-notices): UK public tenders and contract awards
- [FDA Medical Device Clearances](https://apify.com/pankajbhatia/fda-medical-device-clearances): FDA 510(k) clearances and PMA approvals
- [CanadaBuys Tenders & Awards](https://apify.com/pankajbhatia/canadabuys-tenders-awards): Government of Canada tenders and contract awards
- [AusTender Contract Notices](https://apify.com/pankajbhatia/austender-contract-notices): Australian Government contracts
- [EU Clinical Trials (CTIS)](https://apify.com/pankajbhatia/eu-clinical-trials-ctis): clinical trials authorised in the EU/EEA
- [US City Crime Data](https://apify.com/pankajbhatia/us-city-crime-data): crime incidents from 5 big US cities
- [US Healthcare Organizations (NPI)](https://apify.com/pankajbhatia/npi-healthcare-organizations): hospitals, clinics and pharmacies from the NPI Registry
- [CFTC Commitments of Traders](https://apify.com/pankajbhatia/cftc-commitments-of-traders): weekly futures positioning reports
- [Singapore HDB Resale Prices](https://apify.com/pankajbhatia/singapore-hdb-resale-prices): every HDB resale flat transaction since 2017
- [Related Keywords Finder](https://apify.com/pankajbhatia/related-keywords-finder): related words, synonyms and suggestions for SEO

# Actor input Schema

## `searchTerms` (type: `array`):

Bill title contains, e.g. housing, energy, data. Empty = all bills.

## `currentHouse` (type: `string`):

Where the bill is now.

## `status` (type: `string`):

Filter by progress.

## `includeDetails` (type: `boolean`):

Add long title, summary, sponsors and departments (one extra request per bill).

## `maxResultsPerSearch` (type: `integer`):

Most recently updated first.

## Actor input object example

```json
{
  "searchTerms": [],
  "currentHouse": "All",
  "status": "all",
  "includeDetails": true,
  "maxResultsPerSearch": 50
}
```

# Actor output Schema

## `results` (type: `string`):

One row per UK Parliament bill.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerms": [],
    "maxResultsPerSearch": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("pankajbhatia/uk-parliament-bills").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchTerms": [],
    "maxResultsPerSearch": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("pankajbhatia/uk-parliament-bills").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [],
  "maxResultsPerSearch": 50
}' |
apify call pankajbhatia/uk-parliament-bills --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pankajbhatia/uk-parliament-bills"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hZ3DTEme58g23Hmly/builds/Z4aEvwlYp10BZkIgo/openapi.json
