nu:legal Case Search API

The Case Search API from nu:legal — 1 operation(s) for case search.

GitHub OpenAPI

Operations 1

GET /v1/case-search Case Search #

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-search-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-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nulegal Eu Case Search 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 Search 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 Search
paths:
  /v1/case-search:
    get:
      summary: Case Search
      description: 'Semantic case-law search (product integration): natural-language

        question in, decisions out — same hybrid pipeline as the /suche

        Rechtsprechung tab (dense-first for NL questions, FTS-first for keywords).

        Dense hits carry the best-matching Randnummer + snippet.


        **Filters and ordering** (agent-sim 15.09.2026 — all three existed on `/suche` and

        none of them on this endpoint, and `&land=SN` was answered with a byte-identical

        unfiltered list rather than an error):


        land a Bundesland: the hub slug (`sachsen`) or its code (`SN`), plus `bund`

        and `eu`. Narrows to the courts of that Land, the same expansion

        `/suche?land=` makes.

        court one court, by the slug its pages use (`ovg-sachsen`, `bgh`, `olg-koeln`).

        ANDs with `land`; a combination no court satisfies returns an empty list,

        which is a true answer and not a dropped filter.

        sort `relevance` (default, the hybrid ranking) or `date_desc`, newest first.

        `date_desc` runs the lexical leg only — there is no dense/rerank pass to

        re-order — and it answers "aktuelle Rechtsprechung zu X", which relevance

        ranking could not: the simulated query for recent Befristung case law led

        with decisions from 2003 and 2004.


        An unknown parameter, an unknown Land or an unknown court slug is a **400** naming

        the valid values. A filter that is silently ignored produces a well-formed,

        plausible, wrong answer, which is the worst failure shape this API can have.


        If the date sort cannot be computed inside its budget the response falls back to

        relevance and SAYS SO in `ranking.sort` — it never serves a relevance list under a

        label that claims recency. `ranking.sort` appears only when an ordering was asked

        for: a default request is byte-identical to what it was before the parameter

        existed.


        **`url` and `ecli` on every row** ( item 5). A row is chained into `/v1/case`

        by the path of its `url` or by its `ecli`; `ecli` is null where the decision has

        none.


        **Filters, sort and counts (R3).** Every bad filter value is a 422 problem+json naming the parameter. The answer carries `total` (decisions holding the query''s words under the filters, counted up to the full-text leg''s candidate bound; `total_is_exact` false at the cap; `total_basis` `all_words` or `any_word`, or `found_rows` when the search found more decisions than hold the words, through its semantic, docket or spelling passes: then `total` is that number and not exact) and `truncated_by`: `limit`: more decisions matched than `limit` returned; `fts_pool`: more than the full-text leg''s candidate bound matched; the list ranks the best-cited matches up to that bound; `dense_pool`: a filter is set and the semantic leg fills it from its fixed pool of nearest decisions, so semantic neighbours beyond that pool are not seen; `time_budget`: the semantic leg ran past its time budget; the list is the full-text list.'
      operationId: case_search_v1_case_search_get
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
          minLength: 2
          maxLength: 2000
          title: Q
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 20
          minimum: 1
          default: 10
          title: Limit
      - name: land
        in: query
        required: false
        schema:
          type: string
          maxLength: 40
          default: ''
          title: Land
      - name: court
        in: query
        required: false
        schema:
          type: string
          maxLength: 80
          default: ''
          title: Court
      - name: sort
        in: query
        required: false
        schema:
          type: string
          maxLength: 20
          default: relevance
          title: Sort
        description: '`relevance` (default), `weight` (the relevance candidates, most cited first) or `newest` (the newest decisions holding the query''s words). `date_desc` is read as `newest`.'
      - name: state
        in: query
        required: false
        schema:
          type: string
        description: 'A Land, as its code (`BY`) or name slug (`bayern`), or `bund` / `eu`: the courts of that Land in the court registry (`listCourts`).'
      - name: court_level
        in: query
        required: false
        schema:
          type: string
        description: 'One of: federal, higher, regional, lower, state_constitutional, european, other (the levels of `listCourts`).'
      - name: panel
        in: query
        required: false
        schema:
          type: string
        description: 'A Senat of `court` (needs `court`): `VIII. Zivilsenat`, `2. Strafsenat` (BGH); `7. Senat` (BAG, BFH, BSG, BVerwG, BVerfG). A decision is the Senat''s when its docket or its stated Senat says so.'
      - name: from
        in: query
        required: false
        schema:
          type: string
        description: 'YYYY-MM-DD: decided on or after.'
      - name: to
        in: query
        required: false
        schema:
          type: string
        description: 'YYYY-MM-DD: decided on or before.'
      - name: decision_type
        in: query
        required: false
        schema:
          type: string
        description: 'One of: urteil, beschluss, gerichtsbescheid, schlussantraege. The type the source states; a decision whose source states none matches none.'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Case Search
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)