Normatia Capas y cobertura API
Las capas de afección con sus fuentes y licencias, y qué hay cargado en cada municipio.
Las capas de afección con sus fuentes y licencias, y qué hay cargado en cada municipio.
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-capas-y-cobertura-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 Capas y cobertura 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: Capas y cobertura
description: Las capas de afección con sus fuentes y licencias, y qué hay cargado en cada municipio.
paths:
/v1/coverage:
get:
tags:
- Capas y cobertura
summary: Qué hay cargado en un municipio
description: 'Para un municipio: si están cargados el Catastro (parcelas, edificios, inmuebles y direcciones), las fuentes de planeamiento y cada capa de afección, completa, parcial o sin datos. Una capa sin datos sale `no_data` en las parcelas de ese municipio: no quiere decir que no las afecte.'
operationId: getCoverage
parameters:
- name: place
in: query
required: true
schema:
type: string
description: 'El municipio: `ES-` y su código INE (ES-41091), o el código INE'
title: Place
description: 'El municipio: `ES-` y su código INE (ES-41091), o el código INE'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/Coverage'
'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/layers:
get:
tags:
- Capas y cobertura
summary: Las capas de afección
description: 'Todas las capas que se cruzan con una parcela en `constraints`: su nombre, su tema, si se mira por intersección o por distancia, si es contexto, y sus fuentes con su licencia y atribución.'
operationId: listLayers
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LayerList'
'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:
CoverageSource:
properties:
dataset:
type: string
title: Dataset
organization:
anyOf:
- type: string
- type: 'null'
title: Organization
version:
anyOf:
- type: string
- type: 'null'
title: Version
description: La versión o fecha del dataset en la base
status:
type: string
enum:
- complete
- partial
- no_data
title: Status
type: object
required:
- dataset
- status
title: CoverageSource
Coverage:
properties:
object:
type: string
const: coverage
title: Object
default: coverage
place:
additionalProperties:
anyOf:
- type: string
- type: 'null'
type: object
title: Place
cadastre:
additionalProperties:
type: string
enum:
- complete
- partial
- no_data
type: object
title: Cadastre
description: parcels, buildings, units y addresses
planning:
items:
$ref: '#/components/schemas/CoverageSource'
type: array
title: Planning
description: Las fuentes de planeamiento del municipio, las de contraste incluidas
layers:
items:
$ref: '#/components/schemas/LayerCoverage'
type: array
title: Layers
summary:
additionalProperties:
type: integer
type: object
title: Summary
type: object
required:
- place
- cadastre
- layers
- summary
title: Coverage
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
Layer:
properties:
code:
type: string
title: Code
description: El código de la capa, el mismo de `constraints.layers[].layer`
name:
type: string
title: Name
group:
anyOf:
- type: string
- type: 'null'
title: Group
description: 'El tema del informe de afecciones: Agua, Medio natural...'
mode:
type: string
title: Mode
description: 'intersects: si la parcela la toca; distance: a qué distancia está; raster'
distance_m:
anyOf:
- type: number
- type: 'null'
title: Distance M
description: Hasta qué distancia se mira, si es por distancia
informative:
type: boolean
title: Informative
description: Contexto, no una afección
declared_coverage:
anyOf:
- type: string
- type: 'null'
title: Declared Coverage
provinces_without_data:
items:
type: string
type: array
title: Provinces Without Data
sources:
items:
$ref: '#/components/schemas/LayerSource'
type: array
title: Sources
type: object
required:
- code
- name
- mode
- informative
- sources
title: Layer
LayerCoverage:
properties:
code:
type: string
title: Code
name:
type: string
title: Name
status:
type: string
enum:
- complete
- partial
- no_data
title: Status
description: 'complete: todos sus datasets cargados en el municipio; no_data: ninguno'
sources:
items:
$ref: '#/components/schemas/CoverageSource'
type: array
title: Sources
type: object
required:
- code
- name
- status
- sources
title: LayerCoverage
LayerList:
properties:
object:
type: string
const: list
title: Object
default: list
data:
items:
$ref: '#/components/schemas/Layer'
type: array
title: Data
has_more:
type: boolean
title: Has More
default: false
type: object
required:
- data
title: LayerList
LayerSource:
properties:
dataset:
type: string
title: Dataset
organization:
anyOf:
- type: string
- type: 'null'
title: Organization
license:
anyOf:
- type: string
- type: 'null'
title: License
attribution:
anyOf:
- type: string
- type: 'null'
title: Attribution
catalog_url:
anyOf:
- type: string
- type: 'null'
title: Catalog Url
verified_at:
anyOf:
- type: string
- type: 'null'
title: Verified At
type: object
required:
- dataset
title: LayerSource
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.'