# Empresia Scraper (`scrapedo/empresia-scraper`) Actor

Scrape Spanish company data from Empresia.es: CIF, CNAE, share capital, sales band, employees, address, phones, board, officers and BORME announcements. List every company incorporated on a given day. Free trial, no per-result fee.

- **URL**: https://apify.com/scrapedo/empresia-scraper.md
- **Developed by:** [scrapedo](https://apify.com/scrapedo) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Empresia Scraper

Scrape Spanish company data from [Empresia.es](https://www.empresia.es), the free directory built on the Commercial Registry (BORME): **CIF, CNAE code and activity, corporate purpose, share capital, sales band and yearly sales, employees, registry, address, phones, websites, e-mail, board, officers with appointment dates, BORME announcements and trademarks**. Open companies by name or URL, search Empresia, or list **every company incorporated (or dissolved, or that changed its capital...) in a province on a given day**.

**Free to try:** run it without any setup and get up to 50 results per run. Add your free Scrape.do API token to remove the limit.

### What you can scrape

1. **Company reports:** add slugs (`mercadona`) or URLs (`https://www.empresia.es/empresa/telefonica/`) under **Companies**. One result per company with every field.
2. **Search:** add names under **Search by name**. With **Open every company found** on, each company in the results is scraped in full.
3. **BORME by day:** pick a **BORME date**, an **Act** (incorporation, dissolution, capital increase, appointments...) and optionally **Provinces**. With **Open every announcement** on, each result has the share capital, start date, corporate purpose and registered address from the announcement.

### Why go through an API

Empresia sits behind Cloudflare. A few pages from one machine load fine, but a bulk crawl (all incorporations of a month, thousands of company reports) from a single IP is what gets throttled. This actor fetches every page through the [Scrape.do](https://scrape.do/?utm_source=apify\&utm_medium=actor\&utm_campaign=empresia-scraper) web scraping API, which rotates the IP for each request and retries failures. A plain request is enough: 1 credit per page.

### What data you get

**Company** (`type: "company"`):

| Field | Description |
|---|---|
| `name`, `cif` | Company name and tax ID |
| `cnaeCode`, `cnaeDescription`, `corporatePurpose` | Activity code, its description and the registered purpose |
| `shareCapital`, `shareCapitalEur` | Share capital as shown and as a number |
| `salesBand`, `salesHistory` | Sales band ("Superior a 2.500.000 euros") and the yearly series Empresia charts |
| `employees`, `registry`, `lastAccountsYear` | Employees, Commercial Registry, last filed accounts |
| `incorporationDate`, `age`, `governingBody`, `auditor` | When shown |
| `address`, `phones`, `fax`, `websites`, `email` | Contact data (the e-mail is decoded from Cloudflare's obfuscation) |
| `board` | Board members and their roles |
| `officers` | Officers with role, appointment (`since`) and removal (`until`) dates |
| `announcements` | Latest BORME announcements: date, act, text, registration data, PDF link |
| `trademarks` | Trademarks and their status |

**BORME announcement** (`type: "announcement"`): `bormeDate`, `province`, `act`, `company`, `companyUrl`, `shareCapitalEur`, `startDate`, `corporatePurpose`, `address`, `registry`, `registration`, `pdfUrl`, `url`.

#### Input example

```json
{
    "companies": ["mercadona", "telefonica"],
    "bormeDate": "2026-11-13",
    "bormeAct": "constitucion",
    "bormeProvinces": ["madrid", "barcelona"],
    "maxItems": 500,
    "scrapeDoToken": "YOUR_SCRAPEDO_TOKEN"
}
```

#### Output example

Fictional company, illustrative values:

```json
{
    "type": "company",
    "name": "EJEMPLO SOLUCIONES SL",
    "cif": "B00000000",
    "cnaeCode": "6201",
    "cnaeDescription": "Actividades de programación informática",
    "corporatePurpose": "Desarrollo de software y consultoria informatica.",
    "shareCapital": "60.000,00 EUR",
    "shareCapitalEur": 60000,
    "salesBand": "Entre 500.000 y 1.000.000 euros",
    "salesHistory": { "2023": 0.61, "2024": 0.74, "2025": 0.92 },
    "employees": 12,
    "registry": "Madrid",
    "lastAccountsYear": "2025",
    "address": "CALLE EJEMPLO, 1 - PLANTA 2 (MADRID)",
    "phones": ["910000001", "910000002"],
    "websites": ["www.example.com"],
    "email": "info@example.com",
    "governingBody": "Administrador único",
    "board": [{ "name": "Doe Jane", "role": "Adm. Unico" }],
    "officers": [{ "name": "Doe Jane", "role": "Adm. Unico", "since": "15/03/2015", "until": "" }],
    "announcements": [{ "date": "2026-10-29", "title": "Cambio de domicilio social", "pdfUrl": "https://www.boe.es/borme/..." }],
    "url": "https://www.empresia.es/empresa/ejemplo-soluciones/",
    "scrapedAt": "2026-11-15T08:00:00.000Z"
}
```

Download the results as JSON, CSV, Excel or HTML from the run's **Output** tab (views: **Companies** and **BORME announcements**), or through the Apify API.

### Pricing and your Scrape.do token

There is no per-result fee for this actor; Apify only bills its normal platform usage. Pages come through the Scrape.do API:

1. **Free trial, no token:** leave **Scrape.do API token** empty and get up to 50 results per run.
2. **Your own token:** no limit. Every page (a company report, a search page, a BORME list or an announcement) is 1 Scrape.do credit. 1,000 company reports cost 1,000 credits. [Create a free Scrape.do account](https://scrape.do/?utm_source=apify\&utm_medium=actor\&utm_campaign=empresia-scraper) for 1,000 free credits a month.

### Tips

- **New companies every day:** schedule the actor with today's date and act `constitucion` to get a daily lead list of new incorporations.
- **Empresia search stops at 100 results.** Use more specific names, or the BORME lists by province.
- **The company page shows the latest 30 officers and announcements;** older ones load on demand and are not collected.
- **Prefer Python?** The same logic is an open-source package: `pip install empresia-scraper` ([GitHub](https://github.com/bugrahansss/empresia-scraper)).

### FAQ

**Is scraping Empresia legal?** The data comes from public registers (BORME, BOE, OEPM), but officers are real people and their names are personal data under the GDPR. Use it for legitimate purposes such as B2B research, KYC or market analysis, keep only what you need, honour objection requests and respect Empresia's terms. This is not legal advice.

**Something broke or a field is missing?** Open an issue in the Issues tab and we will look at it.

# Actor input Schema

## `companies` (type: `array`):

Company slugs or Empresia company URLs, one per line (for example "mercadona" or "https://www.empresia.es/empresa/telefonica/"). Each company is one result with every field.

## `searchQueries` (type: `array`):

Company or officer names to search on Empresia. With "Open every company found" on, each company in the results is scraped in full.

## `maxSearchPages` (type: `integer`):

Result pages per search (Empresia shows at most 100 results, about 4 pages).

## `openCompanies` (type: `boolean`):

On: scrape the full report of every company a search finds (one more request each). Off: save the search results only (name, type, link).

## `bormeDate` (type: `string`):

List the companies with an act published on this day (YYYY-MM-DD). The BORME is published on weekdays.

## `bormeAct` (type: `string`):

Which act to list. "constitucion" lists new incorporations.

## `bormeProvinces` (type: `array`):

Province slugs as Empresia writes them (for example "madrid", "barcelona", "a-coruna"). Leave empty for every province with announcements that day.

## `openAnnouncements` (type: `boolean`):

On: open each announcement for share capital, start date, corporate purpose and registered address (one more request each). Off: save company name and links only.

## `startUrls` (type: `array`):

Any Empresia company, search, BORME day or announcement URL.

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

Stop after this many results. 0 means no limit (free trial runs stop at 50).

## `maxConcurrency` (type: `integer`):

Pages fetched in parallel with your own token.

## `scrapeDoToken` (type: `string`):

Optional. Without a token you get a free trial of up to 50 results per run. With your own token there is no limit; every page is 1 Scrape.do credit. Free account with 1,000 credits a month: https://scrape.do/?utm_source=apify\&utm_medium=actor\&utm_campaign=empresia-scraper

## Actor input object example

```json
{
  "companies": [
    "mercadona"
  ],
  "maxSearchPages": 1,
  "openCompanies": true,
  "bormeAct": "constitucion",
  "openAnnouncements": true,
  "maxItems": 50,
  "maxConcurrency": 5
}
```

# Actor output Schema

## `companies` (type: `string`):

No description

## `announcements` (type: `string`):

No description

## `allFields` (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 = {
    "companies": [
        "mercadona"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapedo/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 = { "companies": ["mercadona"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapedo/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 '{
  "companies": [
    "mercadona"
  ]
}' |
apify call scrapedo/empresia-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapedo/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/Ax84nGPMdFzlHJioB/builds/p39tXrjHyzPzDRaTp/openapi.json
