regdata_spain_company_directory
Retrieve comprehensive company information from Spain's official business registry. Obtain NIF, officers, CNAE codes, legal form, address, and status.
Instructions
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. Advanced fields beyond this schema are also accepted (regdata_describe lists them).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cnaeCode | No | Filter results by CNAE economic activity code. Example: '6201' (computer programming), '4711' (retail sale in non-specialized stores) | |
| maxItems | No | Optional cap on billed dataset items returned. | |
| province | No | Filter results by Spanish province. Matching is case- and accent-insensitive and understands the registry's dual-language names (searching 'Alava' matches 'ARABA/ALAVA'). Companies outside the province are discarded before extraction, so you are never charged for them. Example: 'Madrid', 'Barcelona', 'Valencia', 'Sevilla' | |
| maxResults | No | Maximum number of company records to return. Default: 100. Set higher for broader searches. | |
| nifNumbers | No | List of NIF/CIF tax identification numbers to look up. Each NIF is looked up individually for exact-match results. | |
| irusNumbers | No | List of IRUS numbers for direct company lookup. Skips search and goes straight to detail pages. Find IRUS in company URLs like /directorio/-/sociedad/{irus}/{company-name}. Example: '1000239977797' | |
| searchQuery | No | Search by company name (partial match). Example: 'Telefonica', 'Inditex', 'Banco Santander' |