{"uid":"cap_NW8Ij1Gi2hKAwI0KqjwlL","slug":"maxwell-x402-uk-legislation-lookup-219d4e9d","name":"Maxwell x402 — UK Legislation Lookup","description":"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.","url":"https://api.maxwellinternational.ai/v1/gov/gb/legislation?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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..."}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RDMj0UQfi_nJ584vjOuUV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Check if a UK Act is repealed","prompt":"Is the Data Protection Act 2018 still in force? Look it up on legislation.gov.uk and tell me its official ID, dates, and repeal status."},{"title":"Search UK legislation by topic","prompt":"Search UK legislation for acts with 'environment' in the title and give me a list of results with their IDs and whether they're currently in force."},{"title":"Retrieve EU decision adopted into UK law","prompt":"Fetch the details for UK legislation ID 'eudn/2020/1745' — I need the full title, type, dates, and the official legislation.gov.uk link."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:28:35.310Z","isFirstParty":false,"canonicalSlug":"maxwell-x402-uk-legislation-lookup-219d4e9d"}