← UK Legislation
legal by fourzerotwo
Search legislation
Find Acts and instruments by title words or full text, optionally by type and year.
Search legislation Free
Find Acts and instruments by title words or full text, optionally by type and year.
- cost
- Free then $0.002 / call
- MCP tool
- uk-legislation__search
- method
- GET
Free up to 50 calls a day over MCP (500 with a free key), then $0.002 per call by card credit or USDC. Free key · Pay by card
GET https://fourzerotwo.si/v1/uk-legislation/search
| Param | Type | Description |
|---|---|---|
| title? | string | Words in the title |
| text? | string | Words anywhere in the text |
| type? | string | Type code (see types) |
| year? | integer | Year |
| page? | integer | Results page (20 per page) |
# free: send a free key from https://fourzerotwo.si/free curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/uk-legislation/search" # no key: returns 402 with the price, for x402 agents curl -i "https://fourzerotwo.si/v1/uk-legislation/search"
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__search", "arguments": {"title":"data protection","type":"ukpga"}}
More from UK Legislation
- Act or instrument overview — Title, long title, enactment/made date, status, extent, count of outstanding changes and the full table of con...
- 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.
- 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.