Skip to content
Fourohtwo

Laws of the United Kingdom from legislation.gov.uk

api.maxwellinternational.ai/v1/gov/gb/legislation

Laws of the United Kingdom from legislation.gov.uk: search by title, or fetch one act by its official id, with title, in-force status, dates and the official link. In-force status is given only when an act is marked repealed; otherwise it is unknown. An id or search not yet cached answers 404, not charged, and is fetched within about a minute.

BaseSolanaUnchecked
GEThttps://api.maxwellinternational.ai/v1/gov/gb/legislation

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.maxwellinternational.ai/v1/gov/gb/legislation?id=ukpga%2F2018%2F12");
console.log(await res.json());

Example input

{
  "id": "ukpga/2018/12"
}

More from Maxwell x402