National law·United Kingdom·not an EU member state

§ UK — National Law Desk

UK law,
as an API.

UK legislation from legislation.gov.uk, as structured JSON next to EUR-Lex — on the same API key and credit pool once the United Kingdom is live.

In short

LexAPI is a REST API for EU law (EUR-Lex) that adds national law country by country. For the United Kingdom, the scope is primary and secondary legislation in force from legislation.gov.uk, as structured JSON in the same document shape as every other country, on the same API key and credit pool as EU law. Whether the United Kingdom is live right now is shown in the coverage list and at GET /api/v1/national/coverage.

§ I — Coverage
Legislation

Primary and secondary legislation in force from legislation.gov.uk — UK, Scottish, Welsh and Northern Ireland Acts, UK, Scottish and Welsh Statutory Instruments and Northern Ireland Statutory Rules — revised where a revised text exists, else as made.

Case lawNot included

Not part of the scope for this country — see the known gaps below.

§ II — Sources & Licences

Where it comes from.

SourceLicence / termsPublisher
legislation.gov.ukOpen Government Licence v3.0The National Archives
Known gaps
  • Case law is not available: Find Case Law’s Open Justice Licence excludes computational analysis, which needs a separate licence from The National Archives; our application is pending.
  • Revised texts may not yet include every amendment in force; each document says whether it is revised or as made and whether effects are outstanding.
  • Revised texts are not the official King’s Printer text.
§ III — One Request

The United Kingdom, as JSON.

Request
curl -H "x-api-key: $LEX_KEY" \
  "https://lex-api.com/api/v1/uk/documents/UK-UKPGA-2018-12"

UK-UKPGA-2018-12 is an Act, by type, year and chapter. A document costs 1 credit (reserved at 5 and settled at 1 when the answer is sent, so a document read needs 5 credits available); list the United Kingdom’s documents with GET /api/v1/uk/documents.

Response · abridged
{
  "document": {
    "id": "UK-UKPGA-2018-12",
    "jurisdiction": "UK",
    "language": "en",
    "documentKind": "act",
    "title": "…",
    "documentType": "…",
    "ecli": …,
    "eli": …,
    "dateOfDocument": …,
    "version": 1,
    "fetchedAt": "…",
    "validTo": …,
    "inForce": …,
    "decision": null,
    "content": { "fullText", "articles", … },
    "textAvailability": { "available": true },
    "attribution": "…",
    "textBasis": …
  }
}
§ IV — Access

On every plan, Free included.

PlanNational-law calls
Free30 calls / month
Starter500 calls / month
Professional2,000 calls / month
Business · Scale · EnterpriseNo separate limit
  • On Free, Starter and Professional, every call to a national documents or semantic route counts as one call, per account and UTC calendar month; the allowance resets at the start of each month (UTC). Business, Scale and Enterprise have no national counter.
  • On every plan, calls use credits from your pool at the normal weights: 3 per listing page, 5 per semantic search, and 1 per document (reserved at 5 and settled at 1 when the answer is sent, so a document read needs 5 credits available).
  • National documents in the citation graph (a national id on /api/v1/citations/…, or ?includeNational=true) are on Business, Scale and Enterprise only.