nu:legal Check API
The Check API from nu:legal — 3 operation(s) for check.
The Check API from nu:legal — 3 operation(s) for check.
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-check-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 Check 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 Check 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: Check
paths:
/agent/v1/quote/verify:
post:
summary: Quote Check
operationId: verifyQuote
tags:
- Check
description: Does the cited source say this? Send `statement` (at most 4,000 characters) and `citation` (a provision or decision, at most 300 characters), optionally `question` (at most 600). The answer is `supported`, `not_supported` or `not_found`, with the passage it rests on. The body is at most 64 KiB.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- statement
- citation
properties:
statement:
type: string
maxLength: 4000
citation:
type: string
maxLength: 300
question:
type: string
maxLength: 600
ai:
type: boolean
responses:
'200':
description: The verdict with its evidence.
content:
application/json: {}
'400':
description: A malformed body or a field over its cap.
'413':
description: The body is over 64 KiB.
/v1/check/quote:
post:
tags:
- Check
summary: R5A Checkquote
description: '**Quote Check** (`checkQuote`). Is this quotation in the provision or decision the
citation names, in that Fassung?
Deterministic: a string matcher (the fast path of /agent/v1/quote/verify), never a
model. `verdict`: `match` (word for word after folding whitespace, line-break hyphens,
typographic quotes and dashes, and case), `near` (a few words differ: `diff` lists
them; `has_meaning_risk` says whether one can change the meaning), `not_found`, or
`undetermined` (no text held, or not in the searched part of a very long text).
`location` names the provision''s unit (Absatz, Satz, Nummer, Buchstabe) or the
decision''s Randnummer, with a link. `fassung` and `date_basis` say which text of a
provision was read and what its date is (`observed`, `archive_floor`, `applies_from`);
`match_in_other_fassung` names another stored Fassung that holds the quotation word for
word. `status` is the lookup status of the citation.
Errors are problem+json. Credits: 10 per quote (planned; nothing is charged yet).'
operationId: checkQuote
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CheckQuoteRequest'
required: true
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'
'503':
description: Service Unavailable
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
/v1/check/citations:
post:
tags:
- Check
summary: R5A Checkcitations
description: '**Text Check** (`checkCitations`). Every citation in a text of up to 64,000
characters, resolved by /v1/resolve''s own resolver.
Found: norm citations with their law (''§§ 280 Abs. 1, 241 Abs. 2 BGB''), EU acts by
abbreviation or number (''Art. 6 Abs. 1 lit. f DSGVO'', ''Art. 17 VO (EU) 2016/679''),
decisions by docket with court and date, ECLI, EU case number, and Fundstellen (''NJW
2020, 123'', ''BVerfGE 65, 1''). Per citation: `span` (`start`/`end` in Unicode code
points, `start_utf16`/`end_utf16` in UTF-16 code units, end exclusive), the text,
`cite_as` and `id` (the normalised reference), `status` (the lookup enum), `in_force`
on `as_of` with its `date_basis` (provisions), and `url`. An enumeration lists its
`members`.
Bounded: at most 600 citations (`truncated_by: "max_citations"`), and a CPU budget below
the request''s (`truncated_by: "cpu_budget"`); spans found but not checked are listed in
`unchecked`. `unparsed` lists the stretches with a digit in them that held no citation.
Each distinct citation string is resolved once.
Errors are problem+json. Credits: 20 per citation found, at least 5 (planned; nothing
is charged yet).'
operationId: checkCitations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CheckCitationsRequest'
required: true
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'
'503':
description: Service Unavailable
content:
application/problem+json: {}
application/json:
schema:
$ref: '#/components/schemas/Problem'
components:
schemas:
CheckCitationsRequest:
properties:
text:
type: string
maxLength: 64000
minLength: 1
title: Text
description: Running text, up to 64,000 characters.
as_of:
anyOf:
- type: string
maxLength: 10
- type: 'null'
title: As Of
description: 'The day `in_force` is answered for (YYYY-MM-DD). Default: today.'
additionalProperties: false
type: object
required:
- text
title: CheckCitationsRequest
description: checkCitations' request. Unknown fields are a 400.
CheckQuoteRequest:
properties:
quote:
type: string
maxLength: 1000
minLength: 1
title: Quote
description: The quotation, as written.
citation:
type: string
maxLength: 300
minLength: 1
title: Citation
description: 'What the quotation is attributed to: a provision (''§ 573 Abs. 2 BGB'', ''Art. 6 DSGVO'') or a decision (docket with court, ECLI, Fundstelle; '', Rn. 27'' may follow).'
as_of:
anyOf:
- type: string
maxLength: 10
- type: 'null'
title: As Of
description: 'Provisions: the Fassung in force on this day (YYYY-MM-DD). Default: the text in force today. Ignored for a decision.'
additionalProperties: false
type: object
required:
- quote
- citation
title: CheckQuoteRequest
description: checkQuote's request. Unknown fields are a 400.
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)