nu:legal Case API

The Case API from nu:legal — 2 operation(s) for case.

GitHub OpenAPI

Operations 2

GET /v1/case Get Case By Query #
GET /v1/case/{id} Get Case #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nulegal-eu:nulegal-eu-case-api"
All apis
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.

Get an API 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 Specification

nulegal-eu-case-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nulegal Eu Case 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 Case 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: Case
paths:
  /v1/case:
    get:
      summary: Get Case By Query
      description: 'One decision, addressed by QUERY parameter.


        Same body as `/v1/case/{id}`: the path form cannot be built for a key that

        contains a slash without relying on the caller, every proxy in between and the

        framework agreeing on how a percent-encoded one survives, and they do not.

        A query parameter has no such ambiguity, so this is the form the site links to

        for those rows (`web.case_api_path`).


        Carries the same `status` field and the same known-missing state as

        `/v1/case/{id}`; see that endpoint''s description.


        **Languages** (EU decisions). Language of the text (eu-lang-1020). For EU decisions (Court of Justice, General Court, Civil Service Tribunal) we may hold the decision in more than one language: German where the Court has published a German version, and the English version as the Court published it (never a machine translation). `lang` asks for one of them; the default is German when it exists, else English. The response says which language `text_plain` (and `paragraphs`) is in (`language`) and which languages are held (`available_languages`). A language that is not held returns the default and says so in `language_note`. `leitsatz` is always the German column (null when the decision has no German version). An EU decision whose only stored text is an upstream error page answers `text_plain: null`, `text_available: false` and `language: null`.'
      operationId: get_case_by_query_v1_case_get
      parameters:
      - name: id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            minLength: 1
            maxLength: 400
          - type: 'null'
          description: The decision's ECLI or its address on this site (`bgh/2023-06-26/via-zr-335-21`); a CELEX number for EU decisions. Older stored ids still resolve. Required unless the deprecated `doknr` is given.
          title: Id
        description: The decision's ECLI or its address on this site (`bgh/2023-06-26/via-zr-335-21`); a CELEX number for EU decisions. Older stored ids still resolve. Required unless the deprecated `doknr` is given.
      - name: doknr
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            minLength: 1
            maxLength: 400
          - type: 'null'
          description: Deprecated alias of `id`.
          deprecated: true
          title: Doknr
        description: Deprecated alias of `id`.
        deprecated: true
      - name: paragraphs
        in: query
        required: false
        schema:
          type: boolean
          description: Return the decision's Randnummer paragraphs as data. Adds `paragraphs[]` and `anchor_basis`; the rest of the response is unchanged.
          default: false
          title: Paragraphs
        description: Return the decision's Randnummer paragraphs as data. Adds `paragraphs[]` and `anchor_basis`; the rest of the response is unchanged.
      - name: lang
        in: query
        required: false
        schema:
          type: string
          enum:
          - de
          - en
          title: Lang
        description: 'Language of the text (eu-lang-1020). For EU decisions (Court of Justice, General Court, Civil Service Tribunal) we may hold the decision in more than one language: German where the Court has published a German version, and the English version as the Court published it (never a machine translation). `lang` asks for one of them; the default is German when it exists, else English. The response says which language `text_plain` (and `paragraphs`) is in (`language`) and which languages are held (`available_languages`). A language that is not held returns the default and says so in `language_note`. `leitsatz` is always the German column (null when the decision has no German version).'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Case
  /v1/case/{id}:
    get:
      summary: Get Case
      description: 'One decision by its ECLI or its address on this site, or by a CELEX number. : `:path`, so the segment may contain slashes, as a decision''s address

        does (`bgh/2023-06-26/via-zr-335-21`). Starlette normalises `%2F` back to `/`

        before routing, so the escaped form and the raw one both resolve, and

        `/v1/case?id=…` is the third, unambiguous way in. **`status`** — every response carries it, and there are three values. `"available"` is a decision we hold: the body is what it has always been, with

        the full text and every metadata field. `"known_missing"` is a decision we can prove EXISTS but whose text we do not

        have. This corpus is not complete, and the honest answer for a decision that

        several decisions we do hold cite by Aktenzeichen is not 404 — a 404 says "no

        such decision", which for this set is false. The key for such a lookup is the

        Aktenzeichen. The body is:


        {"status": "known_missing",

        "aktenzeichen": "VI ZR 1/19",

        "court_hint": "BGH", # INFERRED from how the citations name it

        "decided_hint": "2020-05-12", # INFERRED, may be null

        "text_available": false,

        "sources": [{"source": "…", #: an OFFICIAL free source

        "url": "…",

        "court": "BVerwG", # as the SOURCE states it

        "decided": "2004-03-10", # as the SOURCE states it

        "matched_on": "docket+court+date",

        "full_text_available": true}, ...],

        "cited_by": 7,

        "citers": [{"court", "decided", "aktenzeichen", "url"}, ...],

        "note": "Existence confirmed by 7 citing decisions; full text not yet

        available."}


        No text or paragraph field is present in that body — including with

        `?paragraphs=1`, which asks for the text that is precisely what is missing. `court_hint` and `decided_hint` are read off the citing decisions'' own wording;

        nobody has checked them against the decision itself, because the decision is

        what we do not have. Treat them as leads, not as metadata. `sources` is the opposite kind of fact and is always present, `[]`

        when we have not found the decision anywhere. Each entry is an OFFICIAL, free

        source that we matched to this docket on the docket AND the court AND — when

        the citations supplied a date hint — a decision date within one day of it;

        `matched_on` says which of those two rules fired, and `court`/`decided` are

        what THAT SOURCE states, not what the citations infer. `full_text_available`

        marks a source carrying the decision''s full text rather than only a reference. `"joined_with"` is the third value and the one that is not a gap at

        all. The Court of Justice joins related cases and decides them in ONE judgment

        handed down under all of their case numbers, but that judgment is published

        under the FIRST number only — so `C-493/10` names a decision that exists, was

        published, and has no document of its own anywhere. We hold it, under

        `C-411/10`. The body is the `known_missing` body with `status: "joined_with"`

        and one field added:


        {"status": "joined_with",

        "aktenzeichen": "C-493/10",

        "joined_with": {"aktenzeichen": "C-411/10",

        "court": "Europäischer Gerichtshof",

        "decided": "2011-12-21",

        "url": "https://recht.nulegal.eu/rechtsprechung/eugh/...",

        "evidence": "In den verbundenen Rechtssachen C-411/10 und

        C-493/10"},

        "text_available": false, ...}


        `text_available` stays false and there is still no text field: the text is the

        LEAD''s, and `joined_with.url` is where to fetch it (`/v1/case/{id}` on that `url`

        returns it with `status: "available"`). `evidence` is the lead judgment''s

        own title line, quoted verbatim, so the relation can be checked rather than

        trusted. `joined_with` is present and `null` on a `known_missing` body. An Aktenzeichen nothing in the corpus cites still answers 404, as does any other

        unknown key. If you can supply the full text or a Fundstelle for a

        `known_missing` decision, the HTML page for it (`/rechtsprechung/az/{az}`) has

        the contact route. **Languages** (EU decisions). Language of the text (eu-lang-1020).'
      operationId: get_case_v1_case__id__get
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 400
          title: Id
      - name: paragraphs
        in: query
        required: false
        schema:
          type: boolean
          description: Return the decision's Randnummer paragraphs as data. Adds `paragraphs[]` and `anchor_basis`; the rest of the response is unchanged.
          default: false
          title: Paragraphs
        description: Return the decision's Randnummer paragraphs as data. Adds `paragraphs[]` and `anchor_basis`; the rest of the response is unchanged.
      - name: lang
        in: query
        required: false
        schema:
          type: string
          enum:
          - de
          - en
          title: Lang
        description: 'Language of the text (eu-lang-1020). For EU decisions (Court of Justice, General Court, Civil Service Tribunal) we may hold the decision in more than one language: German where the Court has published a German version, and the English version as the Court published it (never a machine translation). `lang` asks for one of them; the default is German when it exists, else English. The response says which language `text_plain` (and `paragraphs`) is in (`language`) and which languages are held (`available_languages`). A language that is not held returns the default and says so in `language_note`. `leitsatz` is always the German column (null when the decision has no German version).'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Case
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
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)