nu:legal Read API
The Read API from nu:legal — 5 operation(s) for read.
The Read API from nu:legal — 5 operation(s) for read.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/nulegal-eu:nulegal-eu-read-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Nulegal Eu Read API
version: '1.0'
contact:
email: contact@nulegal.de
license:
name: CC BY 4.0 (curated layer)
url: https://recht.nulegal.eu/license
termsOfService: https://recht.nulegal.eu/nutzungsbedingungen#terms-en
description: 'Operations tagged Read across 2 of this provider''s published API definitions: openapi.json, nulegal-eu-openapi.yml. Each path carries the servers of the definition it was published in.'
tags:
- name: Read
paths:
/v1/laws/{law}/provisions/{ref}/diff:
get:
tags:
- Read
summary: R2A Getprovisiondiff
description: '**Provision Diff** (`getProvisionDiff`). The word diff between two stored Fassungen
of one provision: the comparison the website shows on its Fassungen page, as JSON.
`from` and `to` take any date; each is read as the Fassung that applied on that day
(the answer''s `read_as` says so when that is not the date you sent). Without them the
answer is the latest change.
Each side (`from`, `to`) carries its Fassung `id` (`{law}/{ref}?as_of=DATE`), its
`date` and `date_basis`. **`date_basis` says what the date is**: `in_force` and `source_stated` are a date the official source states (an Inkrafttreten, or the day a Land portal or the BMJ says the text applies from), `eurlex_consolidation` is EUR-Lex''s consolidation date (not the day the act applies), `observed` is the day we first saw this text (not the Inkrafttreten) and `archive_floor` is the first day of our archive (the text may be older). `in_force_from` / `observed_from` hold the date under its name; the other is null (see the `HonestDates` schema). `observed_to` / `applies_to` is the next Fassung''s date.
`segments` is the diff as a list of `{op, text}` (`equal`, `delete`, `insert`);
`diff_html` is the same diff as the website''s HTML (``, ``). Whitespace is
never marked. `change_kind`: `text`, `whitespace_only`, `reprocessed` (the same EU
consolidated version read again) or null. A text over `max_chars` is not diffed
(`is_too_long: true`).
Credits: 1 per call (planned; nothing is charged yet, `credits_charged` is 0).'
operationId: getProvisionDiff
parameters:
- name: law
in: path
required: true
schema:
type: string
description: 'Law id or abbreviation: `BGB`, `DSGVO`, `BDSG 2018`.'
title: Law
description: 'Law id or abbreviation: `BGB`, `DSGVO`, `BDSG 2018`.'
- name: ref
in: path
required: true
schema:
type: string
description: 'Provision number without § or Art.: `622`, `3a`.'
title: Ref
description: 'Provision number without § or Art.: `622`, `3a`.'
- name: from
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: 'Date YYYY-MM-DD: the Fassung that applied on that day is the older side. Default: the Fassung before `to`.'
title: From
description: 'Date YYYY-MM-DD: the Fassung that applied on that day is the older side. Default: the Fassung before `to`.'
- name: to
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: 'Date YYYY-MM-DD: the Fassung that applied on that day is the newer side. Default: the newest stored Fassung.'
title: To
description: 'Date YYYY-MM-DD: the Fassung that applied on that day is the newer side. Default: the newest stored Fassung.'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Bad Request
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
'404':
description: Not Found
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
'422':
description: Unprocessable Content
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
/v1/decisions/{key}/proceeding:
get:
tags:
- Read
summary: R2A Getproceeding
description: '**Proceeding** (`getProceeding`). The Verfahrensgang of one decision: the earlier and
later decisions of the same proceeding in date order, with court, date, docket, the
ECLI where we hold the decision, and our link.
The chain is what the courts'' own records state (about 190,000 lines), the same
chain the decision page shows. An entry we hold carries its
`id` and `url`; one we do not hold is listed as the record states it
(`is_held: false`). There is **no outcome field**: no record states one, and we do
not infer it. A decision that no record names answers `proceeding: []`.
The key is the decision''s canonical `{court}/{date}/{slug}` (the path of its page)
or an ECLI. A key that names several decisions answers `status: ambiguous` with
`candidates`.
Credits: 1 per call (planned; nothing is charged yet, `credits_charged` is 0).'
operationId: getProceeding
parameters:
- name: key
in: path
required: true
schema:
type: string
maxLength: 400
description: 'Decision key: `{court}/{date}/{slug}` (e.g. `bgh/2024-07-10/viii-zr-276-23`) or an ECLI (slashes allowed).'
title: Key
description: 'Decision key: `{court}/{date}/{slug}` (e.g. `bgh/2024-07-10/viii-zr-276-23`) or an ECLI (slashes allowed).'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Bad Request
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
'404':
description: Not Found
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
'422':
description: Unprocessable Content
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
/v1/laws:
get:
tags:
- Read
summary: R2A Listlaws
description: '**Law List** (`listLaws`). The law directory: every law we hold, by abbreviation.
Each law has its `id` (the key every other law operation takes), `abbreviation`,
`title`, `legal_status` (`in_force` or `repealed`; null where the law is listed but no
text is served, `text_status: unavailable`), `scope`, `state` (the Land of
Landesrecht) and `provision_count` (provisions in force, without headings).
`q` matches part of the abbreviation or title, or an alias exactly; exact matches come
first. Pages with `limit` (at most 1000) and `offset`; `next_offset` is null on the last
page, and `total` counts every match.
Hessen law is served under /landesrecht/hessen from its own store and is not listed
here yet.
Credits: 1 per 100 laws returned, at least 1 (planned; nothing is charged yet,
`credits_charged` is 0).'
operationId: listLaws
parameters:
- name: scope
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: '`bund` (federal law), `eu` (EU law and the EMRK) or `land` (Landesrecht).'
title: Scope
description: '`bund` (federal law), `eu` (EU law and the EMRK) or `land` (Landesrecht).'
- name: state
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: A Land, as its code (`BY`) or name slug (`bayern`); implies `scope=land`.
title: State
description: A Land, as its code (`BY`) or name slug (`bayern`); implies `scope=land`.
- name: q
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 200
- type: 'null'
description: 'Part of the abbreviation or title, or an exact alias: `BGB`, `Datenschutz`.'
title: Q
description: 'Part of the abbreviation or title, or an exact alias: `BGB`, `Datenschutz`.'
- name: limit
in: query
required: false
schema:
type: integer
maximum: 1000
minimum: 1
default: 100
title: Limit
- name: offset
in: query
required: false
schema:
type: integer
maximum: 100000
minimum: 0
default: 0
title: Offset
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Bad Request
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
'422':
description: Unprocessable Content
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
/v1/decisions:
get:
tags:
- Read
summary: R4A Listdecisions
description: '**Decisions** (`listDecisions`). Every decision one identifier names: a decision
key, an ECLI, a docket (with `court`, or across all courts) or a Fundstelle. One
decision answers `status: found`; several answer 200 `status: ambiguous` with
`candidates` (`id`, court, date, type and the first sentence of the Tenor where the
source marks one), the Sachentscheidung first. A docket is never an id on its own.
Credits: 10 per decision returned (planned; nothing is charged yet).'
operationId: listDecisions
parameters:
- name: decision
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 400
- type: 'null'
description: 'Any decision key: `{court}/{date}/{slug}` or an ECLI.'
title: Decision
description: 'Any decision key: `{court}/{date}/{slug}` or an ECLI.'
- name: ecli
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 120
- type: 'null'
title: Ecli
- name: docket
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 200
- type: 'null'
description: An Aktenzeichen as the court writes it ('VIII ZR 276/23').
title: Docket
description: An Aktenzeichen as the court writes it ('VIII ZR 276/23').
- name: court
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 120
- type: 'null'
description: 'With `docket`: the court''s slug (''bgh'', ''olg-koeln'') or name.'
title: Court
description: 'With `docket`: the court''s slug (''bgh'', ''olg-koeln'') or name.'
- name: cite
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 200
- type: 'null'
description: 'A Fundstelle: ''BGHZ 180, 1'', ''NJW 2020, 1234'', ''BVerfGE 30, 173''.'
title: Cite
description: 'A Fundstelle: ''BGHZ 180, 1'', ''NJW 2020, 1234'', ''BVerfGE 30, 173''.'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Bad Request
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
'404':
description: Not Found
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
'422':
description: Unprocessable Content
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
/v1/decisions/{key}:
get:
tags:
- Read
summary: R4A Getdecision
description: '**Decision** (`getDecision`). The decision card: identity, `headnotes[]` (the
court''s Leitsatz apart from an Orientierungssatz, a Titelzeile, a publisher''s
Leitsatz or a collection''s head (`author: sammlung`), each with `kind`, `author` and
`basis`; `text_quality: ocr` on one read from a scan), the `tenor` verbatim where the
source marks it, `cited_norms`, the `proceeding`, `fundstellen`, `provenance` and
`cite_as`. `ai_summary` is always null: no generated text is served.
The key is the canonical `{court}/{date}/{slug}` or an ECLI; a key that
names several decisions answers `status: ambiguous` with `candidates`. The full text
and the Randnummern stay at `/v1/case/{key}?paragraphs=1`.
Credits: 10 per decision (planned; nothing is charged yet, `credits_charged` is 0).'
operationId: getDecision
parameters:
- name: key
in: path
required: true
schema:
type: string
maxLength: 400
description: 'Decision key: `{court}/{date}/{slug}` (e.g. `bgh/2024-07-10/viii-zr-276-23`) or an ECLI (slashes allowed).'
title: Key
description: 'Decision key: `{court}/{date}/{slug}` (e.g. `bgh/2024-07-10/viii-zr-276-23`) or an ECLI (slashes allowed).'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Bad Request
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
'404':
description: Not Found
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
'422':
description: Unprocessable Content
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
components:
schemas:
Problem:
properties:
type:
type: string
title: Type
default: about:blank
title:
type: string
title: Title
status:
type: integer
title: Status
reason:
type: string
title: Reason
detail:
type: string
title: Detail
retryable:
type: boolean
title: Retryable
next:
items:
additionalProperties: true
type: object
type: array
title: Next
default: []
read_as:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Read As
credits_charged:
type: integer
title: Credits Charged
default: 0
type: object
required:
- title
- status
- reason
- detail
- retryable
title: Problem
description: problem+json (RFC 9457) with the lawdb fields.
x-refined-from:
- openapi.json
- nulegal-eu-openapi.yml
x-provenance:
method: harvested
publisher: nu:legal
source: https://gesetze.nulegal.eu/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)