Spain Company Directory Scraper avatar

Spain Company Directory Scraper

Pricing

Pay per event

Go to Apify Store
Spain Company Directory Scraper

Spain Company Directory Scraper

πŸ‡ͺπŸ‡Έ Scrape public Spanish company records from Empresite directories, rankings, provinces, activities, and profile pages for B2B leads.

Pricing

Pay per event

Rating

0.0

(0)

Developer

Stas Persiianenko

Stas Persiianenko

Maintained by Community

Actor stats

0

Bookmarked

4

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Share

Extract structured Spanish company records from public Empresite directory pages, rankings, provinces, activities, and company profiles.

Use it to build lead lists, map Spanish markets, enrich vendor files, and monitor public company directory changes without copying rows by hand.


What does Spain Company Directory Scraper do?

Spain Company Directory Scraper turns Empresite pages into clean dataset rows.

It can start from ranking pages, latest-business pages, province directories, activity directories, or direct company profile URLs.

The actor follows public company links, optionally opens profile pages, and saves one row per company.

Typical records include company name, company URL, CIF/NIF when visible, activity, CNAE, address, locality, province, phone, website, executives, ranking position, source URL, and scrape timestamp.


Who is it for?

  • 🧲 B2B sales teams building Spanish lead lists
  • 🧾 KYB and vendor-enrichment teams checking public company details
  • πŸ—ΊοΈ Market researchers mapping companies by province or activity
  • πŸ§‘β€πŸ’Ό Recruiters researching employers in a Spanish city or sector
  • 🏒 Agencies preparing prospecting files for Spanish campaigns
  • πŸ“Š Analysts monitoring newly listed or high-ranking Spanish businesses

Why use this actor?

Manual directory browsing is slow and inconsistent.

This actor gives you repeatable exports from a public source.

You can run the same province or activity every week, export to CSV, and compare new or changed rows.

It also keeps the original source URL for auditability.


Data you can extract

FieldDescription
companyNamePublic company name shown by Empresite
detailUrlEmpresite company profile URL
cifCIF/NIF when visible on the profile
statusPublic status text when visible
legalFormLegal form or company type when visible
activityActivity, business object, or sector text
cnaeCNAE classification when visible
addressPublic address text when visible
localityCity/locality from listing or detail page
provinceSpanish province from listing or detail page
phonePublic phone when visible
websitePublic company website when visible
executivesPublic executive/contact names when visible
rankRanking/list row position when available
updatedAtEmpresite update date when shown
sourceUrlPage where the company was discovered
scrapedAtISO timestamp of extraction

How much does it cost to scrape Spanish company directory data?

The actor uses pay-per-event pricing.

There is a small start charge and then a per-company result charge.

You control cost with maxItems, maxPagesPerStartUrl, and whether includeDetails is enabled.

For cheapest discovery runs, set includeDetails to false and scrape listing rows only.

For richer enrichment runs, keep includeDetails enabled.


Quick start

  1. Open the actor on Apify.
  2. Paste one or more Empresite URLs.
  3. Set maxItems to a safe first-run number such as 100.
  4. Keep Apify Proxy enabled.
  5. Run the actor.
  6. Download results as CSV, Excel, JSON, or via API.

Supported source URLs

You can use URLs such as:

  • https://empresite.eleconomista.es/Top_Empresas
  • https://empresite.eleconomista.es/Ultimos_Negocios
  • https://empresite.eleconomista.es/provincia/MADRID/
  • https://empresite.eleconomista.es/Actividad/CONSTRUCCIONES/
  • https://empresite.eleconomista.es/MERCADONA.html

Input configuration

startUrls

List of Empresite URLs to scrape.

Use ranking pages, latest-business pages, province pages, activity pages, or direct company profile pages.

activities

Optional activity slugs.

Example: CONSTRUCCIONES, INFORMATICA, TRANSPORTE, SANIDAD.

The actor converts each slug to an Empresite activity URL.

provinces

Optional province slugs.

Example: MADRID, BARCELONA, VALENCIA, SEVILLA.

The actor converts each slug to an Empresite province URL.

maxItems

Maximum number of company records to save.

includeDetails

When enabled, the actor visits each company profile page for richer fields.

Turn it off for faster and cheaper list-only discovery.

maxPagesPerStartUrl

Maximum pagination depth for each source URL.

requestDelayMs

Delay between requests.

Increase it for larger jobs or if you see skipped pages.

proxyConfiguration

Apify Proxy is enabled by default.

Datacenter proxy is usually the cheapest option.

Use more specialized proxy settings only when your inputs need them.


Example input

{
"startUrls": [
{ "url": "https://empresite.eleconomista.es/Ultimos_Negocios" }
],
"maxItems": 100,
"includeDetails": true,
"maxPagesPerStartUrl": 2,
"requestDelayMs": 750,
"proxyConfiguration": { "useApifyProxy": true }
}

