# Spain BORME Corporate Monitor (`goobertje/spain-borme-corporate-monitor`) Actor

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

## Pricing

from $3.50 / 1,000 announcement returneds

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 corporate monitor: registered acts and legal notices from the Spanish gazette as an API

Get the corporate acts published in the BORME, the official gazette of the Spanish Commercial Registry (Boletín Oficial del Registro Mercantil), as flat JSON rows. Watch incorporations, appointments and resignations, registered-office and capital changes, dissolutions, merger projects, balance sheets and other legal notices by date, section, province, act type or company name. Built for credit-risk teams, suppliers, accountants, lawyers and sales teams who want Spanish company events without reading the gazette.

Source: "Fuente: Agencia Estatal Boletín Oficial del Estado (BOE), https://www.boe.es". The BORME is published by the BOE, and its reuse conditions apply: cite the source, do not alter the meaning of the published text, and link the original document through `urlPdf` or `urlHtml`. This Actor is not affiliated with, endorsed by or sponsored by the BOE (Agencia Estatal Boletín Oficial del Estado) or the Registro Mercantil.

### Why use this Actor

- Official source: the BOE's public BORME open-data API. No scraping of web pages, no proxies, no browser.
- Pre-filtered: pick sections, provinces, act types or a company-name fragment before anything is delivered.
- Delta mode: a daily schedule returns only the acts and notices you have not received before.
- One row per act or notice: the published text is republished word for word (only whitespace is normalised), with the registry details split out.
- Nothing disappears silently: a document that cannot be fetched or parsed becomes a free status row instead of being dropped.
- Cheap to try: the prefilled input returns a few rows in seconds.

### Quick start

Click Start with the prefilled input (all sections, `maxItems` 100). It returns the first acts of today's BORME (Madrid time). For a cheap first try, paste this smaller run:

```json
{
  "maxItems": 5
}
```

You get up to 5 dataset rows in publication order (Overview view: date, section, province, act number, company, act types, category, notice type, status, link to the BORME page).

If today is a weekend or a public holiday there is no BORME. Set `dateFrom` and `dateTo` to the most recent publication days instead.

### What you get

One row per act in Sections A and B, and one row per legal notice in Section C. Values come straight from the BORME; missing values are `null`.

| Field | Meaning |
|---|---|
| `announcementId` | Stable id: `"<sourceDocumentId>#<actNumber>"` for Sections A/B (`#pos<n>` for an act published without a number, `-<n>` added if a number repeats in one document), the document id for Section C |
| `section`, `sectionName` | Section letter (`A`, `B`, `C`) and its published heading |
| `publicationDate`, `bormeNumber` | Publication date (ISO) and the BORME issue number of the day |
| `province` | Document title for Sections A/B (for example `ALBACETE`); `null` for Section C |
| `actNumber` | Act number inside the province document; `null` for Section C |
| `companyName` | Company name as published, trailing full stop removed |
| `actCategory` | Section B category heading published before the acts (for example `Depósitos de proyectos de fusión por absorción`); `null` elsewhere |
| `actTypes` | Act-type labels found at the start of the published paragraph (may be empty when the label is not in the vocabulary) |
| `noticeType` | Section C grouping heading from the sumario (for example `BALANCES`) or the document's department |
| `text` | Full published text of the act or notice, word for word (only whitespace is normalised). Officer and shareholder names stay inside this field |
| `registryData` | Registry details published after `Datos registrales.` (Sections A/B) |
| `sourceDocumentId` | BORME document identifier, for example `BORME-A-2026-216-02` |
| `urlPdf`, `urlHtml`, `urlXml` | The document on boe.es in each format |
| `source` | Data source |
| `status`, `message` | Only on free status rows: `fetch_error` or `parse_error`, and what went wrong |

#### Sections A, B and C

- **Section A** lists the acts registered in each province's Commercial Registry: incorporations, appointments and resignations, registered-office changes, capital increases and reductions, dissolutions and similar. There is one document per province and one row per act inside it. The daily alphabetical company index is a cross-reference table with no acts of its own, so it is skipped (never downloaded or billed).
- **Section B** lists other acts published in the Commercial Registry, such as merger or spin-off projects. Acts are grouped under a category heading, returned in `actCategory`. The act date in the published heading is removed from `companyName` but kept in `text`.
- **Section C** holds legal notices and announcements: balance sheets, general meetings, mergers and spin-offs, capital reductions, transformations and similar. Each document is one notice; the grouping heading from the sumario becomes `noticeType`, and published tables are flattened into tab-separated lines inside `text`.

