nu:legal Search API
The Search API from nu:legal — 1 operation(s) for search.
The Search API from nu:legal — 1 operation(s) for search.
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-search-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 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 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: Search
paths:
/v1/search:
get:
summary: Search
description: 'Full-text search over the statutes held: federal law, EU law and the state law of Bayern, Brandenburg, Hessen, Nordrhein-Westfalen and Sachsen.
Returns `{query, corrected, results[]}`. For the few queries that a curated page on
this site answers — "wie viel Schmerzensgeld nach einem Unfall", which no statute
answers — the response additionally carries `pages[]`: entries with
`type: "page"`, `kind`, `title`, `url`, `description` and optional `stats`/`updated`. The key is absent otherwise, and `results` is unaffected, so a client that
ignores it is correct. Same match as the hint shown above the results on `/suche`.
**This endpoint searches STATUTES. Decisions live at `/v1/case-search`** — and since
agent-sim 15.09.2026 every response says so with numbers: `cases_available` is how
many decisions match the same query and `cases_url` is the call that returns them.
The measurement behind that: `q=Verzugspauschale` answered `{"results": []}` while
184 decisions used the word, because the term is not in § 288''s text (the statute
says "Pauschale in Höhe von 40 Euro") — so an API-first agent concluded the corpus
held nothing on it and left. An empty `results` additionally carries `suggestions`,
the `/v1/suggest` list, rather than being a bare dead end.
`cases_available` is `null` when the count could not be measured, which is NOT zero;
it is capped (`cases_available_capped: true` says so), because it is the same
bounded probe that fills the Rechtsprechung tab header on `/suche`.
An unknown query parameter is a **400**, not a silent drop.'
operationId: search_v1_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: 100
minimum: 1
default: 20
title: Limit
- name: m
in: query
required: false
schema:
type: string
default: auto
title: M
- name: repealed
in: query
required: false
schema:
type: boolean
default: false
title: Repealed
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- 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)