> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/getting-started/uk-mps.md).

# UK Parliament members in Duaer

In Duaer: UK Parliament: current MPs and peers by name and house, with party, constituency or peerage, and start date. One successful search uses 1 credit.
## What you get

Duaer UK Parliament members looks up current Members of Parliament and members of the House of Lords by name. Commons rows carry the constituency; Lords rows carry the peerage type.

Pick Duaer Data → UK Parliament members in the node creator, or open the [data market](/getting-started/data-market.md). Related: [UK Parliament bills](/getting-started/uk-bills.md), [US Congress members](/getting-started/congress-members.md).

## When to use it

- Find the constituency and party of an MP by surname.
- List current members of the House of Lords with a given name.

## When not to use it

- US Congress members. Use [US Congress members](/getting-started/congress-members.md).
- UK bills. Use [UK Parliament bills](/getting-started/uk-bills.md).

## Search on the canvas

1. Open the node creator and pick Duaer Data → UK Parliament members.
2. Fill Name (such as Smith). Optional: House (commons or lords).
3. Limit defaults to 10, max 20. Execute.

A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.

## Call the API

- GET https://api.duaer.com/v1/data/uk-mps?name=Smith
- Authorization: Bearer <Duaer key>

The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.

## Call skill

Same text as Copy skill.

```
---
name: duaer-uk-mps
description: >-
  Duaer UK Parliament members. UK Parliament: current MPs and peers by name and house, with party, constituency or peerage, and start date.
  One successful search uses 1 Duaer credit.
---

# Duaer UK Parliament members

Duaer UK Parliament members looks up current Members of Parliament and members of the House of Lords by name. Commons rows carry the constituency; Lords rows carry the peerage type.

## When to use

- Find the constituency and party of an MP by surname.
- List current members of the House of Lords with a given name.

## When not to use

- US Congress members. Use https://skills.duaer.com/congress-members.md.
- UK bills. Use https://skills.duaer.com/uk-bills.md.

## Call

`GET https://api.duaer.com/v1/data/uk-mps?name=Smith`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `name` or `house`.

- `name` — Words in the member name, such as Smith.
- `house` — Optional. `commons` or `lords`.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/uk-mps?name=Smith` — current MPs and peers named Smith.
- `GET https://api.duaer.com/v1/data/uk-mps?name=Badenoch&house=commons` — one MP in the House of Commons.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `memberId`, `name`, `party`, `house` — who, which party, Commons or Lords.
- `constituency` or `peerage` — the seat for an MP, or the peerage type for a peer.
- `memberSince`, `portrait` — start of the current membership and a portrait link.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/uk-bills.md — Duaer UK Parliament bills
- https://skills.duaer.com/congress-members.md — Duaer US Congress members

```
## Questions

### How many credits does a UK Parliament members search use in Duaer?

One credit when Duaer returns rows. A search with no rows or an error uses 0.

### Does Duaer UK Parliament members return former members?

No. Duaer returns current MPs and current members of the House of Lords only.

## Related

- [UK Parliament bills in Duaer](https://doc.duaer.com/getting-started/uk-bills.md)
- [US Congress members in Duaer](https://doc.duaer.com/getting-started/congress-members.md)