Example output

{
"companyName": "Mercadona Sa",
"detailUrl": "https://empresite.eleconomista.es/MERCADONA.html",
"sourceUrl": "https://empresite.eleconomista.es/Top_Empresas",
"cif": "A46103834",
"activity": "Comercio al por mayor...",
"locality": "VALENCIA",
"province": "Valencia",
"rank": 1,
"scrapedAt": "2026-07-06T06:45:17.735Z"
}

Lead generation workflow

Run the actor for a province or activity.

Export results to CSV.

Import the CSV into your CRM.

Filter by province, activity, website presence, or visible contact details.

Use sourceUrl and detailUrl to verify each lead.


Market mapping workflow

Choose several province URLs.

Set a higher maxItems value.

Keep includeDetails enabled for richer classification fields.

Export to Excel or BI tools.

Group by activity, CNAE, province, and locality.


Vendor enrichment workflow

Start from direct Empresite profile URLs for companies you already know.

The actor will output one row per profile URL.

Use the CIF, address, activity, and status fields to enrich vendor files.


Tips for reliable runs

  • Start with 50-100 items before scaling.
  • Keep the default delay for large jobs.
  • Use direct source URLs from Empresite when possible.
  • Use includeDetails: false for cheap discovery runs.
  • Use includeDetails: true for enriched company profiles.
  • Increase delay if many pages are skipped.
  • Keep proxy enabled.

Integrations

Send results to Google Sheets using Apify integrations.

Export CSV files for HubSpot, Salesforce, Pipedrive, or Airtable.

Use webhooks to trigger enrichment after a run finishes.

Use Apify API to schedule repeated market-monitoring jobs.


API usage with Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/spain-company-directory-scraper').call({
startUrls: [{ url: 'https://empresite.eleconomista.es/Ultimos_Negocios' }],
maxItems: 100,
includeDetails: true
});
console.log(run.defaultDatasetId);

API usage with Python

from apify_client import ApifyClient
client = ApifyClient('YOUR_APIFY_TOKEN')
run = client.actor('automation-lab/spain-company-directory-scraper').call(run_input={
'startUrls': [{'url': 'https://empresite.eleconomista.es/Top_Empresas'}],
'maxItems': 100,
'includeDetails': True,
})
print(run['defaultDatasetId'])

API usage with cURL

curl -X POST 'https://api.apify.com/v2/acts/automation-lab~spain-company-directory-scraper/runs?token=YOUR_APIFY_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"startUrls":[{"url":"https://empresite.eleconomista.es/Ultimos_Negocios"}],"maxItems":100}'

MCP usage

Use the actor from Claude Desktop, Claude Code, or other MCP clients through Apify MCP.

MCP server URL:

https://mcp.apify.com/?tools=automation-lab/spain-company-directory-scraper

Claude Code setup:

$claude mcp add apify-spain-company-directory https://mcp.apify.com/?tools=automation-lab/spain-company-directory-scraper

Claude Desktop JSON configuration:

{
"mcpServers": {
"apify-spain-company-directory": {
"url": "https://mcp.apify.com/?tools=automation-lab/spain-company-directory-scraper"
}
}
}

Example prompts:

  • "Scrape 100 latest Spanish companies from Empresite and summarize provinces."
  • "Get company records for the Madrid Empresite province page."
  • "Create a CSV of construction companies from Empresite."

Scheduling

Schedule the actor weekly or monthly to monitor market changes.

Use the same input each time.

Compare datasets by companyName, detailUrl, and updatedAt.


Data quality notes

Empresite pages can vary by company.

Some profiles expose rich CIF, CNAE, address, phone, website, or executive fields.

Other profiles expose only list-level information.

Fields that are not visible remain empty.


Legality and ethical use

This actor extracts publicly available Empresite pages.

Use the data responsibly.

Respect applicable privacy, database, marketing, and data-protection laws.

Do not use the actor to spam people or violate website terms.


FAQ and troubleshooting

Why did a run return fewer companies than expected?

The source page may have fewer visible company links, rate limiting may have skipped some pages, or your maxItems value may be low.

Try another source URL, increase delay, or reduce detail enrichment.

Why are some fields empty?

Not every Empresite profile exposes every field publicly.

The actor only saves fields that are visible in the returned HTML.

Why should proxy stay enabled?

Directory sites can rate-limit repeated requests.

Apify Proxy helps reduce temporary blocking and improves repeatability.


Explore related Automation Lab actors for country registries, company directories, lead generation, and business enrichment on Apify:


Changelog

Initial version supports Empresite listing URLs, activity/province shortcuts, direct company URLs, optional profile enrichment, and proxy-backed HTTP extraction.


Support

If a source URL stops working or you need a field that appears on Empresite but is missing from the dataset, open an Apify issue with your run URL and example input.