# BORME Scraper (`fluyeporlaweb/borme-scraper`) Actor

Actos diarios del BORME: nuevas sociedades, nombramientos, ampliaciones y disoluciones por provincia. JSON limpio, sin login, pago por resultado.

- **URL**: https://apify.com/fluyeporlaweb/borme-scraper.md
- **Developed by:** [Pablo Navarro](https://apify.com/fluyeporlaweb) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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

## BORME Scraper – Spain Company Acts, Only New $3.00/1K

**BORME scraper** for the *Boletín Oficial del Registro Mercantil*, the official gazette where Spain's Commercial Registry publishes every registered company act. It reads the BOE open-data API and the official text of Section A (*Empresarios – Actos inscritos*) and returns one structured JSON record per company and act: incorporations with capital, registered office and corporate purpose, officer appointments and dismissals, dissolutions, extinctions, insolvency, mergers, capital and address changes, with registry sheet and inscription date. **Only-new mode** turns it into a daily change monitor. No login, no browser, no proxies.

### What does it do?

- Reads the latest BORME, one day or a date range (up to 31 days).
- Splits each company entry into typed acts (`Constitución`, `Nombramientos`, `Ceses/Dimisiones`, `Disolución`, `Extinción`, `Situación concursal`, `Ampliación de capital`...).
- Parses officers into `{role, names}` lists, capital, registered office, corporate purpose, registry sheet (`H M 123456`) and inscription date.
- **Only new acts since the last run** (`onlyNew`): keeps a small state per `stateKey`, so a daily schedule never returns the same act twice.
- Filters by province, act type and company name. Sole-trader entries (*Empresario Individual*) are skipped.

### Use cases

- **Lead generation**: every new company incorporated in your province, the morning it is published.
- **Credit risk and KYB**: alerts on dissolutions, extinctions, insolvency (*situación concursal*) and officer changes of your clients and suppliers.
- **Gestorías, law firms and banks**: daily digests of corporate changes for your portfolio (`companyKeywords`).
- **Market intelligence**: count incorporations by province, capital and sector over time.
- **CRM enrichment and AI agents**: feed structured registry events to HubSpot, n8n, Make or an LLM.

### Input

| Field | Description |
|---|---|
| `dateFrom` | First BORME day (YYYY-MM-DD). Empty = latest published BORME. Example: 2026-11-06 |
| `dateTo` | Last day (YYYY-MM-DD), max 31 days after dateFrom. Empty = same as dateFrom. |
| `onlyNew` | Delta mode for schedules: remembers what it already returned (named key-value store `borme-scraper-state`) and emits only acts published since the previous run. Example: true |
| `stateKey` | Use a different key for each schedule/watchlist so their delta states do not mix. Example: madrid-incorporations |
| `provinces` | Keep only these BORME provinces (text contained, case-insensitive). Empty = all. Example: MADRID, BARCELONA, VALENCIA |
| `actTypes` | Keep companies with any of these acts (text contained). Examples: Constitución, Nombramientos, Ceses/Dimisiones, Disolución, Extinción, Situación concursal, Ampliación de capital, Cambio de domicilio social |
| `companyKeywords` | Keep companies whose name contains any keyword. Example: SOLAR, INMOBILIARIA |
| `includeOfficers` | Include the names of appointed or removed officers exactly as published by the Registro Mercantil. Set false to output company data only. Example: true |
| `maxItems` | 0 = no limit (a full BORME day has 2,000-5,000 acts). Example: 500 |

Example input:

```json
{
  "maxItems": 25
}
```

### Output

Real output (first items of a run on 9 Nov 2026):

```json
[
  {
    "id": "BORME-A-2026-214-02#496137",
    "date": "2026-11-06",
    "province": "ALBACETE",
    "actNumber": "496137",
    "companyName": "SOCIEDAD AGRARIA DE TRANSFORMACION AGRICOLA HORTI-RODA",
    "actTypes": [
      "Transformación de sociedad",
      "Ceses/Dimisiones",
      "Nombramientos",
      "Otros conceptos",
      "Cambio de denominación social",
      "Cambio de domicilio social",
      "Cambio de objeto social"
    ],
    "isIncorporation": false,
    "isDissolution": false,
    "isExtinction": false,
    "isInsolvency": false,
    "isOfficerChange": true,
    "capital": null,
    "registeredOffice": "AVDA REY FELIPE VI, 187 02630 (RODA (LA))",
    "corporatePurpose": "Explotación agrícola de fincas rústicas, producción y comercialización de los productos agrícolas obtenidos. Servicios agrícolas, ganaderos y forestales. La compraventa, arrendamiento, tenencia y/o explotación de bienes inmuebles",
    "newName": "AGRICULTURA HORTIRODA SOCIEDAD LIMITADA",
    "appointments": [
      {
        "role": "Adm. Solid.",
        "names": [
          "ESCRIBANO AVENDAÑO ANTONIO",
          "ESCRIBANO AVENDAÑO GABRIEL"
        ]
      }
    ],
    "dismissals": [
      {
        "role": "Pres.J.Rec",
        "names": [
          "ESCRIBANO AVENDAÑO GABRIEL"
        ]
      },
      {
        "role": "Miem.J.Rec",
        "names": [
          "ESCRIBANO AVENDAÑO GABRIEL",
          "ESCRIBANO CABAÑERO ANTONIO",
          "TOBOSO CARRILERO MARIA REMEDIOS"
        ]
      },
      {
        "role": "Sec.J.Rec",
        "names": [
          "ESCRIBANO AVENDAÑO ANTONIO"
        ]
      },
      {
        "role": "Miem.J.Rec",
        "names": [
          "ESCRIBANO AVENDAÑO ANTONIO"
        ]
      }
    ],
    "reelections": [],
    "revocations": [],
    "resultingCapital": null,
    "registryData": "S 8 , H AB 13895, I/A 12 (27.10.26)",
    "registrySheet": "AB 13895",
    "inscriptionDate": "2026-10-27",
    "acts": [
      {
        "type": "Transformación de sociedad",
        "text": "Denominación y forma adoptada: SOCIEDAD AGRARIA DE TRANSFORMACION AGRICOLA HORTI-RODA SOCIEDAD LIMITADA"
      },
      {
        "type": "Ceses/Dimisiones",
        "text": "Pres.J.Rec: ESCRIBANO AVENDAÑO GABRIEL. Miem.J.Rec: ESCRIBANO AVENDAÑO GABRIEL;ESCRIBANO CABAÑERO ANTONIO;TOBOSO CARRILERO MARIA REMEDIOS. Sec.J.Rec: ESCRIBANO AVENDAÑO ANTONIO. Miem.J.Rec: ESCRIBANO AVENDAÑO ANTONIO"
      },
      {
        "type": "Nombramientos",
        "text": "Adm. Solid.: ESCRIBANO AVENDAÑO ANTONIO;ESCRIBANO AVENDAÑO GABRIEL"
      },
      {
        "type": "Otros conceptos",
        "text": "Cambio del Organo de Administración: Junta Rectora a Administradores solidarios Modificacion de la totalidad de los Artículos de los Estatutos Sociales, como consecuencia de la Transformación de la SAT Agricola Horti-Roda en Sociedad Limitada, con la denominación de AGRICULTURA HORTIRODA SOCIEDAD LIMITADA"
      },
      {
        "type": "Cambio de denominación social",
        "text": "AGRICULTURA HORTIRODA SOCIEDAD LIMITADA"
      },
      {
        "type": "Cambio de domicilio social",
        "text": "AVDA REY FELIPE VI, 187 02630 (RODA (LA))"
      },
      {
        "type": "Cambio de objeto social",
        "text": "Explotación agrícola de fincas rústicas, producción y comercialización de los productos agrícolas obtenidos. Servicios agrícolas, ganaderos y forestales. La compraventa, arrendamiento, tenencia y/o explotación de bienes inmuebles"
      }
    ],
    "text": "Transformación de sociedad. Denominación y forma adoptada: SOCIEDAD AGRARIA DE TRANSFORMACION AGRICOLA HORTI-RODA SOCIEDAD LIMITADA. Ceses/Dimisiones. Pres.J.Rec: ESCRIBANO AVENDAÑO GABRIEL. Miem.J.Rec: ESCRIBANO AVENDAÑO GABRIEL;ESCRIBANO CABAÑERO ANTONIO;TOBOSO CARRILERO MARIA REMEDIOS. Sec.J.Rec: ESCRIBANO AVENDAÑO ANTONIO. Miem.J.Rec: ESCRIBANO AVENDAÑO ANTONIO. Nombramientos. Adm. Solid.: ESCRIBANO AVENDAÑO ANTONIO;ESCRIBANO AVENDAÑO GABRIEL. Otros conceptos: Cambio del Organo de Administración: Junta Rectora a Administradores solidarios Modificacion de la totalidad de los Artículos de los Estatutos Sociales, como consecuencia de la Transformación de la SAT Agricola Horti-Roda en Sociedad Limitada, con la denominación de AGRICULTURA HORTIRODA SOCIEDAD LIMITADA. Cambio de denominación social. AGRICULTURA HORTIRODA SOCIEDAD LIMITADA. Cambio de domicilio social. AVDA REY FELIPE VI, 187 02630 (RODA (LA)). Cambio de objeto social. Explotación agrícola de fincas rústicas, producción y comercialización de los productos agrícolas obtenidos. Servicios agrícolas, ganaderos y forestales. La compraventa, arrendamiento, tenencia y/o explotación de bienes inmuebles. Datos registrales. S 8 , H AB 13895, I/A 12 (27.10.26).",
    "bormeId": "BORME-A-2026-214-02",
    "htmlUrl": "https://www.boe.es/diario_borme/txt.php?id=BORME-A-2026-214-02",
    "pdfUrl": "https://www.boe.es/borme/dias/2026/11/06/pdfs/BORME-A-2026-214-02.pdf"
  },
  {
    "id": "BORME-A-2026-214-02#496138",
    "date": "2026-11-06",
    "province": "ALBACETE",
    "actNumber": "496138",
    "companyName": "PEÑA VAL INVERSIONES SOCIEDAD LIMITADA",
    "actTypes": [
      "Ampliación de capital"
    ],
    "isIncorporation": false,
    "isDissolution": false,
    "isExtinction": false,
    "isInsolvency": false,
    "isOfficerChange": false,
    "capital": "6.000,00 Euros",
    "registeredOffice": null,
    "corporatePurpose": null,
    "newName": null,
    "appointments": [],
    "dismissals": [],
    "reelections": [],
    "revocations": [],
    "resultingCapital": "9.000,00 Euros",
    "registryData": "S 8 , H AB 31953, I/A 2 (29.10.26)",
    "registrySheet": "AB 31953",
    "inscriptionDate": "2026-10-29",
    "acts": [
      {
        "type": "Ampliación de capital",
        "text": "Capital: 6.000,00 Euros. Resultante Suscrito: 9.000,00 Euros"
      }
    ],
    "text": "Ampliación de capital. Capital: 6.000,00 Euros. Resultante Suscrito: 9.000,00 Euros. Datos registrales. S 8 , H AB 31953, I/A 2 (29.10.26).",
    "bormeId": "BORME-A-2026-214-02",
    "htmlUrl": "https://www.boe.es/diario_borme/txt.php?id=BORME-A-2026-214-02",
    "pdfUrl": "https://www.boe.es/borme/dias/2026/11/06/pdfs/BORME-A-2026-214-02.pdf"
  }
]
```

Export the results as JSON, CSV or Excel, read them through the API, or send them to Google Sheets, Make, Zapier, n8n or webhooks. You can also run this Actor from AI agents through the Apify MCP server.

### Pricing

Pay per event: **$3.00 per 1,000 company acts** plus $0.00005 per run start. There is no extra platform usage charge.

### FAQ

**Is this the official data?** Yes. It uses the BOE open-data API for the BORME summary (`/datosabiertos/api/borme/sumario/YYYYMMDD`) and the official HTML text of each province published by the Agencia Estatal BOE.

**How does 'only new' work?** The Actor stores the last BORME date and the act ids it already returned in a named key-value store (`borme-scraper-state`, key = `stateKey`). The next run starts from that date and skips what you already have. Use a different `stateKey` per schedule.

**When is BORME published?** Monday to Friday (working days), early in the morning. Schedule the Actor daily at 9:00 Madrid time.

**Does it include NIF/CIF?** BORME Section A does not publish the company tax id; you get the company name and the registry sheet (`registrySheet`), which identifies it in the Registro Mercantil.

**Does it include personal data?** Only officer names exactly as published in the official gazette with their role. Set `includeOfficers` to false to get company data only. Sole-trader entries are skipped.

**How fast is it?** About one province per second; a full day (all provinces) takes 30-60 seconds.

**Do I need a login or API key?** No. It uses the source's public API; you only need an Apify account.

**Can AI agents use it?** Yes. Call it through the Apify API, or from Claude, Cursor or any MCP client via the Apify MCP server.

### Data source and license

Source: [BOE open data](https://www.boe.es/datosabiertos/) (BORME), reused under the [BOE reuse conditions](https://www.boe.es/informacion/aviso_legal/index.php): "Las presentes condiciones permiten la reutilización de los documentos sometidos a ellas para fines comerciales y no comerciales". You must cite the source and must not alter the content or its meaning. Officer names are personal data published for legal publicity (Art. 9 Código de Comercio and Registro Mercantil regulation); process them only for a legitimate purpose under GDPR.

This Actor is not affiliated with or endorsed by the data source. You are responsible for using the data in line with the source's license and terms.

# Actor input Schema

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

First BORME day (YYYY-MM-DD). Empty = latest published BORME. Example: 2026-11-06

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

Last day (YYYY-MM-DD), max 31 days after dateFrom. Empty = same as dateFrom.

## `onlyNew` (type: `boolean`):

Delta mode for schedules: remembers what it already returned (named key-value store `borme-scraper-state`) and emits only acts published since the previous run. Example: true

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

Use a different key for each schedule/watchlist so their delta states do not mix. Example: madrid-incorporations

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

Keep only these BORME provinces (text contained, case-insensitive). Empty = all. Example: MADRID, BARCELONA, VALENCIA

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

Keep companies with any of these acts (text contained). Examples: Constitución, Nombramientos, Ceses/Dimisiones, Disolución, Extinción, Situación concursal, Ampliación de capital, Cambio de domicilio social

## `companyKeywords` (type: `array`):

Keep companies whose name contains any keyword. Example: SOLAR, INMOBILIARIA

## `includeOfficers` (type: `boolean`):

Include the names of appointed or removed officers exactly as published by the Registro Mercantil. Set false to output company data only. Example: true

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

0 = no limit (a full BORME day has 2,000-5,000 acts). Example: 500

## Actor input object example

```json
{
  "onlyNew": false,
  "stateKey": "default",
  "includeOfficers": true,
  "maxItems": 25
}
```

# Actor output Schema

## `items` (type: `string`):

No description

## `summary` (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 = {
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("fluyeporlaweb/borme-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 = { "maxItems": 25 }

# Run the Actor and wait for it to finish
run = client.actor("fluyeporlaweb/borme-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 '{
  "maxItems": 25
}' |
apify call fluyeporlaweb/borme-scraper --silent --output-dataset

```

## MCP server setup

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