Duaer

入门

在 Duaer 里查英国议会议员

在 Duaer 里:英国议会:按姓名与议院查现任下议院议员和上议院议员,含党派、选区或爵位类型与任职起始日。一次成功查询用 1 额度。

能拿到什么

Duaer 数据市场里的「英国议会议员」:英国议会:按姓名与议院查现任下议院议员和上议院议员,含党派、选区或爵位类型与任职起始日。查到结果时用 1 额度,结果交给数字组织的下一个节点。

从节点创建器选 Duaer 数据 → 英国议会议员,或打开 数据市场。相关:英国议会法案、美国国会议员。

适合做什么

  • 按姓氏查某位下议院议员的选区与党派。
  • 列出某个名字的现任上议院议员。

在画布里检索

  1. 打开节点创建器,选 Duaer 数据 → UK Parliament members。
  2. 填 Name(如 Smith);House(commons 或 lords)可选。
  3. Limit 默认 10,最大 20。执行。

查到结果才扣 1 额度;没有结果、输入有误或上游失败都不扣。

用 API 调用

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

下方是与数据市场「复制技能」相同的英文技能,含参数、示例与返回字段。

调用技能(英文)

与数据市场「复制技能」一致。

---
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

常见问题

Duaer 的英国议会议员检索扣多少额度?

查到结果时扣 1 额度;没有结果或出错不扣。

Duaer 英国议会议员会返回已卸任的议员吗?

不会。Duaer 只返回现任的下议院议员和上议院议员。

同组