gb_search
Search UK legislation from legislation.gov.uk by text, document type, and year to obtain persistent ELI URIs and verifiable citations.
Instructions
Search UK legislation on legislation.gov.uk.
Maps to the official Atom search feed (/all/data.feed or /{doc_type}/data.feed,
optionally with ?text=...&year=...&page=...). Each item gets eli_uri,
human_readable_citation, source_url (per Art. 4 CONSTITUTION).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ``SearchQuery`` - text, doc_type (e.g. 'ukpga', 'uksi', 'asp'), year, page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| query_echo | No | ||
| dataset_note | No | legislation.gov.uk has no native /eli/ namespace; eli_uri carries the UK's own persistent identifier URI (id.../{type}/{year}/{number}) instead of a fabricated ELI path. Revised ('as amended') text reflects the effective date shown in restrict_start_date; always check for in-force / pending amendments. | |
| total_estimate | Yes |