Spain Company Directory Scraper - Registro Mercantil avatar

Spain Company Directory Scraper - Registro Mercantil

Pricing

from $3.00 / 1,000 company records

Go to Apify Store
Spain Company Directory Scraper - Registro Mercantil

Spain Company Directory Scraper - Registro Mercantil

Scrape company data from Spain's official OpenData Registradores directory. Get NIF, officers, CNAE codes, legal form, address, and status from the Registro Mercantil - no API exists for this data.

Pricing

from $3.00 / 1,000 company records

Rating

0.0

(0)

Developer

getregdata

getregdata

Maintained by Community

Actor stats

0

Bookmarked

40

Total users

16

Monthly active users

0.78 hours

Issues response

2 days ago

Last modified

Share

Spain Company Directory Scraper | Directorio de Empresas del Registro Mercantil

Extract company data from Spain's official Registro Mercantil directory - NIF, officers, CNAE codes, legal form, address, and status for millions of Spanish companies - as structured JSON, in bulk, beyond what the directory's one-at-a-time manual search allows. Search by company name, look up NIF/CIF or IRUS in batches, and filter by CNAE or province. There is no public API for this data.

No login, no API key, nothing to configure - paste a name or NIF, get structured records back.

What data do you get?

One record per company:

{
"lookupStatus": "found",
"query": "Telefonica",
"companyName": "TELEFONICA SA",
"nif": "A28015865",
"legalForm": "Sociedades anonimas",
"cnaeCode": "6190",
"cnaeDescription": "Otras actividades de telecomunicaciones",
"naceCode": "6190",
"status": "Vigente",
"address": "GRAN VIA 28, MADRID, MADRID",
"registroMercantil": "MADRID",
"irus": "1000239977797",
"euid": "ES28065.000012387",
"website": "telefonica.com",
"officers": [
{ "name": "GAYO RODRIGUEZ EMILIO", "role": "Consejero Delegado" },
{ "name": "PALLETE LOPEZ JOSE MARIA ALVAREZ", "role": "Presidente" }
],
"registrySheet": "6164",
"sourceUrl": "https://opendata.registradores.org/directorio/-/sociedad/1000239977797/telefonica-sa"
}
FieldDescription
lookupStatusfound, or not_found_in_registry when the registry confirmed no company matches
queryThe search term, NIF, or IRUS that produced this row
companyNameOfficial registered name (denominacion social)
nifTax identification number (NIF/CIF)
legalFormS.A., S.L., S.L.U., S.Coop., etc.
cnaeCode / cnaeDescription / naceCode / naceDescriptionCNAE-2009 and European NACE activity codes
statusVigente, Disuelta, Liquidada, Extinguida, En liquidacion, Cierre de hoja
address / registroMercantilRegistered address and competent commercial registry
irus / euidUnique registry ID and European Unique Identifier
websiteCompany website if registered
officersAdministrators/officers with name and role
registrySheet / sourceUrlRegistry sheet reference and source page

How much does the Spanish company data cost?

Pay per event - no subscriptions, no minimum.

EventPrice
Actor start$0.025 per GB of run memory (2 GB default = $0.05 per run)
Company record$0.005
Volume (at the 2 GB default)Cost
10 results~$0.10
100 results~$0.55
1,000 results~$5.05

Volume discounts at Bronze/Silver/Gold tiers (up to 40% off).

What you are and are not charged for:

OutcomeIn the dataset?Charged?
Company retrieved (lookupStatus: "found")YesYes - 1 company record
Registry confirms no such company (not_found_in_registry)YesYes - a definitive answer is a real result
A lookup that could not complete (outage, unreachable page)NoNo - listed in FAILED_INPUTS so you can re-run exactly those
Companies excluded by your province / cnaeCode filterNoNo - filtered out before extraction

If a run cannot retrieve anything at all, it fails rather than reporting an empty success, so an outage is never mistaken for "no companies found."

Data comes from OpenData Registradores (opendata.registradores.org), the official open-data portal of Spain's Colegio de Registradores. It originates from the Registro Mercantil, where all Spanish companies must register. The directory is public and free (no login), and company registration data is public under Spanish commercial law (Reglamento del Registro Mercantil). You are responsible for GDPR/LOPD-GDD compliance when processing extracted data.

How do I use it?

Click Try it and paste this input:

{ "searchQuery": "Telefonica", "maxResults": 10 }

Batch NIF lookup: { "nifNumbers": ["A28015865", "A28017895"], "maxResults": 50 }. Direct IRUS lookup (fastest, skips search): { "irusNumbers": ["1000239977797"] }. Filter by activity: { "searchQuery": "software", "cnaeCode": "6201", "province": "Madrid" }.

Input options

ParameterTypeRequiredDefaultDescription
searchQuerystringNo-Company name (partial match)
nifNumbersstring[]No-List of NIF/CIF numbers for batch lookup
irusNumbersstring[]No-List of IRUS numbers for direct detail-page lookup
cnaeCodestringNo-Filter by CNAE activity code
provincestringNo-Filter by Spanish province
maxResultsintegerNo100Maximum records to return (1-10,000)

