# Spain BORME Company Acts: Spanish Company Register Feed (`cprussin/spain-borme-acts`) Actor

Spanish company register acts from the official BORME: new companies with object, CNAE, address and capital, board changes (counts only, no personal names), address and capital changes, dissolutions, insolvency. Daily feed, delta, filters, company timeline. $2 per 1,000 acts.

- **URL**: https://apify.com/cprussin/spain-borme-acts.md
- **Developed by:** [Connor Prussin](https://apify.com/cprussin) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 company acts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Spain BORME Company Acts: Spanish Company Register Feed API

**Spain BORME Company Acts** turns the **BORME** (Boletín Oficial del Registro Mercantil), Spain's official daily gazette of the Mercantile Register, into clean JSON, CSV or Excel. Every working day the BORME publishes ~1,500-3,000 register entries: new companies, board changes, address and capital changes, dissolutions, insolvencies. This actor reads the official **BOE open-data API** and the HTML text of Section A (no PDFs), and parses each entry into structured fields. No login, no API key, no browser, no proxy.

- ✅ **New Spanish companies daily**: name, legal form, company object (objeto social), **CNAE** code when stated, registered address, postcode, municipality, share capital, start of operations.
- ✅ **Every act type**: incorporations, appointments, resignations, re-elections, revocations, address/name/object changes, capital increases and reductions, dissolutions, extinctions, mergers, spin-offs, insolvency (situación concursal) and more.
- ✅ **No personal data**: administrators, sole shareholders, liquidators, judges and insolvency administrators are **never exported**. You get counts per role (e.g. `{"Adm. Unico": 1, "Consejero": 3}`) instead.
- ✅ **Delta feed**: `sinceLastRun` mode outputs only entries published since the previous run.
- ✅ **Filters**: act types, CNAE prefix, provinces, minimum capital.
- ✅ **Company timeline**: every act of the companies you name over a date range.
- ✅ **Registry data**: tomo, folio, section, sheet (hoja), inscription number and date.

### Start in one minute

Click **Start** with the prefilled input:

```json
{
  "mode": "daily",
  "maxItems": 50
}
```

You get: the first 50 entries of the latest published BORME, with `companyName`, `actTypes`, `objectSocial`, `cnae`, `address`, `capitalEur`, `appointments`, `registry` and `sourceUrl`.

**Cost:** $0.10: 50 acts × $0.002, plus the $0.00005 actor-start fee.

### Use with an AI assistant

Connect the [Apify MCP server](https://mcp.apify.com) to Claude, ChatGPT, Cursor or any MCP client (`https://mcp.apify.com?tools=cprussin/spain-borme-acts` loads only this actor), then paste:

```text
Use the Apify actor cprussin/spain-borme-acts to list companies incorporated in Madrid in today's BORME, with company object, address and share capital.
```

### Recipes

#### New companies in Madrid and Barcelona (latest BORME)

```json
{
  "actTypes": ["constitution"],
  "provinces": ["MADRID", "BARCELONA"],
  "maxItems": 2000
}
```

#### Daily delta feed (scheduled task)

Schedule this every weekday. The first run reads the latest BORME; each later run outputs only entries published since the previous run with the same `stateKey`.

```json
{
  "mode": "sinceLastRun",
  "stateKey": "all-spain",
  "maxItems": 10000
}
```

#### Insolvencies, dissolutions and extinctions this week

```json
{
  "dateFrom": "2026-10-26",
  "dateTo": "2026-10-30",
  "actTypes": ["insolvency", "dissolution", "extinction"],
  "maxItems": 5000
}
```

#### New IT companies with at least €10,000 capital

```json
{
  "dateFrom": "2026-10-01",
  "actTypes": ["constitution"],
  "cnaePrefixes": ["62", "63"],
  "minCapital": 10000
}
```

#### Company timeline

```json
{
  "mode": "company",
  "companyNames": ["HUMMEL SPORT & FASHION", "DESIGN PONT SL"],
  "dateFrom": "2026-09-01",
  "dateTo": "2026-11-03"
}
```

### Input

| Field          | Description                                                                         | Example            |
| -------------- | ----------------------------------------------------------------------------------- | ------------------ |
| `mode`         | `daily` (date range), `sinceLastRun` (delta) or `company` (timeline)                | `"daily"`          |
| `dateFrom`     | First BORME day; empty = latest BORME (company mode: last 7 days)                   | `"2026-10-30"`     |
| `dateTo`       | Last day, inclusive (default today; at most 92 days)                                | `"2026-11-03"`     |
| `companyNames` | Company mode: names to follow (accents, punctuation and SL/SA ignored)              | `["TELEFONICA"]`   |
| `actTypes`     | Keep entries with any of these acts (`constitution`, `appointments`, `insolvency`…) | `["constitution"]` |
| `cnaePrefixes` | Keep entries whose object states a CNAE code with this prefix                       | `["62", "6831"]`   |
| `provinces`    | Keep these registry provinces (others are not downloaded)                           | `["MADRID"]`       |
| `minCapital`   | Minimum share capital or resulting capital, in euros                                | `10000`            |
| `stateKey`     | `sinceLastRun`: name of the saved position (one per schedule or filter set)         | `"all-spain"`      |
| `maxItems`     | Max records (default 1,000)                                                         | `5000`             |

### What data do you get for each entry?

One record per BORME entry (one company, one inscription, possibly several acts):

```json
{
  "entryNumber": 488738,
  "companyName": "ARBELIAMA SL",
  "legalForm": "SL",
  "inLiquidation": false,
  "actKeys": ["constitution", "soleShareholderDeclaration", "appointments"],
  "actTypes": [
    "Constitución",
    "Declaración de unipersonalidad",
    "Nombramientos"
  ],
  "acts": [
    { "key": "constitution", "label": "Constitución", "details": null },
    {
      "key": "soleShareholderDeclaration",
      "label": "Declaración de unipersonalidad",
      "details": null
    },
    { "key": "appointments", "label": "Nombramientos", "details": null }
  ],
  "operationsStartDate": "2026-10-06",
  "objectSocial": "-CNAE 64.21-: Actividades de las sociedades holding",
  "cnae": ["6421"],
  "address": "AVDA DE ALICANTE 132 (ELCHE)",
  "postalCode": null,
  "municipality": "ELCHE",
  "capitalEur": 4047000,
  "newAddress": null,
  "newName": null,
  "newObjectSocial": null,
  "capitalIncreaseEur": null,
  "capitalReductionEur": null,
  "resultingCapitalEur": null,
  "dissolutionType": null,
  "appointments": 1,
  "appointmentsByRole": { "Adm. Unico": 1 },
  "resignations": 0,
  "resignationsByRole": {},
  "reelections": 0,
  "revocations": 0,
  "insolvency": [],
  "registry": {
    "tomo": null,
    "folio": null,
    "section": "8",
    "sheet": "A 208884",
    "inscription": "1",
    "date": "2026-10-26"
  },
  "province": "ALICANTE/ALACANT",
  "bormeDate": "2026-11-03",
  "bormeNumber": "211",
  "bormeId": "BORME-A-2026-211-03",
  "sourceUrl": "https://www.boe.es/diario_borme/txt.php?id=BORME-A-2026-211-03",
  "pdfUrl": "https://www.boe.es/borme/dias/2026/11/03/pdfs/BORME-A-2026-211-03.pdf",
  "scrapedAt": "2026-11-03T12:00:00.000Z"
}
```

Values are in Spanish, as published. `objectSocial` is often truncated by the BORME itself. `cnae` is filled only when the object states a CNAE code. Insolvency entries carry `{procedure, final, resolutionDate, resolution, court}`.

**Personal data:** the BORME names natural persons (administrators, sole shareholders, liquidators, judges). To comply with the GDPR and Spain's LOPDGDD, this actor drops every such name: role-based acts become counts, and free text is only kept for acts about the company itself (address, object, name, capital, dissolution type, mergers). Company names are kept.

### How much does it cost to get Spanish company register data?

Pay per event:

- **$0.002 per company act record** ($2 per 1,000).
- $0.00005 per run start. Platform compute is included.
- Entries removed by your filters are not billed.

A full BORME day is ~1,500-3,000 records (~$3-6); new companies only are ~400-600 per day (~$1).

### FAQ

**Is this legal?** Yes. BOE's reuse conditions allow reuse of its content for commercial and non-commercial purposes, citing the source; personal data must be reused under data-protection law, which is why names are dropped. The actor makes plain, sequential GET requests with pauses, identifies itself, and reads `robots.txt` on every run: documents and days that the BOE has removed (e.g. erasure requests) are skipped and never downloaded. It never fetches XML or PDF files.

**When is the BORME published?** Monday to Friday (except national holidays), early in the morning. Weekends are skipped without any request. When today's BORME is not out yet, daily mode uses the previous one.

**What is Section A?** "Sección Primera. Empresarios. Actos inscritos": the acts registered by the provincial Mercantile Registers. Section C (legal notices) is not included.

**Why does `cnae` miss most companies?** The BORME only prints a CNAE code when the company object states one. Filter on `objectSocial` text yourself for broader matching.

**How does company mode find a company?** It scans the BORME of every day in the range and matches whole words of the registered name (or a new name) after removing accents, punctuation and SL/SA suffixes. Use a 7-92 day range.

### Related actors

- [Poland KRS Companies](https://apify.com/cprussin/poland-krs-companies): Polish company register data and daily change feed.
- [New Business Registrations](https://apify.com/cprussin/new-business-registrations): newly registered US LLCs and corporations from official state registries.

# Actor input Schema

## `mode` (type: `string`):

<b>Daily</b>: every act published in the BORME on the given days (default: the latest BORME). <b>Since last run</b>: only acts published since the previous run with the same state key (schedule it daily for a delta feed). <b>Company</b>: the timeline of the named companies over a date range.

## `dateFrom` (type: `string`):

First BORME day (YYYY-MM-DD). Empty: the latest published BORME (daily mode) or the last 7 days (company mode). BORME is published Monday to Friday.

## `dateTo` (type: `string`):

Last BORME day, inclusive. Defaults to today. At most 92 days per run.

## `companyNames` (type: `array`):

Company mode: names to follow, e.g. <code>TELEFONICA</code>. Accents, punctuation and legal-form suffixes (SL, SA...) are ignored; matches whole words of the registered or new name.

## `actTypes` (type: `array`):

Keep only entries containing at least one of these acts. Empty: all acts.

## `cnaePrefixes` (type: `array`):

Keep only entries whose company object mentions a CNAE code starting with one of these, e.g. <code>62</code> (IT services) or <code>6831</code>. Many incorporations state no CNAE code, so this filter is strict.

## `provinces` (type: `array`):

Keep only these registry provinces, e.g. <code>MADRID</code>, <code>BARCELONA</code>, <code>VALENCIA</code>. Other provinces are not downloaded.

## `minCapital` (type: `integer`):

Keep only entries with a share capital (new companies) or resulting capital (capital changes) of at least this many euros.

## `stateKey` (type: `string`):

Since-last-run mode: name of the saved position. Use a different key for each schedule or filter set.

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

Stop after this many act records. Each record is billed once.

## Actor input object example

```json
{
  "mode": "daily",
  "stateKey": "default",
  "maxItems": 50
}
```

# Actor output Schema

## `results` (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 = {
    "mode": "daily",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("cprussin/spain-borme-acts").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 = {
    "mode": "daily",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("cprussin/spain-borme-acts").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 '{
  "mode": "daily",
  "maxItems": 50
}' |
apify call cprussin/spain-borme-acts --silent --output-dataset

```

## MCP server setup

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

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/vrPikNsPgcHCTPehi/builds/9T4cfYAWOI6rNWGnA/openapi.json
