# UK Parliament Bills Search

> UK Parliament Bills Search is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-21).

Search or list UK Parliament bills with current legislative stage, house, Act/defeated/withdrawn status, and last update

## Facts

- Endpoint: GET https://saylorinnovations.com/api/uk/bills?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uk-parliament-bills-search-1b518ba0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F-E7zWKLQ_bGTM0VAFFTF

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability uk-parliament-bills-search-1b518ba0
```

Example prompt: Can you search UK Parliament bills for anything related to 'renters reform' and show me the current stage, which house it's in, and whether it became an Act?

## When to prefer this

Use this endpoint when you need structured, up-to-date information about UK Parliament bills including legislative status flags (Act, defeated, withdrawn) and stage tracking. It is particularly valuable for agents that need to track the progress of specific legislation by keyword or monitor recent parliamentary activity. Prefer this over generic web search when you need machine-readable structured bill data with consistent status fields.

## Known failure modes

- No bills found for the search query — returns empty bills array with count 0
- Limit parameter out of range (must be 1-25) — may return default of 8 or an error
- Query string too vague returning many unrelated results — total_matches may be high but results loosely relevant
- API unavailable or rate limited — returns HTTP error status
- Payment not processed — x402 payment required error

## How this service works

UK Parliament bills with current stage, house, whether it became an Act, defeated or withdrawn flags, last update and link - search by title or list latest

## Output

A JSON object containing an array of bills, each with id, title, current house, legislative stage, stage_house, originating_house, is_act boolean, defeated boolean, withdrawn boolean, last_update timestamp, and canonical URL. Also includes count of items returned, total_matches before limit, the interpreted query, and the data source attribution.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "q": {
       "type": "string",
       "description": "optional bill title text; omit for the most recently updated bills"
      },
      "limit": {
       "type": "string",
       "description": "optional 1-25, default 8"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "bills"
     ],
     "properties": {
      "bills": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "description": "Identifier of the record"
         },
         "url": {
          "description": "Canonical URL"
         },
         "house": {
          "type": [
           "string",
           "null"
          ],
          "description": "House the bill is currently in"
         },
         "stage": {
          "type": [
           "string",
           "null"
          ],
          "description": "Current legislative stage"
         },
         "title": {
          "description": "Title"
         },
         "is_act": {
          "description": "True when this is act"
         },
         "defeated": {
          "type": [
           "boolean",
           "null"
          ],
          "description": "True when the bill was defeated"
         },
         "withdrawn": {
          "type": [
           "boolean",
           "null"
          ],
          "description": "True when withdrawn"
         },
         "last_update": {
          "description": "Last update"
         },
         "stage_house": {
          "description": "Stage house"
         },
         "originating_house": {
          "description": "Originating house"
         }
        }
       },
       "description": "Bills with id, title, house, current stage, Act or defeated flags, last update and link"
      },
      "count": {
       "type": "number",
       "description": "Number of items
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uk-parliament-bills-search-1b518ba0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