At least one of searchQuery, nifNumbers, irusNumbers, or cnaeCode is required.

What you can do with it

  • B2B lead generation - find companies by industry (CNAE) and province for targeted outreach.
  • KYC / KYB & due diligence - verify a Spanish company's registration, status, officers, and legal form before a deal.
  • CRM enrichment - resolve a NIF or name to official identifiers (NIF, IRUS, EUID) and address.
  • Market research - analyze company density by region, industry, and legal structure.
  • Investment screening - filter companies by activity, status, and registry data.

Run it from code

# cURL - start a run and get the dataset back
curl -X POST "https://api.apify.com/v2/acts/regdata~spain-company-directory-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "searchQuery": "Telefonica", "maxResults": 10 }'
// Node.js - apify-client
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('regdata/spain-company-directory-scraper').call({ searchQuery: 'Telefonica', maxResults: 10 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
# Python - apify-client
from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("regdata/spain-company-directory-scraper").call(run_input={"searchQuery": "Telefonica", "maxResults": 10})
items = client.dataset(run["defaultDatasetId"]).list_items().items

Integrations

Runs anywhere Apify does: call it from the REST API, schedule recurring enrichment, pipe results into n8n / Make / Zapier, or use it from any MCP client (Claude, Cursor) via mcp.apify.com.

FAQ

Is it legal to scrape the Registro Mercantil directory? Yes. It is Spain's official open-data portal; company registration data is public under Spanish commercial law. You remain responsible for GDPR/LOPD-GDD compliance when processing the data.

Do I need an account or API key? No. No login, no key, nothing to configure - just an Apify account.

What do I pay if a company is not in the registry? A definitive not_found_in_registry is billed as one record (the registry was queried and answered). A lookup that could not complete is not charged and is listed in FAILED_INPUTS to re-run.

Why did a province filter return fewer rows than maxResults? The directory's own search ignores a province name, so the actor filters the results itself and scans a bounded number of pages. A very rare province plus a very broad name search may return fewer matches. Use NIF or IRUS for exact lookups.

What export formats are supported? JSON, CSV, Excel, or XML, or read live via the API.

Limitations

  • Name searches may return partial matches; use NIF or IRUS for an exact lookup.
  • Province filtering is applied by the actor (the directory's own search ignores a province name), scanning a bounded number of pages, so a rare province + broad name may return fewer rows than maxResults.
  • An IRUS that cannot be opened is reported as a failed lookup (and not charged), because a stale identifier and a site problem are indistinguishable from the outside.
  • The directory shows the current registry state only (no historical data).
  • Officer data may be limited to current appointments visible on the detail page.

Part of a suite of official government registry actors - no public API, pay per result, no keys to supply.

CountryActors
PolandREGON/GUS · KRS financials · KRS board · CRBR UBO · KRZ debtors · MSiG gazette · KNF · PEP · EKW land · UOKiK · BDO waste · Premises
GermanyHandelsregister · Insolvency
SpainCompany directory (this actor) · BORME acts · Concursal
ItalyRegistro Imprese · PEC lookup
AustriaWKO directory · Ediktsdatei
FranceSociete.com
BelgiumKBO/BCE
CzechiaISIR insolvency
SlovakiaRPVS UBO
UAEADGM register
USACalifornia SoS · California UCC liens
GlobalAdverse media

Common combination: company directory (this actor) -> BORME acts -> Concursal insolvency -> adverse media for a Spanish KYB flow.

Full suite: apify.com/regdata · Callable from any MCP client via mcp.apify.com

Informacion en espanol

Que es este actor?

Este actor extrae datos de empresas del directorio oficial de OpenData Registradores - el portal de datos abiertos del Colegio de Registradores de Espana. Los datos provienen del Registro Mercantil, donde todas las sociedades espanolas deben inscribirse. El directorio es publico y gratuito, pero no dispone de API publica - este actor devuelve datos estructurados en formato JSON. Sin clave, sin registro.

Para quien?

  • Equipos comerciales B2B que buscan empresas por sector (CNAE) y provincia.
  • Departamentos de compliance que verifican inscripcion, estado y administradores.
  • Analistas de mercado e inversores que filtran empresas por actividad y estado.
  • Abogados y asesores que realizan due diligence sobre sociedades.

Que datos se extraen?

Denominacion social, NIF/CIF, forma juridica, codigo CNAE, estado, domicilio social, Registro Mercantil, IRUS, EUID, pagina web, administradores y cargos. Pagas solo por uso, sin suscripcion.


Directorio de empresas espanolas - Registro Mercantil OpenData

Extraccion automatizada de datos empresariales del directorio OpenData de Registradores de Espana. NIF, administradores, codigos CNAE, forma juridica, domicilio social y estado. No existe API publica para estos datos. Ideal para verificacion de empresas (KYC/KYB), prospeccion B2B e investigacion de mercado en Espana.