A document that cannot be downloaded or parsed is not dropped. It is returned as a free status row with the same document identifiers, `status` set to `fetch_error` or `parse_error`, and a `message` explaining what happened.

Sample (the first act of the real document `BORME-A-2026-216-02`, published on 2026-11-11):

```json
{
  "announcementId": "BORME-A-2026-216-02#502159",
  "section": "A",
  "sectionName": "SECCIÓN PRIMERA. Empresarios. Actos inscritos",
  "publicationDate": "2026-11-11",
  "bormeNumber": "216",
  "province": "ALBACETE",
  "actNumber": "502159",
  "companyName": "GRUPO ITALO-IBERICO JOEN SOCIEDAD LIMITADA",
  "actCategory": null,
  "actTypes": ["Declaración de unipersonalidad", "Socio único"],
  "noticeType": null,
  "text": "502159 - GRUPO ITALO-IBERICO JOEN SOCIEDAD LIMITADA.\nDeclaración de unipersonalidad. Socio único: NAMAR RURAL TRADING SOCIEDAD LIMITADA. Datos registrales. S 8 , H AB 7989, I/A 8 ( 3.11.26).",
  "registryData": "S 8 , H AB 7989, I/A 8 ( 3.11.26).",
  "sourceDocumentId": "BORME-A-2026-216-02",
  "urlPdf": "https://www.boe.es/borme/dias/2026/11/11/pdfs/BORME-A-2026-216-02.pdf",
  "urlHtml": "https://www.boe.es/diario_borme/txt.php?id=BORME-A-2026-216-02",
  "urlXml": "https://www.boe.es/diario_borme/xml.php?id=BORME-A-2026-216-02",
  "source": "Agencia Estatal Boletín Oficial del Estado (BOE), BORME"
}
```

#### Input

| Field | Default | Notes |
|---|---|---|
| `dateFrom`, `dateTo` | today | `YYYY-MM-DD`, both inclusive, judged in Madrid time. If you set only one end, that day is used on its own. Together they may cover at most 31 calendar days per run. Days without a BORME (weekends, holidays) are counted and skipped, not treated as errors |
| `sections` | `["A","B","C"]` | `A` registered acts, `B` other published acts, `C` legal notices. Empty means all three |
| `provinces` | all | Section A/B document titles, matched ignoring case and accents. Bilingual titles match either part: `Alicante` matches `ALICANTE/ALACANT`. Section C has no province and is not affected. Up to 100 values |
| `actTypes` | all | Keep Section A/B acts carrying at least one of the published labels (`Constitución`, `Nombramientos`, `Ceses/Dimisiones`, `Ampliación de capital`, `Disolución`, `Situación concursal`, ...). Matching ignores case and accents. Acts with an unlisted label are kept when the filter is empty. Section C notices carry no act types, so any `actTypes` filter excludes them |
| `companyNameContains` | any | Words to find in the published company name, ignoring case and accents. It is only compared as text and never sent anywhere |
| `deltaMode`, `stateStoreName` | off, `borme-monitor-state` | Remember delivered ids in a named key-value store and skip them on later runs. Lowercase letters, digits and hyphens |
| `maxItems` | 1000 (prefill 100) | Hard cap on delivered announcements per run, so it caps cost |
| `requestDelaySecs` | 1 | Pause between requests to the BOE, between 1 and 30 seconds |

Values you type are validated before any request. An invalid province, act type, date window or state-store name fails the run with a clear message.

### Pricing

Billing is **pay per event `announcement-returned`, $3.50 per 1,000 announcements (set in the Apify Console)**. One delivered row is one event, $0.0035 each.

- Not charged: rows skipped by delta mode, acts removed by a filter, and anything not delivered.
- Free status rows for unreadable documents are never charged, so a broken day does not cost you money.
- `maxItems` is a hard cap per run. A 5-row run costs $0.0175.
- Example: a daily run that returns 250 new announcements costs $0.875.

### Delta mode for daily monitoring

Turn on `deltaMode` and schedule the Actor daily (or several times a day). The ids of delivered announcements are written to a named key-value store, and the state is saved once per BORME document, after all of its acts are pushed (a 470-act province file is one write, not 470). If the platform kills a run in the middle of a document, at most that document's rows can be delivered again by the next run.

