ParseForge Scrapers

UK Parliament Members Scraper

parseforge/members-uk-parliament-scraper

BusinessAutomationOther

Scrapes UK Parliament members from the official directory. Returns name, house, party, gender, status, constituency, and optional biography and contact details.

Run this scraper See the API call
Total users
2
Monthly active
1
Total runs
109
Bookmarked
0
Rating
Not rated yet
Last modified
12 days ago

Overview

ParseForge

UK Parliament Members Scraper

Scrape every UK MP and peer from the official Parliament directory, with biography and contact details. Filter by house, party, gender, status, or constituency, and export clean rows to CSV, JSON, Excel, or XML.

The UK Parliament website lists every current and former MP and peer, but browsing it member by member is slow and the data is not exportable. This Actor reads the public directory directly, applies your filters as it goes, and returns each match in one fixed schema. No API key or registration is needed.

Who uses it What they scrape UK Parliament for
Public affairs consultants Build a current list of MPs and peers for stakeholder mapping
Journalists and researchers Pull contact details and committee roles for a story
NGOs and campaigners Identify MPs by constituency or party for targeted outreach
Data analysts Create a structured dataset of Parliament membership over time
Academic researchers Study representation by gender, party, or chamber

What it does

This Actor collects UK Parliament members by name, house, party, gender, status, or constituency, and returns each one as a flat row with optional biography and contact details.

  • ๐Ÿ›๏ธ Both chambers: House of Commons MPs and House of Lords peers, together or separately.
  • ๐Ÿ” Flexible filters: name substring, party, gender, current or former status, and constituency.
  • ๐Ÿ“‡ Detailed profiles: optional biography, committees, posts, and contact details per member.
  • ๐Ÿ“Š Structured output: one flat row per member, ready for CSV, JSON, Excel, or XML.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with UK Parliament data

๐Ÿ—ณ๏ธ Build a stakeholder map.

A public affairs team runs the Actor with house=Commons and party filters to get a current list of MPs with contact details for outreach.

๐Ÿ“ฐ Research a story.

A journalist filters by constituency to find the local MP and pulls their biography and committee roles for background.

๐Ÿ“ˆ Track representation.

An academic researcher collects all members with gender and party to analyse diversity in Parliament over time.

๐Ÿ“‹ Update a CRM.

An NGO runs the Actor weekly with membershipStatus=current to refresh their database of MPs and peers.

Why choose this scraper

What you get
Official source Data comes straight from the UK Parliament public directory
No API limits Reads the public pages directly, no key or rate limit to manage
Historical coverage Includes former members, not current ones
Rich enrichment Optional biography and contact details per member

How it compares

This Actor offers the same core directory data as the other UK Parliament scraper, with the added option to enrich each member with biography and contact details.

Feature ParseForge UK Parliament Members Scraper - MP and Peer Data
Name, party, house, status, dates, gender, thumbnail Yes Yes
Constituency filter Yes Not listed
Biography and contact details Yes Not listed
Former members included Yes Not listed
Party filter Yes Not listed

Configure the run

Drive the Actor with a name substring, house, party, gender, membership status, or constituency, and filters run as each member is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

{
 "maxItems": 10
}

A larger pull:

{
 "maxItems": 200
}

Pricing

Pay-per-result: $0.031 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $3.10
1,000 results $31.00
10,000 results $310.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the UK Parliament Members Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to UK Parliament through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/members-uk-parliament-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check your filters. The name and constituency fields are substring matches, so a typo or overly specific value can return nothing. Try clearing filters or broadening the substring.

Why is the run slow?

If 'Fetch Detailed Profile' is enabled, the Actor makes an extra request per member. Disable it for a faster run, or reduce 'Maximum members'.

Why are some fields empty?

Not all members have every field populated on the Parliament website. For example, Lords do not have a constituency, and some former members may lack contact details.

Can I get only current MPs?

Yes. Set 'Current or Former' to 'Currently sitting members' and 'House' to 'House of Commons (MPs)'.

FAQ

Question Answer
Does this include the House of Lords? Yes. Set the House filter to 'House of Lords (peers)' to get only peers, or leave it on 'Both Houses' to get MPs and peers together.
Can I get former members? Yes. The 'Current or Former' filter defaults to 'All (current + former)', so historical members are included unless you restrict it.
What does 'Fetch Detailed Profile' do? When enabled, the Actor makes an extra request per member to retrieve their biography, committees, posts, and contact details. It is slower but gives a much richer record.
How do I filter by constituency? Use the 'Constituency Substring' field. It only applies to House of Commons members and matches any part of the constituency name.
Is there a rate limit? No. The Actor reads the public Parliament directory directly, so there is no API key or rate limit to manage.
What format is the output? Each member is returned as a flat row. You can export the dataset to CSV, JSON, Excel, or XML from Apify.
Can I filter by party? Yes. The Party filter includes all major parties, crossbench, bishops, and non-affiliated peers.
Does it include contact details? Only if you enable 'Fetch Detailed Profile'. The basic run returns name, house, party, gender, status, and constituency.
How many members can I collect? You can set 'Maximum members' up to 1,000,000 per run. The full directory is around 1,400 current members plus former ones.
Is the data up to date? The Actor reads the live Parliament website, so it reflects the current directory at the time of the run.

Related actors

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by UK Parliament. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
name string Substring match on the member's display name. Leave empty to browse all members. not set
house string (3 options) Restrict to one chamber. Default returns both. not set
party string (21 options) Restrict to a single party. not set
gender string (3 options) Filter by recorded gender. not set
membershipStatus string (3 options) Filter to currently sitting members, former members, or include both. Defaults to 'all' so historical members are included. all
constituency string Substring match on the Commons constituency name (ignored for Lords). not set
fetchDetails boolean When enabled, makes an extra request per member to retrieve biography (committees, posts, representations) and contact details. Slower but much richer output. true
maxItems integer How many members to collect per run. 10

Pricing

from $23.25 per 1,000 results

Charged forWhat it isPrice each
result Single result in the default dataset. $0.02325 to $0.031

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST ยท run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~members-uk-parliament-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run UK Parliament Members Scraper on Apify All scrapers