Companies in Spain: How to Build a B2B Company List (and Contact It Legally)
How to build a list of companies in Spain: official sources, CNAE and region filters, the CRM columns to keep, and the LSSI and AEPD rules for email and calls.
You sell to businesses in Spain: a Portuguese packaging maker looking for food producers in Valencia and Murcia, a German software firm that wants 40 demos with Madrid distributors this quarter, a UK agency targeting Spanish online shops. Before any call or email you need the same thing: a clean list of companies in Spain, filtered to the ones that can buy from you. This guide shows where that list can come from, how to filter it, which columns to keep, and the Spanish rules that decide how you may contact the companies on it.
Short answer: Spain had 3,310,824 active companies on 1 January 2025, and 54.4% of them had no employees (INE, DIRCE 2025). Build your list from a sector filter (CNAE activity code), a region filter and a size filter, keep the legal form of each company, and plan the first contact around Spain's email rule: article 21 of the LSSI forbids promotional email the recipient has not requested or expressly authorised (Ley 34/2002, BOE).
Key facts (data checked November 2026)
- 3,310,824 economically active companies in Spain on 1 January 2025, 1.7% more than a year earlier (INE, Central Business Directory DIRCE 2025).
- 1,800,443 of them (54.4%) had no employees and 901,955 (27.2%) had one or two (INE).
- By sector: 625,664 in trade (18.9%), 389,146 in construction (11.8%) and 172,765 in industry (5.2%) (INE).
- Three regions hold half of all companies: Catalonia 18.4%, Andalusia 16.3% and the Community of Madrid 15.9% (INE).
- Commercial phone calls must rest on prior consent or legitimate interest, and the caller must check advertising exclusion lists first, under the Spanish data protection authority's Circular 1/2023 (AEPD Circular 1/2023, BOE).
Where can you get a list of companies in Spain?
There are three kinds of source, and most sellers end up combining two of them.
- Official registers. The Registro Mercantil holds the legal record of every company, and the BORME (the official gazette of the companies register) publishes new incorporations, appointments and dissolutions every working day. They are the most reliable source for legal names and status, but they do not give you a sales email or a direct phone number.
- Statistics. INE's DIRCE counts companies by activity, size and region. It tells you how big your market is (how many construction firms there are in Andalusia, for example) but it is not a contact list.
- Business directories and B2B databases. These add what the registers lack: website, switchboard phone, generic email, address and activity. Check how the data was collected and when it was last updated before you use it.
A good working method: size the market with INE, pull contacts from a database, and check the legal status of your top accounts in the register before a large deal.
How do you filter the list to companies that can buy?
Filter on four things, in this order, and write each filter down so you can repeat it next quarter.
- Activity (CNAE code). Spain classifies every company by its CNAE activity code. Pick the codes of your buyers, not your own: a packaging maker wants food manufacturing and wholesale, not "packaging".
- Region. Start with one or two autonomous communities you can serve well. Catalonia, Andalusia and Madrid together hold about half of Spanish companies, so they fill a pipeline fastest.
- Size. More than half of Spanish companies have no employees. If you sell software seats or industrial supplies, remove one-person businesses early or you will spend your calls on people who cannot buy.
- Legal form. Keep the form (S.L., S.A., cooperative, sole trader). It tells you whether you are writing to a company or to a self-employed person (autónomo), which matters for the contact rules below.
Something to copy: the columns of a Spanish company list
Set up your spreadsheet or CRM with these columns before you import anything. They keep the list usable and show where each contact came from.
ColumnWhy you need it Company name (razón social) and trade nameThe legal name is in the register; the trade name is what the company calls itself on its website. Tax ID (NIF)Removes duplicates and lets you check the company in the register. Legal formSeparates companies from self-employed people. CNAE code and activityYour main segment filter. Province and autonomous communityAssigns accounts to reps and decides the language of your message (Spanish, or Catalan where it helps). Website, phone, emailYour contact channels; prefer generic company addresses (info@, ventas@) for a first contact. Source and date checkedProves where the data came from and tells you when to refresh it. Legal basis and opt-out dateRecords consent or legitimate interest, and anyone who said no.What are the rules for contacting Spanish companies?
Spain is stricter on email than many EU markets, so plan the channel before you write a single message.
- Email: article 21 of the LSSI prohibits promotional email that the recipient has not previously requested or expressly authorised. The exception is an existing customer relationship where you offer similar products, and every message must include a simple, free way to opt out (LSSI, BOE). The article does not create an exception for business addresses, so a cold promotional email campaign to a Spanish list is risky; check with a Spanish lawyer before you run one.
- Phone: commercial calls need prior consent or a legitimate interest. For people contacted in their professional role, the AEPD's circular applies the professional-contact presumption only to offers related to their professional activity, and callers must check advertising exclusion systems first (AEPD Circular 1/2023). In practice: call the company switchboard, about their business, and screen your list against the Lista Robinson.
- A practical order: phone or LinkedIn first to ask whether you may send information, then email to the people who said yes. Record that yes in the "legal basis" column.
Common mistakes: treating autónomos like companies, buying a list with no source or date, sending one generic Spanish message to every region, and keeping people on the list after they ask to be removed.
How do you measure whether the list works?
Track four numbers from the first week: the share of phone numbers that reach the right company, the share of emails that bounce, the share of calls that end in a "yes, send me information", and meetings booked per 100 companies contacted. Compare them by segment (CNAE code and region) after the first 200 contacts. A segment with a high wrong-number or bounce rate needs a fresher source; a segment with good contact rates but no meetings needs a different offer, not a bigger list.
Where to get the contacts
If you would rather start from a ready file, Bot Harbour has Spain datasets you can filter by activity and province, each with a free sample (channel counts checked November 2026):
- Suppliers, Distributors & Manufacturers in Spain: 65,752 companies, 58,014 with a phone number and 32,664 with an email. The phone coverage suits the call-first approach above.
- E-commerce Stores & Online Shops in Spain: 83,771 online shops, all with a website, 58,319 with an email and 53,616 with an Instagram account.
Need another sector or region? Request a dataset. Before you buy any list, run the checks in our guide on buying B2B leads; most of them apply in Spain too.
Frequently asked questions
How many companies are there in Spain?
3,310,824 economically active companies on 1 January 2025, according to INE's DIRCE, 1.7% more than a year earlier. 54.4% had no employees.
Is there a free directory of companies in Spain?
The BORME publishes company registrations and changes for free, and INE publishes free counts by sector and region. Neither gives you sales contact details, which is why most sellers add a business directory or database.
Can I send cold emails to companies in Spain?
Article 21 of the LSSI prohibits promotional email that the recipient has not requested or expressly authorised, unless you already have a customer relationship and offer similar products. Ask permission by phone or LinkedIn first, and check with a Spanish lawyer before a larger campaign.
What is a CNAE code?
It is Spain's national classification of economic activities, used by INE and the registers to say what a company does. Filtering by CNAE code is the fastest way to keep only your buyers in a company list.
Which regions of Spain have the most companies?
Catalonia (18.4%), Andalusia (16.3%) and the Community of Madrid (15.9%), according to INE's DIRCE 2025.
More articles
- How to Find Shopify Stores in the UK (and Sell to Them)
- LinkedIn Prospecting in France: A B2B Guide to Limits, Messages and Rules
- Contracting Companies in Jubail, Khobar and Dammam: How to Find and Vet Them
- SMS Marketing Dubai & UAE: B2B Rules, Sender IDs and a First Campaign
- Australian Business Directory: Build a Prospect List You Can Contact
- Buy B2B leads in Germany: 9 checks before you pay