- The first run returns everything that matches the window.
- Later runs skip ids they have already delivered, before pushing or charging them.
- Use one `stateStoreName` per feed (for example per province set or section), so two schedules do not share a state by accident.
- The state keeps at least 400 days of delivered ids (longer if you use a window reaching further back) and at most 100,000 ids.

Set `dateFrom`/`dateTo` only when you want a specific window; by default a run looks at today in Madrid.

### Use with AI agents (MCP, Claude, Cursor, n8n, Make)

AI agents can call this Actor through the Apify MCP server.

```json
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=goobertje/spain-borme-corporate-monitor" } } }
```

Sign in with OAuth in the browser on first use. Example prompts and the input each one maps to:

1. "Show me incorporations (Constitución) in Barcelona published this week."
   `{ "sections": ["A"], "provinces": ["Barcelona"], "actTypes": ["Constitución"], "dateFrom": "2026-11-10", "dateTo": "2026-11-12", "maxItems": 50 }`
2. "Any BORME notice naming Compañía Auxiliar del Puerto?"
   `{ "sections": ["C"], "companyNameContains": "compañia auxiliar", "dateFrom": "2026-11-10", "dateTo": "2026-11-12", "maxItems": 50 }`
3. "Give me a daily feed of insolvency acts (Situación concursal) in Madrid, only new ones."
   `{ "sections": ["A"], "provinces": ["Madrid"], "actTypes": ["Situación concursal"], "deltaMode": true, "stateStoreName": "madrid-insolvency", "maxItems": 100 }`

In n8n, Make or Zapier, use the Apify node or module, pick this Actor and paste the same JSON.

### Use cases

- Credit risk: get an alert when a customer or supplier appears in a dissolution, capital reduction or insolvency act.
- Lead generation: contact newly incorporated companies in your province within days of registration.
- Accounting and legal: follow appointments, resignations, registered-office changes and account filings for a client portfolio.
- M\&A scouting: list merger and spin-off projects and capital increases from Sections B and C.
- Market research: count incorporations and dissolutions by province and week.

### FAQ

**Where does the data come from and is it allowed?** From the BORME open-data API published by the BOE at `https://www.boe.es/datosabiertos/api/borme/sumario/{YYYYMMDD}`, with no key. The BORME is official public information; its reuse conditions allow reuse, including commercial reuse, provided you cite the source, do not distort the meaning of the text and link the original document via `urlPdf` or `urlHtml`.

**How fresh is it?** The Actor reads the live BORME. It is published on business days; a day without a BORME answers 404 and is counted as "without publication", not as an error. Acts appear as the BOE publishes them.

**How much does a typical run cost?** $3.50 per 1,000 delivered rows. Most days return a few dozen to a few hundred rows, so cents.

**What happens when the source blocks or changes?** The Actor waits at least 1 second between requests and stops after three 403/429 answers in a row. If it already delivered rows, the run ends as Succeeded with a message saying how many; with zero rows it fails. Unreadable documents become free status rows. A request budget of 2,500 per run also stops the run politely with what it has.

**Can I schedule it and get only new items?** Yes. Turn on `deltaMode`, pick a `stateStoreName` and schedule the Actor daily. Delivered ids are kept in that named key-value store, saved after each BORME document is processed.

**What is not included?** The PDF is not downloaded, nothing is enriched with data from other registers, and person names are not extracted into separate fields. Fields are exactly what the BORME publishes.

### Personal data and the GDPR

The BORME is an official gazette, but its acts often concern natural persons: officer and shareholder names (and sometimes their positions and addresses) appear **inside the published `text`** of many acts. This Actor republishes the official text word for word (only whitespace is normalised). It does **not** extract, split out or index persons: there are no person fields, no name index and no cross-run people database.

If you process these rows further, **you are the data controller for your downstream use**. You must have a lawful basis for that processing, respect purpose limitation (use the data only for the purpose you declared), keep it no longer than necessary, and honour data-subject rights (access, rectification, erasure, objection, restriction). Do not use the output to build profiles of individuals or to make automated decisions about them without an appropriate legal basis. If you are unsure, take legal advice before publishing or sharing the data.

### Limits and honest caveats

