National law·Germany·Deutschland

§ DE — National Law Desk

German law,
as an API.

German legislation and case law from gesetze-im-internet.de and rechtsprechung-im-internet.de, as structured JSON next to EUR-Lex — same API key, same credit pool.

In short

LexAPI is a REST API that serves Germany’s consolidated federal acts (gesetze-im-internet.de) and federal-court decisions (rechtsprechung-im-internet.de) as structured JSON, next to EU law from EUR-Lex: one API key, one credit pool and one document shape for every country. The data comes from gesetze-im-internet.de and rechtsprechung-im-internet.de, synced daily, with the source’s attribution on every response.

§ I — Coverage
Legislation

Federal acts, consolidated (gesetze-im-internet.de).

Case law

Decisions of the federal courts (rechtsprechung-im-internet.de).

§ II — Why LexAPI

The source is free. Here is what LexAPI adds.

The Federal Ministry of Justice publishes federal acts on gesetze-im-internet.de and federal-court decisions on rechtsprechung-im-internet.de as XML downloads. Federal acts and court decisions are official works under § 5 UrhG and in the public domain. Consolidated texts are not legally authentic; only the Bundesgesetzblatt is. LexAPI reads that data; it does not replace the source. It saves you building and running a pipeline per source, and puts Germany next to EU law and the other countries in one schema.

  1. 01 · One document shape for every country

    Germany answers with the same fields as every other country: documentKind (act or decision), title, ecli, eli, dateOfDocument, inForce / validTo, and court and case numbers for decisions. A field the source lacks is null, never missing.

  2. 02 · EU and national law on one key

    EUR-Lex legislation, CJEU case law and Germany’s law come from the same API, with one key and one credit pool. One integration covers both.

  3. 03 · Article-level text

    Acts come split into articles (content.articles) next to the full text, so your product can cite a provision, not a whole act.

  4. 04 · Search by meaning

    Semantic search over legislation and case law. Legislation hits are single articles. Case-law searches filter by court, date and ECLI. You do not run your own embeddings or vector index.

  5. 05 · Citation links

    German decisions link to the acts they cite, in the LexAPI citation graph (Business plans and above).

  6. 06 · Honest about the text

    A document held without text says why in textAvailability instead of arriving empty. The source’s attribution, including which text is legally authentic, travels with every document.

  7. 07 · Kept in sync

    LexAPI syncs Germany with gesetze-im-internet.de and rechtsprechung-im-internet.de on a daily schedule. You do not maintain a crawler or a parser for each source format.

  8. 08 · REST or MCP, from any stack

    Call the national routes over REST from any language or agent framework, or through the LexAPI MCP server in Claude, Cursor, VS Code and other MCP clients.

§ III — What You Can Build

Built for products that cite the law.

Grounded answers (RAG)
Retrieve the German articles that answer a question with POST /api/v1/de/legislation/semantic, then give your model the text, the id and the attribution so it can cite them.
Case-law research
Find German decisions on a fact pattern with POST /api/v1/de/search/semantic, filtered by court and date.
Monitoring, EU and national
List the newest German documents with GET /api/v1/de/documents (newest first) and follow EU changes with LexAPI webhooks, in one product.
Citation checks
Resolve a cited act with GET /api/v1/de/documents/{id} and check inForce and validTo before your product quotes it.
Case-law maps
List the decisions that cite an act with GET /api/v1/citations/cited-by/{id} (Business plans and above).
§ IV — Sources & Licences

Where it comes from.

SourceLicence / termsPublisher
Gesetze im Internet · Rechtsprechung im InternetOfficial works under § 5 UrhG — public domainBundesministerium der Justiz
Known gaps
  • Federal law and federal courts only: Länder law and the courts of the Länder are not included.
  • Consolidated texts are not legally authentic; only the Bundesgesetzblatt is.
§ V — One Request

Germany, as JSON.

Request
curl -H "x-api-key: $LEX_KEY" \
  "https://lex-api.com/api/v1/de/documents/DE-BJNR001950896"

DE-BJNR001950896 is a federal act, by its gesetze-im-internet.de document number. 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 Germany’s documents with GET /api/v1/de/documents.

Response · abridged
{
  "document": {
    "id": "DE-BJNR001950896",
    "jurisdiction": "DE",
    "language": "de",
    "documentKind": "act",
    "title": "…",
    "documentType": "…",
    "ecli": …,
    "eli": …,
    "dateOfDocument": …,
    "version": 1,
    "fetchedAt": "…",
    "validTo": …,
    "inForce": …,
    "decision": null,
    "content": { "fullText", "articles", … },
    "textAvailability": { "available": true },
    "attribution": "…",
    "textBasis": …
  }
}
§ VI — 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.
§ VII — Questions

Frequently asked.

N° 01Is there an API for German federal law?

Yes. The Federal Ministry of Justice publishes federal acts on gesetze-im-internet.de and federal-court decisions on rechtsprechung-im-internet.de as XML downloads. LexAPI reads that data and serves Germany’s consolidated federal acts (gesetze-im-internet.de) and federal-court decisions (rechtsprechung-im-internet.de) as structured JSON through one REST API, in the same document shape as every other country it covers and next to EU law from EUR-Lex. Start with GET /api/v1/de/documents.

N° 02Is gesetze-im-internet.de data free to use?

Yes. Federal acts and court decisions are official works under § 5 UrhG and in the public domain. Consolidated texts are not legally authentic; only the Bundesgesetzblatt is. LexAPI charges for the API (structure, search, sync), not for the data, and includes the source’s attribution in every document and search response.

N° 03How do I search German case law by meaning?

Send a question or fact pattern in plain language to POST /api/v1/de/search/semantic. It returns the closest decisions with court, date, ECLI and a snippet; filter with court, date_from, date_to or ecli. Legislation works the same way at POST /api/v1/de/legislation/semantic, with article-level hits. Each search costs 5 credits.

N° 04Can AI assistants such as Claude use German law through LexAPI?

Yes. Claude, Cursor and other MCP clients reach German law through the LexAPI MCP server (@lexapi/mcp); the MCP page shows the setup. Any model with tool (function) calling can use it too: give it a tool that calls GET /api/v1/de/documents/{id} or POST /api/v1/de/legislation/semantic with your API key, and it can quote German law with its source. The official Python and TypeScript SDKs cover the national routes from version 0.4.0.

N° 05How much does the German law API cost?

German law is on every plan. The Free plan includes 30 national-law calls a month, Starter 500 and Professional 2,000; Business, Scale and Enterprise have no separate national limit. Calls also use credits from your monthly pool: 1 credit per document (5 credits must be available when you ask), 3 credits per listing page, 5 credits per semantic search. See pricing.

N° 06How current is the German data?

LexAPI syncs Germany with gesetze-im-internet.de and rechtsprechung-im-internet.de on a daily schedule, picking up new and changed documents. The time of the last sync is on this page and in the public coverage feed (GET /api/v1/national/coverage, no API key needed).

N° 07Which German courts are covered?

Federal-court decisions (rechtsprechung-im-internet.de). The courts included, and the first year, are listed on this page and in the coverage feed. The courts of the Länder are not included.

⁂ ⁂ ⁂

One API key,
EU and national law.

Start on the Free plan: 30 national-law calls a month are included, next to EU law.

LexAPI MCP server → EU and national law in Claude, Cursor, VS Code and other MCP clients