Twinkle HubTwinkle Hub

UK parliamentary bills search

uk_search_bills

🇬🇧 United Kingdomread-only

關鍵字 / Keywords: 英國 國會 法案 搜尋 立法 議會 UK parliament bills legislation search commons lords act reading stage royal assent

Scope: UK Parliament · bills across current + historic sessions.

Search parliamentary bills by title keyword. The UK twin of Hong Kong's hk_search_bills.

Args: query: search term matched against bill titles. current_only: True → only bills in the current session. limit: max results (default 20, cap 50).

Returns dict with data: [{bill_id, title, current_house, stage, last_update, is_act, url}, ...]. Feed bill_id into uk_get_bill for stages + sponsors.

License: OGL v3 + Parliamentary Copyright.

Parameters

ParamTypeDescription
querystring—
current_onlyboolean—
limitinteger—
Raw JSON schema
{
  "properties": {
    "query": {
      "default": "",
      "title": "Query",
      "type": "string"
    },
    "current_only": {
      "default": false,
      "title": "Current Only",
      "type": "boolean"
    },
    "limit": {
      "default": 20,
      "title": "Limit",
      "type": "integer"
    }
  },
  "title": "uk_search_billsArguments",
  "type": "object",
  "additionalProperties": false
}

How to call

Starter — params in the table above
uk_search_bills({ query: "…" })