---
title: "Index of core Spanish mercantile-law norms"
method: GET
path: "/api/v1/legal/norms"
tags: ["Legal"]
---

# Index of core Spanish mercantile-law norms

`GET /api/v1/legal/norms`

## Request

- Base URL: `https://openmercantil.es`
- URL: `https://openmercantil.es/api/v1/legal/norms`
- Auth: one of:
  - none
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/openmercantil/apis/openmercantil-public-api/docs/api/v1/legal/norms/get.ts> (a function with typed inputs; its response is checked against the schema)

Return the catalog of core Spanish mercantile-law norms (codes, laws, royal-decree-legislatives, regulations) structured by OpenMercantil. Each item links to its HTML page (`/ley/{slug}`) and its norm-detail API (`/api/v1/legal/norm/{slug}`). LICENSE: consolidated text from the BOE, re-used under Ley 37/2007; the official, authentic version is always boe.es. Informational only — NOT legal advice. Cached 24h. Returns 503 if the legal catalog is not deployed yet.

## Response `200`

Norm index with license/attribution/disclaimer envelope

- LegalNormsIndexResponse: License/attribution/disclaimer envelope present in every legal-layer response. The legal corpus is consolidated BOE text re-used under Ley 37/2007 (NOT CC BY 4.0).
  - `layer` string, required
  - `count` integer, required
  - `norms` LegalNormSummary[], required
    - `slug` string
    - `title` string
    - `short_name` string, nullable
    - `norm_type` string
    - `norm_type_label` string
    - `in_force` boolean
    - `url` string, uri
    - `api_url` string, uri
  - `docs` string, uri
  - `license` string
  - `license_url` string, uri
  - `attribution` string
  - `disclaimer` string
  - `generated_at` string, date-time

## Other responses

- `429`: Rate limit exceeded
- `503`: Controlled fail-closed denial: the required dataset or legal layer is absent, invalid, unsupported or not authorized for this public surface.

## Changes

- **2026-07-26** `996f96a11758`: 71 info
  - api operation id `getLegalNorms` was added
  - the endpoint scheme security `apiKey` was added to the API
  - the endpoint scheme security `bearerAuth` was added to the API
  - added the optional property `_alias_of` to the response with the `429` status
  - …67 more

[Operation history](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/changes/api/v1/legal/norms/get.md)

---

[API](https://skmtc.dev/openmercantil/apis/openmercantil-public-api.md) - [All operations](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/revisions/601ff6123c86?raw)
