gb_get_act
Fetch UK legislation metadata from legislation.gov.uk by reference, enabling retrieval of Acts and Statutory Instruments with optional point-in-time versions.
Instructions
Fetch UK legislation metadata from legislation.gov.uk by reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference | Yes | a reference like ``"ukpga/2018/12"`` (Data Protection Act 2018), ``"uksi/2019/419"``, ``"asp/2015/1"``, or a full legislation.gov.uk URL. An optional point-in-time date suffix (``/2026-06-19``) selects a specific revised version. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isbn | No | ||
| year | Yes | ||
| title | No | ||
| number | Yes | ||
| eli_uri | Yes | ||
| doc_type | Yes | ||
| made_date | No | ||
| publisher | No | ||
| source_url | Yes | ||
| description | 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. | |
| date_modified | No | ||
| enactment_date | No | ||
| document_status | No | ||
| restrict_extent | No | ||
| document_category | No | ||
| document_main_type | No | ||
| restrict_start_date | No | ||
| human_readable_citation | Yes |