Normatia Parcelas API

La parcela por su referencia catastral, de la base territorial de Normatia: afecciones, planeamiento, edificación y geometría.

GitHub OpenAPI

Operations 2

GET /v1/parcels Las parcelas de un punto #
GET /v1/parcels/{ref} Una parcela por su referencia catastral #

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/normatia-com:normatia-com-parcelas-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

normatia-com-parcelas-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Normatia Parcelas 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: Parcelas
  description: 'La parcela por su referencia catastral, de la base territorial de Normatia: afecciones, planeamiento, edificación y geometría.'
paths:
  /v1/parcels:
    get:
      tags:
      - Parcelas
      summary: Las parcelas de un punto
      description: 'La parcela que contiene el punto (latitud y longitud WGS84) o, si no cae en ninguna, las que están a menos de 50 m, de la más cercana a la más lejana. Una lista vacía: no hay ninguna parcela cerca (el mar, una plaza grande) o es un territorio que no está en la base.'
      operationId: findParcelsAtPoint
      parameters:
      - name: lat
        in: query
        required: true
        schema:
          type: number
          maximum: 90
          minimum: -90
          description: Latitud WGS84
          title: Lat
        description: Latitud WGS84
      - name: lon
        in: query
        required: true
        schema:
          type: number
          maximum: 180
          minimum: -180
          description: Longitud WGS84
          title: Lon
        description: Longitud WGS84
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParcelsAtPoint'
        '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/parcels/{ref}:
    get:
      tags:
      - Parcelas
      summary: Una parcela por su referencia catastral
      description: 'La parcela de esa referencia catastral (14 caracteres, o los 20 de un inmueble), de la base territorial de Normatia: municipio, clase catastral, superficie, centroide, recuadro y portales. Con `include`, en la misma llamada: `constraints` (cada capa de afección: afectada, no afectada o sin dato), `zoning` (clase de suelo, zona con sus parámetros y ámbitos), `buildings` (lo edificado), `units` (los inmuebles) y `geometry` (el polígono en GeoJSON). Lo que no está cargado en su municipio sale null o sin dato, nunca como «no afectada».'
      operationId: getParcel
      parameters:
      - name: ref
        in: path
        required: true
        schema:
          type: string
          minLength: 14
          maxLength: 24
          description: 'Referencia catastral: 14 caracteres (o 20)'
          title: Ref
        description: 'Referencia catastral: 14 caracteres (o 20)'
      - name: include
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: 'Bloques que añadir, separados por comas: constraints, zoning, buildings, units, geometry'
          examples:
          - constraints,zoning
          title: Include
        description: 'Bloques que añadir, separados por comas: constraints, zoning, buildings, units, geometry'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Parcel'
        '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:
    CodeLabel:
      properties:
        code:
          type: string
          title: Code
        label:
          type: string
          title: Label
      type: object
      required:
      - code
      - label
      title: CodeLabel
    Buildings:
      properties:
        built:
          type: boolean
          title: Built
          description: 'false: el Catastro está cargado y no hay nada edificado'
        condition:
          anyOf:
          - type: string
          - type: 'null'
          title: Condition
          description: funcional | deteriorado | ruina
        year_built:
          anyOf:
          - type: integer
          - type: 'null'
          title: Year Built
        built_area_m2:
          anyOf:
          - type: number
          - type: 'null'
          title: Built Area M2
        dwellings:
          anyOf:
          - type: integer
          - type: 'null'
          title: Dwellings
        units:
          anyOf:
          - type: integer
          - type: 'null'
          title: Units
          description: Inmuebles catastrales
        floors_above:
          anyOf:
          - type: integer
          - type: 'null'
          title: Floors Above
        floors_below:
          anyOf:
          - type: integer
          - type: 'null'
          title: Floors Below
        source:
          type: string
          title: Source
          default: Dirección General del Catastro (INSPIRE, edificios)
      type: object
      required:
      - built
      title: Buildings
    ZoneParameter:
      properties:
        value:
          anyOf:
          - type: number
          - type: 'null'
          title: Value
        unit:
          anyOf:
          - type: string
          - type: 'null'
          title: Unit
        text:
          anyOf:
          - type: string
          - type: 'null'
          title: Text
      type: object
      title: ZoneParameter
    Address:
      properties:
        street:
          type: string
          title: Street
          description: 'Como la escribe el Catastro: «PS NUESTRA SEÑORA DE LA O»'
        number:
          anyOf:
          - type: string
          - type: 'null'
          title: Number
        postal_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Postal Code
      type: object
      required:
      - street
      title: Address
    src__api__v1__parcelas__Zone:
      properties:
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
        date:
          anyOf:
          - type: string
          - type: 'null'
          title: Date
        instrument:
          anyOf:
          - type: string
          - type: 'null'
          title: Instrument
        code:
          type: string
          title: Code
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        percent:
          type: number
          title: Percent
          description: Qué parte de la parcela cae en la zona
        global_use:
          anyOf:
          - type: string
          - type: 'null'
          title: Global Use
        typology:
          anyOf:
          - type: string
          - type: 'null'
          title: Typology
        parameters:
          additionalProperties:
            $ref: '#/components/schemas/ZoneParameter'
          type: object
          title: Parameters
          description: 'Los parámetros validados: edificabilidad, altura, plantas, ocupación, parcela mínima, usos...'
      type: object
      required:
      - code
      - percent
      title: Zone
    ParcelsAtPoint:
      properties:
        object:
          type: string
          const: list
          title: Object
          default: list
        data:
          items:
            $ref: '#/components/schemas/ParcelAtPoint'
          type: array
          title: Data
        has_more:
          type: boolean
          title: Has More
          default: false
      type: object
      required:
      - data
      title: ParcelsAtPoint
    Zoning:
      properties:
        land_class:
          anyOf:
          - $ref: '#/components/schemas/LandClass'
          - type: 'null'
        zone:
          anyOf:
          - $ref: '#/components/schemas/src__api__v1__parcelas__Zone'
          - type: 'null'
        other_zones:
          items:
            $ref: '#/components/schemas/OtherZone'
          type: array
          title: Other Zones
        areas:
          items:
            $ref: '#/components/schemas/PlanningArea'
          type: array
          title: Areas
          description: Ámbitos de planeamiento que la tocan
        zone_from_other_municipality:
          type: boolean
          title: Zone From Other Municipality
          description: 'Una zona del municipio vecino la toca: el límite municipal no casa con la parcela'
          default: false
        contrast_land_class:
          anyOf:
          - $ref: '#/components/schemas/LandClass'
          - type: 'null'
          description: La clase de suelo de las fuentes de contraste (el SIU), aparte
      type: object
      title: Zoning
    PlanningArea:
      properties:
        code:
          type: string
          title: Code
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        instrument:
          anyOf:
          - type: string
          - type: 'null'
          title: Instrument
        percent:
          type: number
          title: Percent
      type: object
      required:
      - code
      - percent
      title: PlanningArea
    Unit:
      properties:
        ref:
          type: string
          title: Ref
          description: La referencia catastral del inmueble, de 20 caracteres
        use:
          anyOf:
          - type: string
          - type: 'null'
          title: Use
          description: residencial, comercial, oficinas, almacen_estacionamiento...
        area_m2:
          anyOf:
          - type: integer
          - type: 'null'
          title: Area M2
        year_built:
          anyOf:
          - type: integer
          - type: 'null'
          title: Year Built
        address:
          anyOf:
          - type: string
          - type: 'null'
          title: Address
          description: 'La vía y el número del inmueble: «CL VIRGEN DEL CORO 20»'
        postal_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Postal Code
      type: object
      required:
      - ref
      title: Unit
    ConstraintLayer:
      properties:
        layer:
          type: string
          title: Layer
          description: 'El código de la capa: `carreteras`, `costas`, `dph`...'
        affected:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Affected
          description: 'true afectada, false no afectada, null sin dato: null NUNCA quiere decir «no afectada»'
        status:
          type: string
          enum:
          - affected
          - partially_affected
          - context
          - not_affected
          - no_data
          title: Status
        label:
          anyOf:
          - type: string
          - type: 'null'
          title: Label
          description: Afecta, Exige trámite, Riesgo técnico, A verificar o Informativa (contexto)
        summary:
          anyOf:
          - type: string
          - type: 'null'
          title: Summary
          description: El hecho en una frase, con sus magnitudes
        distance_m:
          anyOf:
          - type: number
          - type: 'null'
          title: Distance M
        warnings:
          items:
            type: string
          type: array
          title: Warnings
        reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Reason
          description: Por qué no hay dato (`no_coverage`) o por qué es dudoso
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
      type: object
      required:
      - layer
      - affected
      - status
      title: ConstraintLayer
    ConstraintsSummary:
      properties:
        affected:
          type: integer
          title: Affected
        context:
          type: integer
          title: Context
        not_affected:
          type: integer
          title: Not Affected
        no_data:
          type: integer
          title: No Data
      type: object
      required:
      - affected
      - context
      - not_affected
      - no_data
      title: ConstraintsSummary
    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
    OtherZone:
      properties:
        code:
          type: string
          title: Code
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        percent:
          type: number
          title: Percent
      type: object
      required:
      - code
      - percent
      title: OtherZone
    Point:
      properties:
        lat:
          type: number
          title: Lat
        lon:
          type: number
          title: Lon
      type: object
      required:
      - lat
      - lon
      title: Point
    src__api__v1__parcelas__Place:
      properties:
        geo_id:
          type: string
          title: Geo Id
          description: 'El identificador de lugar de la API: `ES-` y el código INE'
        ine:
          type: string
          title: Ine
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
      type: object
      required:
      - geo_id
      - ine
      title: Place
    Units:
      properties:
        total:
          type: integer
          title: Total
        by_use:
          additionalProperties:
            type: integer
          type: object
          title: By Use
          description: Cuántos hay de cada uso (`sin_uso` sin él)
        data:
          items:
            $ref: '#/components/schemas/Unit'
          type: array
          title: Data
          description: Como mucho 200 de cada uso; `total` y `by_use` cuentan todos
        has_more:
          type: boolean
          title: Has More
          description: Si hay más inmuebles que los de `data`
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
          description: La Dirección General del Catastro o la Diputación foral
        date:
          anyOf:
          - type: string
          - type: 'null'
          title: Date
          description: La de los datos del Catastro de su municipio
        note:
          type: string
          title: Note
          default: Elaborado a partir de datos del Catastro. No es información catastral.
      type: object
      required:
      - total
      - has_more
      title: Units
    LandClass:
      properties:
        source:
          anyOf:
          - type: string
          - type: 'null'
          title: Source
        date:
          anyOf:
          - type: string
          - type: 'null'
          title: Date
        instrument:
          anyOf:
          - type: string
          - type: 'null'
          title: Instrument
        label:
          type: string
          title: Label
      type: object
      required:
      - label
      title: LandClass
    Parcel:
      properties:
        object:
          type: string
          const: parcel
          title: Object
          default: parcel
        ref:
          type: string
          title: Ref
          description: La referencia catastral de 14 caracteres
        place:
          $ref: '#/components/schemas/src__api__v1__parcelas__Place'
        cadastral_class:
          anyOf:
          - $ref: '#/components/schemas/CodeLabel'
          - type: 'null'
        main_use:
          anyOf:
          - type: string
          - type: 'null'
          title: Main Use
          description: Uso principal de lo edificado (residencial, industrial...)
        area_m2:
          anyOf:
          - type: number
          - type: 'null'
          title: Area M2
          description: Superficie oficial del Catastro, o medida en su huso UTM
        centroid:
          anyOf:
          - $ref: '#/components/schemas/Point'
          - type: 'null'
        bbox:
          anyOf:
          - items:
              type: number
            type: array
          - type: 'null'
          title: Bbox
          description: '[oeste, sur, este, norte], en grados'
        addresses:
          items:
            $ref: '#/components/schemas/Address'
          type: array
          title: Addresses
          description: Los portales, el más cercano a su punto primero
        constraints:
          anyOf:
          - $ref: '#/components/schemas/Constraints'
          - type: 'null'
          description: Con include=constraints
        zoning:
          anyOf:
          - $ref: '#/components/schemas/Zoning'
          - type: 'null'
          description: Con include=zoning. Vacío si el planeamiento de su municipio no está cargado
        buildings:
          anyOf:
          - $ref: '#/components/schemas/Buildings'
          - type: 'null'
          description: Con include=buildings. null si el Catastro de edificios no está cargado en su municipio
        units:
          anyOf:
          - $ref: '#/components/schemas/Units'
          - type: 'null'
          description: Con include=units. null si los datos del Catastro no están cargados en su municipio
        geometry:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Geometry
          description: 'Con include=geometry: GeoJSON (MultiPolygon, WGS84)'
        disclaimer:
          type: string
          title: Disclaimer
      type: object
      required:
      - ref
      - place
      - disclaimer
      title: Parcel
    Constraints:
      properties:
        summary:
          $ref: '#/components/schemas/ConstraintsSummary'
        layers:
          items:
            $ref: '#/components/schemas/ConstraintLayer'
          type: array
          title: Layers
      type: object
      required:
      - summary
      - layers
      title: Constraints
    ParcelAtPoint:
      properties:
        ref:
          type: string
          title: Ref
        contains_point:
          type: boolean
          title: Contains Point
          description: true si el punto cae dentro de la parcela
        distance_m:
          anyOf:
          - type: number
          - type: 'null'
          title: Distance M
          description: Distancia del punto a la parcela, si no lo contiene
      type: object
      required:
      - ref
      - contains_point
      title: ParcelAtPoint
  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.'