Start here
This guide contains public integration notes for Spain. Use it for identifier formats, search behavior, and country-specific caveats. The live source of truth for coverage, pricing, data sources, documents, legal forms, roles, and status values is the pricing page.Spain coverage, pricing, and sources
Open the current catalog for supported datapoints, documents, sources, identifiers, and availability.
Country details below are preserved as integration notes. If a table or example conflicts with the live pricing page, use the pricing page as the source of truth and contact support.
Data Sources
Spain uses four data sources for company information. Structured profile data comes from a public registry portal, document retrieves from an authenticated electronic portal, supplementary data from the BORME (official commercial gazette), and foundations from the Registro de Fundaciones.Structured Profile Data
- OpenData Registradores (opendata.registradores.org). Operated by the Colegio de Registradores de la Propiedad y Mercantiles de Espana. This is the primary source for structured company profile data: company name (denominacion social), legal form (forma social), status (estado), NIF, IRUS, EUID, registered address (domicilio social), share capital, CNAE_2009 activity code, legal representatives (administradores/cargos), and incorporation date (constitucion). Data is extracted from the registry.
Document Retrieval
- SEDE Electronica del Colegio de Registradores (sede.registradores.org). The official electronic portal of the Colegio de Registradores. Used for search/NIF resolution (to obtain the IRUS identifier) and document retrieval: trade register extracts (Nota Informativa Mercantil) and financial statements (Deposito de Cuentas). Documents are retrieved with real-time pricing and delivered as PDFs.
Documents are priced in real time by the register, and prices vary with the size of a company’s registry history. Documents priced above €200 by the register are not offered by default: they are excluded from
availableDocuments and cannot be ordered. This ceiling exists to keep document pricing predictable; it can be raised on demand for your account — contact us.BORME (Supplementary)
- BORME (Boletin Oficial del Registro Mercantil). Spain’s official commercial gazette, published daily. Used as a supplementary enrichment source for company profiles (activity descriptions, director appointment dates) and as the source of sole shareholder information. When the register lists a company without an internal register reference, its company details and officer history come from BORME, provided a matching BORME record is found.
Registro de Fundaciones (Foundations)
- Registro de Fundaciones de Competencia Estatal (Ministerio de Justicia). Spain’s national register of state-level foundations. Foundations carry a NIF beginning with G and resolve through this register instead of the mercantile sources above. G is not only foundations (savings banks, many economic interest groupings, UTEs, pension funds and mutual guarantee companies carry it too): a G NIF the foundation register does not hold is served from the mercantile sources. It returns the legal name, NIF, registration number, constitution and registration dates, registered seat, purposes (fines), and the governing board (patronato) plus senior management as legal representatives. The legal form is Fundación. A printable Foundation Register Extract of the public profile is available under
documents.tradeRegisterExtract.
Foundations have no shareholders or beneficial owners. The patronato is the governing body, not an ownership structure, so
shareholders returns a datapoint_not_applicable outcome for foundations. Coverage is limited to foundations of state competence (those operating across more than one autonomous community). Foundations registered only in a regional (autonomous-community) register are not covered.Search uses SEDE for NIF resolution. Name and NIF searches query SEDE to resolve the company’s IRUS identifier, then OpenData is queried for structured profile data using that IRUS.
Company Identifiers
Query Identifiers
Primary Identifier: We use NIF (Numero de Identificacion Fiscal) as the company ID for all Spanish entities.NIF is the standard Spanish tax identification number. For legal entities, the first letter indicates the legal form (Orden EHA/451/2008):
- A: Sociedad Anonima (SA)
- B: Sociedad Limitada (SL)
- C: Sociedad Colectiva
- D: Sociedad Comanditaria
- E: Comunidad de bienes and other entities without legal personality
- F: Cooperatives
- G: Associations and, before 2008, other entity types. Foundations carry G and resolve through the Registro de Fundaciones; a G NIF that is not a foundation is served from the mercantile register
- H: Comunidad de propietarios
- J: Sociedad Civil
- N: Foreign entities
- P: Local corporations
- Q: Public bodies
- R: Religious congregations and institutions
- S: State and regional administration bodies
- U: Temporary business associations (UTE)
- V: Other entity types
- W: Permanent establishments of non-resident entities
Identifiers in API Response
Once you retrieve company data, theidentifiers object contains all available identifiers for that entity:
Legal Entity Identifier (LEI)
GLEIF is the supplementary data source for this identifier.company.identifiers.lei is optional. It is returned when the NIF (nif) or mercantile-register sheet (hoja) matches exactly one LEI through a GLEIF registration or validation reference.
A trailing control digit on a GLEIF hoja reference is ignored when matching it to the register sheet.
The Legal Entity Identifier has 20 uppercase alphanumeric characters, ending in two check digits.
Coverage varies by entity. An absent lei does not prove that the company has no LEI. Lapsed, retired or merged LEIs may be returned; annulled LEIs are excluded.
Search Capabilities
Search automatically detects the identifier type and routes to the appropriate handler:Branch filtering: When multiple IRUS entries exist for the same NIF (e.g., branches, offices, agencies), the system uses a scoring algorithm to select the main entity. Branch keywords such as SUCURSAL, URBANA, AGENCIA, OFICINA, and DELEGACION receive a heavy penalty. Current (active) status and shorter names (likely parent entities) receive a bonus.
Active companies only
Search can return companies that are no longer active.activeOnly=true removes those whose status is known at search time; the others are kept. Only foundations found by name are filtered (an extinguished foundation is removed). Company searches, and NIF lookups of foundations, return the entity whatever its status.
Quirks & Gotchas
Company Status
Company status comes from the OpenData RegistradoresEstado field and from the acts published in the BORME. Every value is mapped deterministically to an active flag and a standardized status.
Status Mapping
The BORME closes a company (dissolution, extinction, insolvency) but never reopens one: when the BORME records no such act, the register’s own state stands. The status list is published on the pricing page. A state the register shows that is not listed above keeps its wording and is classified automatically.
Legal Forms
Spanish company law makes the legal form part of the company name (“S.L.”, “Sociedad Anónima”, “S.Coop.”, …), so the legal form is read from the name. When the name carries no form, it is read from the OpenData Registradores “Forma social”, which is a register category (“Sociedades de responsabilidad limitada”, “Sociedades anónimas”, …) and is returned as the form it denotes. Failing both, the first letter of the NIF gives it (A sociedad anónima, B sociedad limitada, C sociedad colectiva, D sociedad comanditaria, F cooperativa, J sociedad civil, U UTE, W permanent establishment); that letter also tells a sociedad colectiva from a sociedad civil when the name only says “S.C.”. The mapping is deterministic: each form has a fixed English translation, standardized type and, where GLEIF lists one, an ISO 20275 (ELF) code.Single-member companies are returned under their form: an “S.L.U.” is a Sociedad Limitada and an “S.A.U.” a Sociedad Anónima. A company whose name and register category both carry no recognisable form keeps the register’s wording, with a standardized type.
Legal Representatives and Other Key Persons
Legal representatives come from the OpenData Registradores “Administradores y cargos” section, the BORME appointment acts and, for foundations, the Registro de Fundaciones. Registered administrators, delegated directors, attorneys and liquidators appear underlegalRepresentatives. Office-only board members, secretaries, auditors, foundation trustees, substitute officers and owners appear under otherKeyPersons. A board or trustee appointment does not by itself establish individual signing authority. General managers and insolvency administrators also require the applicable mandate or court regime; an office label alone is insufficient. The register may omit the detailed signing mandate, restrictions or co-signatories.
The registers print the same office many ways (BORME abbreviates it, OpenData capitalises it at will, the foundation register uses feminine forms and ordinals such as “Presidenta” or “Vicepresidente 1º”). Each is returned under one sentence-case label, with a fixed English translation and standardized role:
All Spanish roles
All Spanish roles
An office printed in a form not listed above keeps the register’s wording, and its standardized role is classified automatically.
Shareholders
Shareholders are included in the company data block. Spanish ownership is public only for unipersonal companies (SLU, SAU): when BORME records a sole member (socio único), that member is returned as a single shareholder holding 100%. Companies with several shareholders publish no ownership information, soshareholders is returned empty for them. For foundations, shareholders returns a datapoint_not_applicable outcome.
Activity Code Mapping
Spain uses the CNAE_2009 (Clasificacion Nacional de Actividades Economicas) classification, which is the Spanish national adaptation of the European NACE standard. The system maps activity codes across three levels:OpenData Registradores publishes the CNAE_2009 code only. The NACE code is derived from it and converted to NACE Rev. 2.1, and the ISIC Rev. 5 code comes from the official NACE to ISIC correspondence, so both normally carry
isAIInferred: false. AI matching is used only as a last resort when no formal correspondence exists, and the isAIInferred flag is then true. Each classification is published once, under CNAE_2009, NACE or ISIC.Main activity: OpenData Registradores publishes a single CNAE_2009 code per company (the “actividad principal”), so it is by definition the main activity. The CNAE_2009 and NACE entries carry
isMainActivity: true, and the ISIC code derived from them inherits the flag.Activity Code Fields
OpenData Registradores provides the CNAE_2009 code. NACE and ISIC are derived from it:Data Availability Matrix
Legend: ✅ Available | ❌ Not Available | Async = Asynchronous processing
Documents by Company Type
Documents are retrieved from SEDE Electronica del Colegio de Registradores with real-time pricing.Commercial Companies (NIF)
Document prices are fetched in real-time from SEDE and displayed in the
price field before purchase. For trade register extracts, the following data segments are included: capital, social representation, administrators, and attorneys-in-fact.Example API Responses
All examples use placeholder data. Query:POST /v2/company with { "id": "<NIF>", "countryCode": "ES", "dataPoints": ["company", "legalRepresentatives", "otherKeyPersons"] }
Active SA (Sociedad Anonima) -- with VAT verification
Active SA (Sociedad Anonima) -- with VAT verification
Active SL (Sociedad Limitada) -- multiple administrators
Active SL (Sociedad Limitada) -- multiple administrators
Closed company (Extinguida)
Closed company (Extinguida)
active: false and status Extinguida. Documents may still be available from SEDE.VAT unverified (not in ROI)
VAT unverified (not in ROI)
unverified because the company is not registered in the ROI (Registro de Operadores Intracomunitarios). This is common for small companies that do not engage in EU cross-border trade.Available Documents
Available Documents
Documents are returned when
"dataPoints": ["availableDocuments"] is requested.Trade Register Extract segments included:
- Capital social (share capital)
- Representacion social (social representation)
- Administradores (directors)
- Apoderados (attorneys-in-fact)
Data Source Priority & Routing
For a given entity, the system follows this resolution flow:Company Profile Resolution Flow:
- SEDE search by NIF — Resolves the NIF to an IRUS identifier and returns search results. The resolver selects the main entity (filtering out branches).
- OpenData lookup by IRUS — Retrieves structured data from OpenData Registradores (name, legal form, status, address, capital, CNAE_2009, officers, registration date). If SEDE lists the company but gives no IRUS, company details and officer history come from BORME instead, when a matching BORME record is found.
- Enrichment — Legal form, status and roles are mapped deterministically from the register’s values; the address is AI-parsed into components. NACE and ISIC codes are derived from the CNAE_2009 code through the official correspondences.
- VIES VAT validation — A qualified VIES check validates the VAT number and obtains a consultation number (legal proof for audits).