# BORME España — nuevas sociedades, disoluciones y cargos (`daniizarsan/borme-espana`) Actor

Feed diario del Registro Mercantil español (BORME, fuente oficial BOE): sociedades constituidas con CNAE, capital, domicilio y administradores; disoluciones y modificaciones. Actos clasificados. Datos oficiales, actualizado cada mañana.

- **URL**: https://apify.com/daniizarsan/borme-espana.md
- **Developed by:** [Daniel de la Zarza Sánchez](https://apify.com/daniizarsan) (community)
- **Categories:** Business
- **Security:** 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

## BORME España — nuevas sociedades, disoluciones y cargos

Feed diario del **Registro Mercantil español** desde el BORME oficial (fuente pública del BOE): sociedades constituidas con CNAE, capital, domicilio y administradores; disoluciones, cancelaciones, nombramientos y el resto de actos societarios, clasificados y limpios.

- **Estado**: v1.0 — mismo pipeline verificado que Subvenciones BDNS (nuestro otro actor).
- **Frecuencia de la fuente**: el BORME se publica cada mañana laborable.

### Qué obtienes (hasta 18 campos por sociedad)

- **Base**: código registral, razón social, registro (provincia), fecha de publicación, boletín, PDF oficial.
- **Actos clasificados**: `constitucion`, `disolucion`, `extincion`, `cancelacion`, `nombramientos`, `ceses`, `unipersonalidad`, `transformacion`, `fusion`, `liquidacion`... (el más relevante en `actoPrincipal`).
- **De constituciones y modificaciones**: CNAE, sección CNAE (A-U), capital, domicilio, objeto social, fecha de comienzo de operaciones, administradores/apoderados.

### Reglas de diseño

1. **Enriquecimiento solo en caso de éxito**: si un dato no sale limpio del BOE, el item queda SOLO con los campos base (sin nulls de relleno).
2. **Una empresa-anuncio = UNA fila**, sin duplicados entre días o documentos.
3. **Esquema duro**: si la fuente rompe el formato, el actor aborta antes de guardar basura.
4. **Checkpoint por día**: reanuda rangos largos donde lo dejó.
5. **~4 peticiones/segundo**: respetuoso con el BOE, reintentos con backoff.
6. **Filtros humanos**: provincias por nombre ("Albacete, Madrid" — sin IDs), tipo de acto en español, texto libre.

### Ejemplo de entrada

```json
{ "fechaDesde": "2026-11-03", "provincias": "Madrid, Barcelona", "tipoActo": "constitucion", "maxItems": 200 }
```

Sin filtros extrae **ayer** completo (día típico: 300-900 sociedades). Para un rango histórico: `fechaDesde` + `fechaHasta`.

### Ejemplo de salida (real, boletín del 03/11/2026)

```json
{
  "id": "BORME-A-2026-211-02-488731",
  "codigoRegistral": "488731",
  "empresa": "SHIBA CAPITAL PARTNERS SOCIEDAD LIMITADA",
  "registro": "ALBACETE",
  "fechaPublicacion": "2026-11-03",
  "boletin": "211",
  "urlPdf": "https://www.boe.es/borme/dias/2026/11/03/pdfs/BORME-A-2026-211-02.pdf",
  "actos": ["constitucion"],
  "actoPrincipal": "constitucion",
  "cnae": "6499/6831",
  "cnaeSeccion": ["K", "L"],
  "capital": 3200.0,
  "domicilio": "C/ INSULA BARATARIA, 3 bajo 02006 (ALBACETE)",
  "objetoSocial": "La compraventa de todo tipo de activos financieros por cuenta propia...",
  "comienzoOperaciones": "2026-09-22",
  "administradores": ["RAMIREZ MONREAL JUAN JOSE", "FERNANDEZ GARRIDO JUSTO"],
  "etiquetas": ["financiera", "inmobiliaria"],
  "fechaConsulta": "2026-11-04"
}
```

### Integración por API

```bash
curl -X POST "https://api.apify.com/v2/acts/daniizarsan~borme-espana/run-sync-get-dataset-items?clean=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"fechaDesde": "2026-11-03", "maxItems": 50}'
```

### Casos de uso

- **Generación de leads B2B**: empresas nuevas por provincia/sector el mismo día (asesorías, notarías, SaaS de facturación, seguro de crédito).
- **Vigilancia competitiva**: disoluciones y cambios de administradores de empresas objetivo.
- **Estudios de mercado**: incorporaciones de sociedades por sector (CNAE) y provincia.

### RGPD

Los administradores/apoderados de sociedades figuran en un registro público (BORME). Reutilízalos con fines legítimos; no verifiques personas físicas más allá del acto publicado.

### Familia

Este actor forma parte de "España — datos oficiales": **Subvenciones BDNS** (`daniizarsan/bdns-subsidios`) + **BORME**. Mismo formato de dataset, mismas reglas de calidad.

### Precio

PAY_PER_EVENT: $0.003 por sociedad (evento por item), $0.0001 por arranque, tope $5/run. La fuente es gratuita; se paga por la extracción, parseo y estructura lista para usar.

### Última verificación de la fuente

2026-11-04: sumario del 03/11/2026 con 30 anuncios por provincia parseados en vivo; 13 tests en verde con fixture real.

***

### Familia "España — datos oficiales"

- **Catastro España** (`daniizarsan/catastro-espana`): cualquier inmueble por referencia catastral
  o dirección — uso, superficie, coeficiente, año, construcciones por planta.
- **Subvenciones BDNS** (`daniizarsan/bdns-subsidios`): convocatorias oficiales con cruces BOE y concesiones.
- **Subastas España** (`daniizarsan/subastas-espana`): subastas del BOE (inmuebles con valores y
  cargas, vehículos con matrícula y bastidor) — combina con Catastro para evaluar el bien subastado.

# Actor input Schema

## `fechaDesde` (type: `string`):

Primer dia de publicacion BORME. Por defecto: ayer.

## `fechaHasta` (type: `string`):

Ultimo dia del rango. Solo con fechaDesde.

## `provincias` (type: `string`):

Nombres tal cual, p. ej. "Albacete, Madrid". Sin acentos da igual. Vacio = todas.

## `tipoActo` (type: `string`):

Filtra por el acto principal de la sociedad en ese boletin.

## `texto` (type: `string`):

Busqueda libre, p. ej. "inmobiliaria".

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

Un dia BORME tipico trae 300-900 sociedades.

## `continuarDespues` (type: `boolean`):

Checkpoint por dia: si el run se cae, la siguiente ejecucion con los mismos filtros reanuda el rango.

## Actor input object example

```json
{
  "tipoActo": "todos",
  "maxItems": 1000,
  "continuarDespues": true
}
```

# Actor output Schema

## `sociedades` (type: `string`):

Dataset de sociedades: id (idDoc-codigoRegistral), codigoRegistral, empresa, registro (provincia), fechaPublicacion (AAAA-MM-DD), boletin, urlPdf, actos (lista clasificada), actoPrincipal, y mejor esfuerzo: cnae, capital, domicilio, objetoSocial, administradores.

## `resumen` (type: `string`):

Contadores: sociedades emitidas, anuncios procesados, cobertura de campos y fallos de cruces.

# 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 = {};

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

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

```

## MCP server setup

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

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/Gnmq43QPxJhL8ge7X/builds/drIWBLDple7sEm3Jw/openapi.json
