Spain company registry API: NIF lookup, officers and BORME events
A customer types a NIF or the first letters of a name; your form fills in the legal name, legal form, status, registered address and registry coordinates from the Spanish commercial registry (Registro Mercantil) as published in the BORME, and the same key reads the administrators, every later BORME act as an event, and the risk signals on the company. One response shape, the same as every other country the API covers.
What you get, and what you do not
Spain is covered end to end: the company record keyed on the NIF, its officers, each BORME act as a typed event, monitoring with webhooks, a registry-compliance signal, the AEAT large-debtor flags, public-procurement awards from the PLACSP, beta buyer-risk scores and, in beta and for Spain only, PEP screening. Spain is not one of the nine insolvency markets; Spanish concursal notices are on GET /search.
- Company record: yes, keyed on the NIF/CIF, with the registry coordinates (tomo, libro, folio, sección, hoja) on the detail (GET /companies/search, GET /companies/{id}).
- Officers: yes, the appointments published in the BORME, as appointments on the record and through GET /people/search (Spain is the default country).
- Corporate events: yes, each BORME act as a typed event (GET /company-events/search and /company-events/timeline).
- Monitoring: yes. Monitoring covers Spain, Ireland and Poland only, and Spain gets the full corporate-event stream (POST /monitor, GET /monitor).
- Registry-compliance signal: yes, the provisional closure of a registry sheet in the BORME (risk_flag_type=registry_compliance, include=risk_flags).
- Tax-debt flags: yes, from the AEAT list of large debtors (debts above EUR 600,000). Point-in-time and annual, not a live balance (has_risk_flag=true, include=risk_flags).
- Public procurement: yes, awards from the PLACSP (GET /procurement/awards?country=ES, and the latest awards with include=procurement).
- Procurement buyer risk: beta, Spain and France. A score about the contracting body, never about a supplier or a tender.
- PEP screening: beta and Spain only. Membership is by occupation, not by office, and there are no relatives or close associates (GET /sanctions/screen?include_pep=true).
- Insolvency: Spanish concursal notices published in the BORME are on GET /search, a different dataset from GET /insolvency/search, whose nine corporate markets are FR, DE, GB, AT, CH, NO, FI, US and NL.
- Beneficial owners: no.
Searching officers by name and reading corporate events need a Starter plan or above; a free key has 25 trial calls a month on each.
What the Spanish record gives your product
- Exact match on the NIF: nif=A46103834 with country=ES (company_number and vat are aliases). The match is exact, so send capitals with no spaces or hyphens.
- Autocomplete by name: an accent-insensitive, normalised, partial match ranked by a match score, one call per keystroke.
- The fields a form needs: legal name, legal form, status, registered address, postal code, city and province, the CNAE activity code with the statutory purpose (objeto social), share capital and the founding date.
- Registry coordinates: tomo, libro, folio, sección, hoja and inscripción on the company detail.
- Sector and new-company feeds: cnae= takes a code or prefix, objeto= a keyword in the objeto social, and founded_after= lists companies by incorporation date. These filters are for Spain.
- The register's own state: in Spain status dissolved means the company still exists pending liquidation (status_canonical in_dissolution).
A field the gazette never printed is null: capital and address come from the acts that establish them, so a company incorporated before the digital editions and never since moved or recapitalised can carry neither, and the NIF of the very newest companies can fill in on a later update.
Validate before you call
A company NIF (formerly the CIF) is a letter for the legal form (A for an S.A., B for an S.L.), seven digits and a control character, digit or letter, computed from the seven digits. A mistyped one can be rejected in your own code before it costs a call. The free identifier validator and a short JavaScript function on the full page do exactly that.
Beyond the record
- Officers: the company record carries appointments with role, dates and person; GET /people/search?name=...&country=ES finds officers by name.
- BORME events: each act is an event with an event_type (dissolution, director_change, capital_change, new_incorporation, name_change, address_change, liquidation, merger, demerger, status_change, insolvency), the raw BORME act code in act_type, the date and a notice_url to the gazette. Search by company_name: on the event endpoints company_number is the registry-sheet number the BORME prints, and the NIF is in vat_number.
- Monitoring: POST /monitor subscribes a company by its id and pushes corporate events, status changes and sanctions matches (sanctions screening is beta) to your signed webhook, or to GET /monitor if you poll.
- Registry-compliance signal: registry_sheet_closed_date on the detail, and signal sheet_closed under include=risk_flags. It is a compliance signal, not an insolvency or a dissolution; the closure is kept until a reopening, or any later act that needs an open sheet, is published.
- Tax-debt flags: GET /companies/search?has_risk_flag=true&country=ES lists flagged companies. The AEAT list reports balances as at 31 December of the prior year, is published about six months later, and inclusion is appealable. Each flag states in identifier_source whether its identifier was read directly or reconstructed with name corroboration, and the match is by exact NIF, which favours precision over recall.
- Public procurement: GET /procurement/awards?country=ES&nif=... lists the awards of a supplier, open tenders and minor contracts alike. Minor contracts are awarded directly by law, so read procedure and nature before summing amounts. Awards to natural persons are never returned.
- Buyer risk, beta: GET /procurement/buyers?country=ES ranks contracting bodies on competition and counterparty scores. A score is a prompt to look, not a finding of wrongdoing.
- PEP screening, beta and Spain only: membership is by occupation, not by office, and every hit carries its recorded offices and a pep_tier. There are no relatives or close associates, so it does not by itself satisfy a FATF PEP obligation.
- Concursal notices: GET /search?vat=A46103834&country=ES returns the insolvency filings, dissolutions and liquidations published in the BORME.
What Spain does not carry
No beneficial owners, no financial statements and no credit scores. Spain is not one of the nine insolvency markets. Spain is updated daily.
Pricing
Spain is included in every tier at no upcharge. Free — 14-day trial. 1,000 API calls per month, 10 requests/minute, no credit card. Subscribing keeps the same key working. Then Starter at €9.99/month, Professional at €29.99/month and Scale at €99.99/month, monthly or annual.
FAQ
How do I look up a Spanish company by NIF from an API? Call GET /companies/search?nif=A46103834&country=ES. The match is exact, so send the NIF in capitals with no spaces or hyphens, and validate the control character in your own code first.
Does it return administrators and BORME acts? Yes. The company record carries the appointments published in the BORME, and each act is an event with a typed event_type. Searching officers by name and reading events need a Starter plan or above; a free key has 25 trial calls a month on each.
Does the API cover Spanish insolvency proceedings? Spain is not one of the nine insolvency markets of GET /insolvency/search. The concursal notices published in the BORME are on GET /search, filtered by NIF, name or registry number.
What is the AEAT tax-debt flag, and how current is it? It marks companies on the AEAT list of large debtors (debts above EUR 600,000). It is point-in-time, not a live balance: the list reports balances as at 31 December of the prior year, is published about six months later, and inclusion is appealable.
Can I monitor Spanish companies? Yes. Monitoring covers Spain, Ireland and Poland only, and Spain gets the full corporate-event stream, delivered to a signed webhook or through GET /monitor.
Is there PEP screening for Spain? In beta and for Spain only. Membership is by occupation, not by office, and there are no relatives or close associates, so it does not by itself satisfy a FATF PEP obligation. Treat a hit as a prompt to investigate.
How much does the Spain company registry API cost? Spain is included in every tier at no upcharge. Free is a 14-day trial with 1,000 API calls per month and no credit card; subscribing keeps the same key working. Paid tiers run from EUR 9.99 to EUR 99.99 a month, monthly or annual.
Read the full page · Try the free NIF lookup · What is the BORME? · API del BORME (en español) · Pricing · API docs · Get a free API key
Source: BORME (Registro Mercantil), Spain.