nu:legal Preview API

The Preview API from nu:legal — 2 operation(s) for preview.

GitHub OpenAPI

Operations 2

GET /v1/preview/{abbrev}/{ref} Preview #
GET /v1/preview/case/{court}/{decided}/{slug} Preview 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-preview-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-preview-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Nulegal Eu Preview 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 Preview 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: Preview
paths:
  /v1/preview/{abbrev}/{ref}:
    get:
      summary: Preview
      description: 'The hover card of a citation: the norm''s head and the first 300 characters.


        **`abs`, `satz`, `nr`, `lit`** (optional, cite-anchor 03.10.2026): the cited

        Absatz, Satz, Nummer and Buchstabe (`§ 309 Nr. 7 Buchst. a BGB` is `nr=7&lit=a`).

        With any of them, `text` opens at the cited Absatz and `mark` is `[start, end]` of

        the cited Satz, Nummer or Buchstabe inside `text`; `found` lists the units that

        were found in the stored text (a unit that is not found is not guessed). Without

        them the answer is exactly what it has always been, and carries neither field.


        **`asof`** (optional, YYYY-MM-DD): the version in force on that day, as

        `/v1/norm?asof=` picks it; `version.valid_from` and `version.valid_to` are its

        dates and `asof` echoes the day. No version held for that day is a 404 that says

        when the archive starts, never today''s text in its place. Without `asof` the

        answer is unchanged and carries no `asof` field.


        **Dates** (`date_basis`). `in_force_from` is a date the official source states, `observed_from` the day we first saw the text (or the archive floor); each has its `*_basis`. A version''s date is in one of the two and the other is null; a law can carry both (an EU act: its entry into force, and the day we began watching it). `valid_from` keeps its name; `version.date_basis` says which of the two it is. Schema: `HonestDates`.'
      operationId: preview_v1_preview__abbrev___ref__get
      parameters:
      - name: abbrev
        in: path
        required: true
        schema:
          type: string
          title: Abbrev
      - name: ref
        in: path
        required: true
        schema:
          type: string
          title: Ref
      - name: abs
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 4
            pattern: ^\d{1,3}[a-z]?$
          - type: 'null'
          title: Abs
      - name: satz
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 4
            pattern: ^\d{1,3}[a-z]?$
          - type: 'null'
          title: Satz
      - name: nr
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 4
            pattern: ^\d{1,3}[a-z]?$
          - type: 'null'
          title: Nr
      - name: lit
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 1
            pattern: ^[a-z]$
          - type: 'null'
          title: Lit
      - name: asof
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 10
            pattern: ^\d{4}-\d{2}-\d{2}$
          - type: 'null'
          title: Asof
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Preview
  /v1/preview/case/{court}/{decided}/{slug}:
    get:
      summary: Preview Case
      description: 'The hover card of a decision citation that names a Randnummer (cite-anchor,

        03.10.2026): court, Aktenzeichen and the first 300 characters of Randnummer `rn`.


        The path is the decision page''s own (`/rechtsprechung/{court}/{decided}/{slug}`).

        `rn` is the Randnummer the decision page shows (`render.case_rn_texts`, the rows

        that carry an `rn-N` id). A decision that shows no such Randnummer answers with its

        first paragraph and `rn: null`, never with a paragraph picked by position. A

        lettered `rn` the decision does not show (''15a'') answers with its number (''15'')

        when the decision shows that, as the click on the link lands there.

        `url` is the page address with the `#rn-N` fragment that lands on the row.'
      operationId: preview_case_v1_preview_case__court___decided___slug__get
      parameters:
      - name: court
        in: path
        required: true
        schema:
          type: string
          title: Court
      - name: decided
        in: path
        required: true
        schema:
          type: string
          title: Decided
      - name: slug
        in: path
        required: true
        schema:
          type: string
          title: Slug
      - name: rn
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            maxLength: 5
            pattern: ^\d{1,4}[a-z]?$
          - type: 'null'
          title: Rn
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Preview
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)