# Spain Empresia Company Scraper (`parseforge/spain-empresia-scraper`) Actor

Scrapes Spanish company reports from Empresia by company name or slug. Returns each company as a flat row with registration details, financials, and contact information.

- **URL**: https://apify.com/parseforge/spain-empresia-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Lead generation, Automation, Business
- **Features:** Limited permissions
- **Stats:** 23 total users, 3 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.50 / 1,000 spanish company records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner-v4.webp)](https://apify.com/parseforge?fpr=vmoqkp)

### Spain Empresia Company Scraper

**Scrape Spanish company data from Empresia by company name or slug, up to a million per run.** Each company comes with its registration details, financials, and contact information. No login or API key. Export to CSV, JSON, Excel, or XML.

Empresia is a Spanish business directory with company reports, but there is no official API and manual lookups do not scale. This Actor reads the public company pages directly, takes a list of company names or Empresia slugs, and returns each match in one fixed schema. It is built for KYB checks, lead generation, and market research on Spanish companies.

| Who uses it | What they scrape Empresia for |
|---|---|
| Sales and lead generation teams | Build a list of Spanish companies with contact details for outreach |
| Compliance and KYB analysts | Verify Spanish company registration data and legal status |
| Market researchers | Analyze the Spanish business landscape by industry or region |
| Recruiters and staffing agencies | Find Spanish companies that may be hiring for specific roles |

### What it does

This Actor collects Spanish company reports from Empresia by company name or direct slug, and returns each company as a flat row.

- 🔍 **Company search:** Enter a company name like 'banco santander' and get the first matching Empresia report.
- 🔗 **Direct slug input:** Use an Empresia slug like 'banco-santander' to open a specific company page.
- 📊 **Flat row output:** Each company is returned as one row with all available fields, ready for spreadsheets.
- ⚙️ **Batch processing:** Provide up to a million queries per run and collect companies at scale.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with Empresia data

**📈 Lead generation for B2B sales.**

A sales team enters a list of Spanish company names and gets contact details and industry data to prioritize outreach.

**🛡️ KYB compliance checks.**

A compliance analyst verifies company registration status and legal information for onboarding new business clients.

**📊 Market research on Spanish companies.**

A researcher collects data on companies in a specific sector to analyze market concentration and trends.

**🤝 Recruitment targeting.**

A recruiter builds a list of Spanish companies in a target industry to identify potential hiring clients.

### Why choose this scraper

|  | What you get |
|---|---|
| **No official API** | Empresia does not offer a public API, so this Actor is the only way to get structured data at scale. |
| **Spanish business data** | Get registration details, financials, and contact information for Spanish companies. |
| **Flexible input** | Use company names or direct slugs, and control how many companies to collect. |
| **Export ready** | Download results as CSV, JSON, Excel, or XML for your existing workflows. |

### How it compares

This Actor is the only one that scrapes Empresia directly. The competitor listed below scrapes InfoJobs, a different Spanish site, so it is not a direct alternative for Empresia data.

| Feature | ParseForge | InfoJobs Job Scraper 🇪🇸 |
|---|---|---|
| Scrapes Empresia company data | Yes | Not listed |
| Input by company name or slug | Yes | Not listed |
| Returns registration details and financials | Yes | Not listed |
| Export to CSV, JSON, Excel, XML | Yes | Not listed |

### Configure the run

Drive the Actor from company names and Empresia slugs, alone or together, and set a maximum number of companies to collect per run. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "queries": [
    "banco-santander",
    "telefonica",
    "iberdrola"
  ],
  "maxItems": 10
}
```

A larger pull:

```json
{
  "queries": [
    "banco-santander",
    "telefonica",
    "iberdrola"
  ],
  "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.01 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $1.00 |
| 1,000 results | $10.00 |
| 10,000 results | $100.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [Spain Empresia Company Scraper](https://apify.com/parseforge/spain-empresia-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to Empresia through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/spain-empresia-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Make sure the company name or slug is spelled correctly. If the company is not listed on Empresia, the Actor will return no data.

**Why is the Actor returning the wrong company?**

The Actor returns the first matching company for a name query. Use a direct slug to target a specific company.

**Why is the run slow?**

The Actor processes queries sequentially. Reduce the number of queries or increase the timeout if needed.

**Why are some fields empty?**

Not all companies have complete data on Empresia. Empty fields mean the information was not available on the page.

### FAQ

| Question | Answer |
|---|---|
| What is Empresia? | Empresia is a Spanish business directory that provides company reports with registration details, financials, and contact information. |
| Do I need an API key or login? | No. This Actor scrapes the public Empresia pages directly, so no authentication is required. |
| How do I input company names? | Add company names or Empresia slugs to the 'queries' field. For a name like 'Banco Santander', the Actor will search and return the first matching company. |
| What is a slug? | A slug is the part of the Empresia URL that identifies a company, for example 'banco-santander' in empresia.es/banco-santander. |
| How many companies can I scrape? | You can set 'maxItems' up to 1,000,000 companies per run. |
| What data fields are returned? | The Actor returns all available fields from the Empresia company page, including registration details, financials, and contact information. See the sample output for the full list. |
| Can I export the data? | Yes, you can export the results as CSV, JSON, Excel, or XML. |
| Is this Actor legal to use? | You should review Empresia's terms of service and comply with applicable laws. The Actor only accesses publicly available data. |
| What if my query returns no results? | Check the spelling of the company name or slug. If the company is not on Empresia, no data will be returned. |
| Can I run this Actor on a schedule? | Yes, you can schedule runs on the Apify platform to collect data periodically. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Empresia. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `queries` (type: `array`):

List of company name search terms (e.g., 'banco santander') or Empresia direct slugs (e.g., 'banco-santander'). The actor opens a company report per query, returning the FIRST matching company.

## `maxItems` (type: `integer`):

How many companies to collect per run.

## Actor input object example

```json
{
  "queries": [
    "banco-santander",
    "telefonica",
    "iberdrola"
  ],
  "maxItems": 10
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "banco-santander",
        "telefonica",
        "iberdrola"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/spain-empresia-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "queries": [
        "banco-santander",
        "telefonica",
        "iberdrola",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/spain-empresia-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "banco-santander",
    "telefonica",
    "iberdrola"
  ],
  "maxItems": 10
}' |
apify call parseforge/spain-empresia-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/spain-empresia-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Vwwop4Egx1gteTpTz/builds/jxdq5SxAfrcxZhf9y/openapi.json
