Normatia Municipios API
Municipios, provincias y comunidades, con los datos técnicos de cada municipio y la norma de donde sale cada uno.
Municipios, provincias y comunidades, con los datos técnicos de cada municipio y la norma de donde sale cada uno.
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-municipios-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 Municipios 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: Municipios
description: Municipios, provincias y comunidades, con los datos técnicos de cada municipio y la norma de donde sale cada uno.
paths:
/v1/places:
get:
tags:
- Municipios
summary: Buscar un municipio
description: Municipios, provincias y comunidades por su nombre, sin distinguir mayúsculas ni tildes, o por el código INE. Primero los que se llaman exactamente así; entre los municipios, los más poblados.
operationId: listPlaces
parameters:
- name: q
in: query
required: true
schema:
type: string
minLength: 1
maxLength: 100
description: El nombre o el código INE
title: Q
description: El nombre o el código INE
- name: level
in: query
required: false
schema:
anyOf:
- enum:
- region
- province
- municipality
type: string
- type: 'null'
title: Level
- name: within
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Solo los que están dentro de ese lugar (ES-41, ES-C01)
title: Within
description: Solo los que están dentro de ese lugar (ES-41, ES-C01)
- name: limit
in: query
required: false
schema:
type: integer
maximum: 50
minimum: 1
default: 10
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PlaceList'
'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/places/{place}:
get:
tags:
- Municipios
summary: Un municipio y sus datos técnicos
description: El lugar con su provincia y su comunidad. En un municipio, además, su ubicación y sus datos técnicos (zona climática, sismicidad, nieve, viento, pluviometría, radón, rayo...), cada uno con la norma de donde sale, y cuántas normas le aplican, de la estatal a la municipal.
operationId: getPlace
parameters:
- name: place
in: path
required: true
schema:
type: string
title: Place
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PlaceDetail'
'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:
Location:
properties:
latitude:
anyOf:
- type: number
- type: 'null'
title: Latitude
longitude:
anyOf:
- type: number
- type: 'null'
title: Longitude
altitude_m:
anyOf:
- type: number
- type: 'null'
title: Altitude M
description: Metros sobre el nivel del mar
area_km2:
anyOf:
- type: number
- type: 'null'
title: Area Km2
population:
anyOf:
- type: integer
- type: 'null'
title: Population
type: object
title: Location
PlaceDetail:
properties:
object:
type: string
const: place
title: Object
default: place
geo_id:
type: string
title: Geo Id
description: ES-41091 (municipio), ES-41 (provincia), ES-C01 (comunidad) o ES
ine:
anyOf:
- type: string
- type: 'null'
title: Ine
description: El código INE del municipio o de la provincia
name:
type: string
title: Name
description: 'Como lo escribe el INE: «Puerto de Santa María, El»'
display_name:
type: string
title: Display Name
description: 'Para enseñar, con el artículo delante: «El Puerto de Santa María»'
level:
type: string
enum:
- country
- region
- province
- municipality
title: Level
province:
anyOf:
- $ref: '#/components/schemas/PlaceRef'
- type: 'null'
region:
anyOf:
- $ref: '#/components/schemas/PlaceRef'
- type: 'null'
location:
anyOf:
- $ref: '#/components/schemas/Location'
- type: 'null'
description: Solo en los municipios
technical_data:
anyOf:
- $ref: '#/components/schemas/TechnicalData'
- type: 'null'
description: Solo en los municipios
regulations:
additionalProperties:
type: integer
type: object
title: Regulations
description: 'Cuántas normas aplican, por ámbito: national, regional y municipal'
links:
additionalProperties:
type: string
type: object
title: Links
type: object
required:
- geo_id
- name
- display_name
- level
title: PlaceDetail
TechnicalData:
properties:
climate_zone:
$ref: '#/components/schemas/ClimateZone'
design_temperatures:
$ref: '#/components/schemas/DesignTemperatures'
seismic:
$ref: '#/components/schemas/Seismic'
snow:
$ref: '#/components/schemas/Snow'
wind:
$ref: '#/components/schemas/src__api__v1__lugares__Zone'
description: 'Zona eólica: A, B o C'
rainfall_hs1:
$ref: '#/components/schemas/src__api__v1__lugares__Zone'
description: 'Zona pluviométrica de promedios: I a V'
drainage_hs5:
$ref: '#/components/schemas/Drainage'
thermal_zone_hs3:
$ref: '#/components/schemas/src__api__v1__lugares__Zone'
description: W, X, Y o Z
radon:
$ref: '#/components/schemas/Radon'
lightning:
$ref: '#/components/schemas/Lightning'
solar_irradiation_kwh_m2_day:
$ref: '#/components/schemas/MonthlySeries'
mains_water_temperature_c:
$ref: '#/components/schemas/MonthlySeries'
type: object
required:
- climate_zone
- design_temperatures
- seismic
- snow
- wind
- rainfall_hs1
- drainage_hs5
- thermal_zone_hs3
- radon
- lightning
- solar_irradiation_kwh_m2_day
- mains_water_temperature_c
title: TechnicalData
MonthlySeries:
properties:
monthly:
anyOf:
- items:
type: number
type: array
- type: 'null'
title: Monthly
description: 12 valores, de enero a diciembre
source:
anyOf:
- $ref: '#/components/schemas/Source'
- type: 'null'
type: object
title: MonthlySeries
Radon:
properties:
listed:
type: boolean
title: Listed
description: 'Si el municipio figura en el Apéndice B. false: la sección HS 6 no es preceptiva'
zone:
anyOf:
- type: string
enum:
- I
- II
- type: 'null'
title: Zone
source:
$ref: '#/components/schemas/Source'
type: object
required:
- listed
- source
title: Radon
src__api__v1__lugares__Zone:
properties:
zone:
anyOf:
- type: string
- type: 'null'
title: Zone
source:
$ref: '#/components/schemas/Source'
type: object
required:
- source
title: Zone
ClimateZone:
properties:
value:
anyOf:
- type: string
- type: 'null'
title: Value
description: 'α1 a E1: la letra de invierno y el número de verano'
source:
$ref: '#/components/schemas/Source'
type: object
required:
- source
title: ClimateZone
Lightning:
properties:
ground_flash_density:
anyOf:
- type: number
- type: 'null'
title: Ground Flash Density
description: Ng, impactos por km² y año
source:
$ref: '#/components/schemas/Source'
type: object
required:
- source
title: Lightning
Drainage:
properties:
zone:
anyOf:
- type: string
- type: 'null'
title: Zone
description: A o B
isohyet:
anyOf:
- type: number
- type: 'null'
title: Isohyet
intensity_mm_h:
anyOf:
- type: number
- type: 'null'
title: Intensity Mm H
description: Intensidad pluviométrica, en mm/h
source:
$ref: '#/components/schemas/Source'
type: object
required:
- source
title: Drainage
DesignTemperatures:
properties:
winter_p99_c:
anyOf:
- type: number
- type: 'null'
title: Winter P99 C
description: Temperatura exterior de cálculo en invierno, percentil 99
summer_p1_c:
anyOf:
- type: number
- type: 'null'
title: Summer P1 C
description: Temperatura exterior de cálculo en verano, percentil 1
source:
anyOf:
- $ref: '#/components/schemas/Source'
- type: 'null'
type: object
title: DesignTemperatures
src__api__v1__lugares__Place:
properties:
object:
type: string
const: place
title: Object
default: place
geo_id:
type: string
title: Geo Id
description: ES-41091 (municipio), ES-41 (provincia), ES-C01 (comunidad) o ES
ine:
anyOf:
- type: string
- type: 'null'
title: Ine
description: El código INE del municipio o de la provincia
name:
type: string
title: Name
description: 'Como lo escribe el INE: «Puerto de Santa María, El»'
display_name:
type: string
title: Display Name
description: 'Para enseñar, con el artículo delante: «El Puerto de Santa María»'
level:
type: string
enum:
- country
- region
- province
- municipality
title: Level
province:
anyOf:
- $ref: '#/components/schemas/PlaceRef'
- type: 'null'
region:
anyOf:
- $ref: '#/components/schemas/PlaceRef'
- type: 'null'
type: object
required:
- geo_id
- name
- display_name
- level
title: Place
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
Snow:
properties:
ground_load_kn_m2:
anyOf:
- type: number
- type: 'null'
title: Ground Load Kn M2
description: sk, sobrecarga de nieve en terreno horizontal
winter_climate_zone:
anyOf:
- type: integer
- type: 'null'
title: Winter Climate Zone
description: La zona de clima invernal, de 1 a 7
source:
$ref: '#/components/schemas/Source'
type: object
required:
- source
title: Snow
PlaceList:
properties:
object:
type: string
const: list
title: Object
default: list
data:
items:
$ref: '#/components/schemas/src__api__v1__lugares__Place'
type: array
title: Data
has_more:
type: boolean
title: Has More
description: 'Hay más resultados que `limit`: afina la búsqueda'
type: object
required:
- data
- has_more
title: PlaceList
PlaceRef:
properties:
geo_id:
type: string
title: Geo Id
name:
type: string
title: Name
type: object
required:
- geo_id
- name
title: PlaceRef
Source:
properties:
citation:
type: string
title: Citation
description: La norma y el anejo de donde sale el dato
regulation:
anyOf:
- type: string
- type: 'null'
title: Regulation
description: El slug de la norma en /v1/regulations, si está en el catálogo
type: object
required:
- citation
title: Source
Seismic:
properties:
basic_acceleration_g:
anyOf:
- type: number
- type: 'null'
title: Basic Acceleration G
description: ab, en g. null si el municipio no figura en el Anejo 1
contribution_coefficient_k:
anyOf:
- type: number
- type: 'null'
title: Contribution Coefficient K
below_0_04g:
type: boolean
title: Below 0 04G
description: 'El municipio no figura en el Anejo 1: ab < 0,04g y la norma no es obligatoria (art. 1.2.3)'
default: false
source:
$ref: '#/components/schemas/Source'
type: object
required:
- source
title: Seismic
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.'