legislation_text

Text of an Act or instrument, or one section, from its legislation.gov.uk URL.

2 credits a call. No key needed to start.

Try it

curl "https://ukdata.reliness.co.uk/v1/legislation_text?url=https://www.gov.uk"

Parameters

  • url (string, required)
  • section (string e.g. 3)
  • maxChars (number)

Use it from an agent

Part of the UK government and law MCP server at https://ukdata.reliness.co.uk/mcp/uk-government-law, or call https://ukdata.reliness.co.uk/v1/legislation_text with GET or POST.

{
  "mcpServers": {
    "uk-data": {
      "url": "https://ukdata.reliness.co.uk/mcp/uk-government-law"
    }
  }
}

Every caller gets 25 free credits a day without a key. For more, get a free key with 300 credits at ukdata.reliness.co.uk.