Normatia Normativa API
La normativa como dato: el catálogo, sus versiones con su vigencia, el índice y el texto de cada sección.
La normativa como dato: el catálogo, sus versiones con su vigencia, el índice y el texto de cada sección.
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/normatia-com:normatia-com-normativa-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: Normatia Normativa API
version: 1.0.0
description: 'API de normativa de edificación española: el catálogo normativo, la normativa que aplica a cada territorio, el contexto de tus proyectos y consultas en lenguaje natural con sus fuentes. La documentación completa está en https://docs.normatia.com.'
contact:
name: Normatia
email: hola@normatia.com
url: https://docs.normatia.com
servers:
- url: https://api.normatia.com
description: Producción
security:
- claveApi: []
tags:
- name: Normativa
description: 'La normativa como dato: el catálogo, sus versiones con su vigencia, el índice y el texto de cada sección.'
paths:
/v1/regulations:
get:
tags:
- Normativa
summary: El catálogo normativo
description: 'Las normas, con su versión vigente. Se filtra por texto en el título (`q`), por ámbito (`scope`), por etiqueta (`tag`), por lugar (`place`: las que aplican a ese municipio, de la estatal a la municipal) y por si el texto de la vigente está curado a mano (`curated`). Paginado por cursor.'
operationId: listRegulations
parameters:
- name: q
in: query
required: false
schema:
anyOf:
- type: string
minLength: 2
maxLength: 200
- type: 'null'
description: Texto en el título
title: Q
description: Texto en el título
- name: scope
in: query
required: false
schema:
anyOf:
- enum:
- national
- regional
- municipal
type: string
- type: 'null'
title: Scope
- name: tag
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 100
- type: 'null'
title: Tag
- name: place
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: '`ES-` y el código INE: las normas que aplican allí'
title: Place
description: '`ES-` y el código INE: las normas que aplican allí'
- name: curated
in: query
required: false
schema:
anyOf:
- type: boolean
- type: 'null'
description: 'true: solo las de texto curado a mano. false: las de texto automático o sin texto'
title: Curated
description: 'true: solo las de texto curado a mano. false: las de texto automático o sin texto'
- name: limit
in: query
required: false
schema:
type: integer
maximum: 100
minimum: 1
default: 20
title: Limit
- name: cursor
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Cursor
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RegulationList'
'422':
description: Datos no válidos.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Falta la clave, no es válida o está revocada.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'403':
description: La organización de la clave no tiene activada la API, o la clave no tiene el permiso de la ruta (insufficient_scope).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'429':
description: Límite por minuto superado (con Retry-After) o cupo del mes agotado.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'500':
description: Error interno. Indica el X-Request-Id si escribes a soporte.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/regulations/{slug}:
get:
tags:
- Normativa
summary: Una norma y sus versiones
operationId: getRegulation
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/RegulationDetail'
'422':
description: Datos no válidos.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Falta la clave, no es válida o está revocada.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'403':
description: La organización de la clave no tiene activada la API, o la clave no tiene el permiso de la ruta (insufficient_scope).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'429':
description: Límite por minuto superado (con Retry-After) o cupo del mes agotado.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'500':
description: Error interno. Indica el X-Request-Id si escribes a soporte.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/regulations/{slug}/contents:
get:
tags:
- Normativa
summary: El índice de una versión
description: 'Las secciones de la versión pedida (`version`) o de la vigente. Una versión sin texto (`has_text: false`) da un índice vacío y el enlace a su documento original.'
operationId: getRegulationContents
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: version
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: El slug de la versión; sin él, la vigente
title: Version
description: El slug de la versión; sin él, la vigente
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Contents'
'422':
description: Datos no válidos.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Falta la clave, no es válida o está revocada.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'403':
description: La organización de la clave no tiene activada la API, o la clave no tiene el permiso de la ruta (insufficient_scope).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'429':
description: Límite por minuto superado (con Retry-After) o cupo del mes agotado.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'500':
description: Error interno. Indica el X-Request-Id si escribes a soporte.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
/v1/regulations/{slug}/sections/{section}:
get:
tags:
- Normativa
summary: El texto de una sección
description: Los bloques de una sección (artículos, apartados, tablas), en su orden y con su jerarquía, de la versión pedida o de la vigente. El texto va en plano; con `format=html`, también con su formato.
operationId: getRegulationSection
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: section
in: path
required: true
schema:
type: string
title: Section
- name: version
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: El slug de la versión; sin él, la vigente
title: Version
description: El slug de la versión; sin él, la vigente
- name: format
in: query
required: false
schema:
enum:
- text
- html
type: string
default: text
title: Format
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Section'
'422':
description: Datos no válidos.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'401':
description: Falta la clave, no es válida o está revocada.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'403':
description: La organización de la clave no tiene activada la API, o la clave no tiene el permiso de la ruta (insufficient_scope).
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'429':
description: Límite por minuto superado (con Retry-After) o cupo del mes agotado.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
'500':
description: Error interno. Indica el X-Request-Id si escribes a soporte.
content:
application/problem+json:
schema:
$ref: '#/components/schemas/Problem'
components:
schemas:
RegulationDetail:
properties:
object:
type: string
const: regulation
title: Object
default: regulation
slug:
type: string
title: Slug
title:
type: string
title: Title
short_title:
anyOf:
- type: string
- type: 'null'
title: Short Title
scope:
anyOf:
- type: string
- type: 'null'
title: Scope
description: national, regional o municipal
tags:
items:
type: string
type: array
title: Tags
current_version:
anyOf:
- $ref: '#/components/schemas/VersionSummary'
- type: 'null'
description: La vigente hoy
description:
anyOf:
- type: string
- type: 'null'
title: Description
versions:
items:
$ref: '#/components/schemas/VersionSummary'
type: array
title: Versions
description: 'En el orden del catálogo: la vigente primero'
related_documents:
items:
$ref: '#/components/schemas/RelatedDocument'
type: array
title: Related Documents
description: Comentarios, guías y documentos de apoyo, sin texto en la API
type: object
required:
- slug
- title
title: RegulationDetail
Contents:
properties:
object:
type: string
const: contents
title: Object
default: contents
regulation:
type: string
title: Regulation
version:
$ref: '#/components/schemas/VersionSummary'
source_url:
anyOf:
- type: string
- type: 'null'
title: Source Url
sections:
items:
$ref: '#/components/schemas/SectionSummary'
type: array
title: Sections
type: object
required:
- regulation
- version
- sections
title: Contents
RegulationList:
properties:
object:
type: string
const: list
title: Object
default: list
data:
items:
$ref: '#/components/schemas/Regulation'
type: array
title: Data
has_more:
type: boolean
title: Has More
next_cursor:
anyOf:
- type: string
- type: 'null'
title: Next Cursor
description: 'Para la página siguiente: `cursor=`'
type: object
required:
- data
- has_more
title: RegulationList
Problem:
type: object
description: Error en formato RFC 9457 (rutas /v1). `code` es lo que debe mirar un programa.
required:
- type
- title
- status
- detail
- code
properties:
type:
type: string
format: uri
example: https://docs.normatia.com/api-reference/errores/#api_not_enabled
title:
type: string
example: Sin acceso
status:
type: integer
example: 403
detail:
type: string
example: Tu organización no tiene activado el acceso por API.
code:
type: string
example: api_not_enabled
request_id:
type: string
example: req_4f0c2a9e6b1d4c3e8a7f5b2d1e0c9a8b
additionalProperties: true
Regulation:
properties:
object:
type: string
const: regulation
title: Object
default: regulation
slug:
type: string
title: Slug
title:
type: string
title: Title
short_title:
anyOf:
- type: string
- type: 'null'
title: Short Title
scope:
anyOf:
- type: string
- type: 'null'
title: Scope
description: national, regional o municipal
tags:
items:
type: string
type: array
title: Tags
current_version:
anyOf:
- $ref: '#/components/schemas/VersionSummary'
- type: 'null'
description: La vigente hoy
type: object
required:
- slug
- title
title: Regulation
Section:
properties:
object:
type: string
const: section
title: Object
default: section
regulation:
type: string
title: Regulation
version:
$ref: '#/components/schemas/VersionSummary'
slug:
type: string
title: Slug
title:
anyOf:
- type: string
- type: 'null'
title: Title
blocks:
items:
$ref: '#/components/schemas/Block'
type: array
title: Blocks
type: object
required:
- regulation
- version
- slug
- blocks
title: Section
Block:
properties:
slug:
anyOf:
- type: string
- type: 'null'
title: Slug
description: Su identificador en la sección (`articulo-12`), si lo tiene
parent:
anyOf:
- type: string
- type: 'null'
title: Parent
description: El slug del bloque que lo contiene
type:
type: string
title: Type
description: article, paragraph, list, table... como en la base
level:
anyOf:
- type: integer
- type: 'null'
title: Level
title:
anyOf:
- type: string
- type: 'null'
title: Title
text:
anyOf:
- type: string
- type: 'null'
title: Text
description: El texto plano
html:
anyOf:
- type: string
- type: 'null'
title: Html
description: El texto con su formato (tablas, listas), si se pide format=html
type: object
required:
- type
title: Block
RelatedDocument:
properties:
slug:
type: string
title: Slug
title:
type: string
title: Title
type:
type: string
title: Type
description: comentarios, guia, documento_apoyo, modificaciones, divulgativo...
status:
anyOf:
- type: string
- type: 'null'
title: Status
published_date:
anyOf:
- type: string
format: date
- type: 'null'
title: Published Date
source_url:
anyOf:
- type: string
- type: 'null'
title: Source Url
type: object
required:
- slug
- title
- type
title: RelatedDocument
VersionSummary:
properties:
version:
type: string
title: Version
description: El slug de la versión
title:
type: string
title: Title
status:
anyOf:
- type: string
- type: 'null'
title: Status
description: active, repealed, draft o in_progress
published_date:
anyOf:
- type: string
format: date
- type: 'null'
title: Published Date
effective_date:
anyOf:
- type: string
format: date
- type: 'null'
title: Effective Date
has_text:
type: boolean
title: Has Text
description: Si Normatia tiene su texto (índice y secciones)
default: false
curated:
type: boolean
title: Curated
description: 'Texto revisado a mano por Normatia. false con texto: convertido de forma automática y sin revisar, contrástalo con `source_url`'
default: false
source_url:
anyOf:
- type: string
- type: 'null'
title: Source Url
description: El documento original
type: object
required:
- version
- title
title: VersionSummary
SectionSummary:
properties:
slug:
type: string
title: Slug
title:
anyOf:
- type: string
- type: 'null'
title: Title
order:
type: integer
title: Order
type: object
required:
- slug
- order
title: SectionSummary
securitySchemes:
claveApi:
type: http
scheme: bearer
description: 'La clave de API de tu organización: `Authorization: Bearer sk-normatia-...`. Se crea en normatia.com, Mi cuenta > Claves API.'