- There is no BORME on weekends or public holidays. Those days are counted as "without publication", not as errors.
- The Section A text is the Commercial Registry's summary of the registered act, not the full deed or the registry file. For the authoritative document, use `urlHtml` or `urlPdf`.
- A run covers at most 31 calendar days (both ends included). Use several runs or a delta schedule for longer periods.
- The Actor reads at most 2,500 HTTP requests per run, at least 1 second apart, and stops after three consecutive 403/429 answers instead of trying to bypass them.
- Documents that cannot be fetched or parsed are returned as free status rows; they are not billed, but they do count in the run message.
- If a whole day's sumario cannot be read after retries, the run stops there with a message naming the day; rows already delivered are kept and later days are not read. Re-run from that date.
- The Actor does not download PDFs, does not add data from other registers (no NIF, no financials, no address lookup) and does not resolve company groups.
- Act-type labels come from a fixed vocabulary published at the start of each paragraph; an act with an unrecognised label is still returned, with an empty `actTypes`.
- Not legal advice and not a legal record. For official use, open the document on boe.es via `urlHtml` or `urlPdf`.

Source: "Fuente: Agencia Estatal Boletín Oficial del Estado (BOE), https://www.boe.es". Reuse is subject to the BOE's reuse conditions: cite the source, do not alter the meaning, link the original. This Actor is not affiliated with, endorsed by or sponsored by the BOE or the Registro Mercantil.

Found a problem or want a field added? Open an issue on the Actor page.

# Actor input Schema

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

First BORME publication date to include (YYYY-MM-DD, Madrid time). Defaults to today. dateFrom and dateTo together may cover at most 31 days per run. Example: "2026-11-10".

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

Last BORME publication date to include (YYYY-MM-DD, Madrid time). Defaults to today. Days without a BORME (weekends, holidays) are counted and skipped, not treated as errors. Example: "2026-11-12".

## `sections` (type: `array`):

Which BORME sections to read. A = registered acts per province, B = other acts published in the Commercial Registry, C = legal notices and announcements. Default: all three. Example: \["A", "B"].

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

Keep Section A/B documents from these provinces, matched against the published document title ignoring case and accents ("Barcelona" = "BARCELONA"; bilingual titles also match either part, so "Alicante" matches "ALICANTE/ALACANT"). Up to 100. Empty means all of Spain. Section C has no province and is not affected. Example: \["Madrid", "Barcelona"].

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

Keep only Section A/B acts whose published paragraph carries at least one of these labels. Acts with an unlisted label are still returned when this filter is empty. Section C notices carry no act type. Example: \["Constitución", "Nombramientos"].

## `companyNameContains` (type: `string`):

Keep acts and notices whose published company name contains these words, ignoring case and accents. Empty means any. Example: "construcciones".

## `deltaMode` (type: `boolean`):

Remember every delivered announcement id in a named key-value store and skip them on later runs, so a daily schedule only returns announcements not delivered before. Skipped announcements are not billed. The first run returns everything that matches.

## `stateStoreName` (type: `string`):

Name of the persistent key-value store that holds the delta state. Use a different name per feed (for example per section or province set). Only lowercase letters, digits and hyphens are allowed (not at the start or end). Default: "borme-monitor-state".

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

Maximum number of announcements (dataset items, each one billed) a run outputs; the run stops once reached. Free status rows for unreadable documents are not counted and not billed, and neither are announcements skipped in delta mode. Default: 1000.

## `requestDelaySecs` (type: `number`):

Pause between requests to the BOE API, to stay polite. Minimum 1, maximum 30. Default: 1.

## Actor input object example

```json
{
  "sections": [
    "A",
    "B",
    "C"
  ],
  "provinces": [],
  "actTypes": [],
  "deltaMode": false,
  "stateStoreName": "borme-monitor-state",
  "maxItems": 100,
  "requestDelaySecs": 1
}
```

# Actor output Schema

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

Corporate acts and legal notices from the official BOE BORME open-data API, in publication order.

# 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 = {
    "sections": [
        "A",
        "B",
        "C"
    ],
    "actTypes": [],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("goobertje/spain-borme-corporate-monitor").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 = {
    "sections": [
        "A",
        "B",
        "C",
    ],
    "actTypes": [],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("goobertje/spain-borme-corporate-monitor").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 '{
  "sections": [
    "A",
    "B",
    "C"
  ],
  "actTypes": [],
  "maxItems": 100
}' |
apify call goobertje/spain-borme-corporate-monitor --silent --output-dataset

```

## MCP server setup

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

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/hc3htqOhxlIiNtkgp/builds/TNh8ZDiOT2WwKvlXF/openapi.json
