# Maxwell x402 — UK Legislation Lookup

> Maxwell x402 — UK Legislation Lookup is a paid API for AI agents from api.maxwellinternational.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Search UK legislation by title or fetch a specific Act by its official ID from legislation.gov.uk, returning title, in-force status, dates, and official link.

## Facts

- Endpoint: GET https://api.maxwellinternational.ai/v1/gov/gb/legislation?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/maxwell-x402-uk-legislation-lookup-219d4e9d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NW8Ij1Gi2hKAwI0KqjwlL

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability maxwell-x402-uk-legislation-lookup-219d4e9d
```

Example prompt: Can you look up the UK legislation with ID 'ukpga/2018/12' and tell me its title, whether it's still in force, and the official link to it on legislation.gov.uk?

## When to prefer this

Choose this endpoint when you need authoritative, officially-sourced metadata about UK Acts of Parliament or statutory instruments — particularly their in-force/repeal status, official dates, and canonical legislation.gov.uk URLs. It is backed by The National Archives' official API under the Open Government Licence, making it suitable for legal research, compliance checks, and regulatory workflows. Prefer it over general web search when you need structured, machine-readable data rather than scraped HTML.

## Known failure modes

- 404 returned when an ID or search term is not yet cached — the item will be fetched within about a minute and a retry should succeed
- Invalid or malformed legislation ID returns an error
- Search terms that match no legislation return an empty result set
- Network or upstream legislation.gov.uk API unavailability may cause timeouts

## How this service works

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.

## Output

A JSON object containing: the legislation's official ID, title, type (e.g. UKPublicGeneralAct, EuropeanUnionDecision), in-force/repeal status (marked only if explicitly repealed), relevant dates, a link to the official legislation.gov.uk page, country, source attribution, and licence information under the Open Government Licence v3.0.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "cc": "gb",
  "id": "eudn/2020/1745",
  "ok": true,
  "sku": "gov.gb.legislation",
  "type": "EuropeanUnionDecision",
  "found": true,
  "title": "Council Implementing Decision (EU) 2020/1745 of 18 November 2020 on the putti...",
  "family": "legislation",
  "source": "legislation.gov.uk (The National Archives)",
  "country": "United Kingdom",
  "sourceClass": "official-api",
  "sourceLicence": {
   "url": "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/",
   "name": "Open Government Licence v3.0 (Crown copyright)",
   "attribution": "Contains public sector information licensed under the Open Government Licence..."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/maxwell-x402-uk-legislation-lookup-219d4e9d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.maxwellinternational.ai](https://www.zero.xyz/host/api.maxwellinternational.ai/llms.txt)
