> 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-bills.md).

# UK Parliament bills in Duaer

In Duaer: UK Parliament: bills by title words and house, newest update first, with the current stage and next sitting. One successful search uses 1 credit.
## What you get

Duaer UK Parliament bills lists bills from the UK Parliament Bills API, most recently updated first. Each row says whether the bill is in progress, an Act, defeated, or withdrawn, with its current stage.

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

## When to use it

- Follow energy bills moving through the House of Commons.
- See which bills the House of Lords is working on now.

## When not to use it

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

## Search on the canvas

1. Open the node creator and pick Duaer Data → UK Parliament bills.
2. Fill Words (such as energy). 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-bills?words=energy
- 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-bills
description: >-
  Duaer UK Parliament bills. UK Parliament: bills by title words and house, newest update first, with the current stage and next sitting.
  One successful search uses 1 Duaer credit.
---

# Duaer UK Parliament bills

Duaer UK Parliament bills lists bills from the UK Parliament Bills API, most recently updated first. Each row says whether the bill is in progress, an Act, defeated, or withdrawn, with its current stage.

## When to use

- Follow energy bills moving through the House of Commons.
- See which bills the House of Lords is working on now.

## When not to use

- US bills. Use https://skills.duaer.com/congress-bills.md.
- Members of Parliament. Use https://skills.duaer.com/uk-mps.md.

## Call

`GET https://api.duaer.com/v1/data/uk-bills?words=energy`

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 `words` or `house`.

- `words` — Words in the bill title, such as energy.
- `house` — Optional. `commons` or `lords`: the house the bill is in now.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/uk-bills?words=energy` — recently updated bills about energy.
- `GET https://api.duaer.com/v1/data/uk-bills?house=lords` — bills now in the House of Lords.

## Result

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

- `billId`, `status` — bill number and In progress, Act, Defeated, or Withdrawn.
- `stage`, `stageHouse`, `nextSitting` — current stage, its house, and the next sitting date.
- `currentHouse`, `originatingHouse`, `lastUpdate` — where the bill is, where it started, and the last change.

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-mps.md — Duaer UK Parliament members
- https://skills.duaer.com/congress-bills.md — Duaer US Congress bills

```
## Questions

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

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

### What does status mean in Duaer UK Parliament bills?

In progress means the bill is still moving, Act means it received Royal Assent, Defeated means a house voted it down, and Withdrawn means it was dropped.

## Related

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

