← UK Legislation
legal by fourzerotwo
Act or instrument overview
Title, long title, enactment/made date, status, extent, count of outstanding changes and the full table of contents.
Act or instrument overview Free
Title, long title, enactment/made date, status, extent, count of outstanding changes and the full table of contents.
- cost
- Free then $0.003 / call
- MCP tool
- uk-legislation__item
- method
- GET
Free up to 50 calls a day over MCP (500 with a free key), then $0.003 per call by card credit or USDC. Free key · Pay by card
GET https://fourzerotwo.si/v1/uk-legislation/item
| Param | Type | Description |
|---|---|---|
| type | string | Legislation type code (ukpga, uksi, asp, ssi, wsi, nisr…; see types) |
| year | string | Year (or regnal year for pre-1963, e.g. Eliz2/10-11) |
| number | integer | Chapter or SI number |
# free: send a free key from https://fourzerotwo.si/free curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-legislation/item?type=ukpga&year=2018&number=12" # no key: returns 402 with the price, for x402 agents curl -i "https://fourzerotwo.si/v1/uk-legislation/item?type=ukpga&year=2018&number=12"
by fourzerotwo
Report this endpoint
Use it from an AI agent (MCP)
Add the server once, then ask for this data in plain English. The agent finds the endpoint with search_apis and runs it with call_api.
{
"mcpServers": {
"fourzerotwo": { "type": "http", "url": "https://fourzerotwo.si/mcp" }
}
}
# the call the agent makes
call_api {"tool": "uk-legislation__item", "arguments": {"type":"ukpga","year":"2018","number":12}}
More from UK Legislation
- Amendments made to it — Most recent 50 changes (substitutions, repeals, insertions…) made by later legislation, with the amending prov...
- Newly published legislation — The newest Acts and instruments published, optionally of one type.
- Legislation type codes — Type codes and what they mean.
- Search legislation — Find Acts and instruments by title words or full text, optionally by type and year.
- Provision text — Plain numbered text of one section, regulation, article or schedule paragraph, as it stands today or on a past...
Contains public sector information from legislation.gov.uk licensed under the Open Government Licence v3.0.