# Spanish Company Feed — BORME Registry Acts as Clean JSON (`jdepablos/borme-company-feed`) Actor

Daily structured feed of Spain's Companies Registry (BORME): incorporations with purpose/address/capital, appointments, dissolutions, insolvencies and more. Official source, parsed per act. Built for lead-gen and AI agents.

- **URL**: https://apify.com/jdepablos/borme-company-feed.md
- **Developed by:** [Juan de Pablos](https://apify.com/jdepablos) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 company acts

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Spanish Company Feed — BORME Registry Acts as Clean JSON

**Every company event in Spain, structured.** Daily feed of the official Spanish Companies Registry gazette (BORME): incorporations, appointments, capital increases, dissolutions, insolvencies — parsed into one clean JSON record per act, straight from the official source.

The official gazette publishes semi-structured text per province. This Actor turns it into data you can filter, join and act on: **"give me every company incorporated in Madrid yesterday, with purpose, address and capital."**

### What you get per act

```json
{
  "bormeId": "BORME-A-2026-125-28",
  "date": "2026-07-02",
  "province": "MADRID",
  "companyName": "VENUM CAPITAL SL",
  "actTypes": ["constitucion"],
  "constitution": {
    "startDate": "9.06.26",
    "purpose": "64.2 — Actividades de sociedades holding...",
    "address": "C/ EXAMPLE 1, PISO 2 (MADRID)",
    "capitalEur": 3000
  },
  "registryData": "S 8, H M 883714, I/A 1 (25.06.26)",
  "rawText": "Constitución. Comienzo de operaciones: 9.06.26. Objeto social: ..."
}
````

Real numbers from one edition: ~30 provinces, **~139 new incorporations in Madrid alone**, 19 act types classified, ~98% of acts typed (the rest keep their full official text).

### Use cases

- **Lead generation**: new incorporations by province and business purpose — contact them before your competitors know they exist.
- **KYC / credit risk**: dissolutions, insolvencies (`concurso`), capital reductions and registry-sheet closures for companies you monitor.
- **Market intelligence**: who is incorporating in which sector (CNAE in the purpose), capital trends by region.
- **AI agents**: a daily structured feed of Spanish corporate events, one tool call away.

### Act types

`constitucion` · `nombramientos` · `ceses` · `revocaciones` · `reelecciones` · `ampliacion-capital` · `reduccion-capital` · `disolucion` · `extincion` · `concurso` · `cambio-domicilio` · `cambio-objeto` · `cambio-denominacion` · `fusion` · `escision` · `transformacion` · `unipersonalidad` · `cierre-hoja` · `modificaciones-estatutarias` · `fe-de-erratas` · `otros`

### Input

| Field | Description |
|---|---|
| `date` | Edition date (YYYY-MM-DD). Defaults to today; automatically falls back to the latest edition (BORME is published Mon-Sat) |
| `provinces` | e.g. `["MADRID", "BARCELONA"]` — empty for all of Spain |
| `actTypes` | e.g. `["constitucion", "concurso"]` — empty for all |
| `companies` | Watchlist: only acts whose company name contains one of these strings |
| `maxActs` | Cap for cheap test runs (0 = no limit) |

### Data & compliance

- **Official source**: AEBOE open-data API (boe.es) — the legally mandated public gazette. No scraping of private sites, no anti-bot games, stable format.
- **GDPR-minimized**: structured fields are company-level only (name, act, purpose, address, capital, registry data). Natural-person names are never extracted into structured fields; they only appear inside `rawText`, which is a verbatim quote of the official gazette.
- **Auditable**: every record carries its official gazette identifier (`bormeId`).

### Use with AI agents (MCP)

This Actor is exposed as a tool on the [Apify MCP Server](https://mcp.apify.com):

```json
{
  "mcpServers": {
    "borme-company-feed": {
      "url": "https://mcp.apify.com?tools=jdepablos/borme-company-feed",
      "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }
    }
  }
}
```

### Pricing

Pay per event: **a flat fee per act returned** — you pay for exactly the data you filter for, nothing else. Failed provinces are reported and never charged.

### FAQ

**When is new data available?** The BORME is published every working day (Mon-Sat) early in the morning, Spanish time. Run the Actor daily after ~07:30 Europe/Madrid.

**Why do some acts have `actTypes: ["otros"]`?** ~2% of acts use rare phrasings ("Otros conceptos", special proceedings). They are still delivered with their full official text so you never lose data.

**Can I monitor specific companies?** Yes — pass `companies: ["ACME", "GLOBEX"]` and only acts from matching company names are returned (and charged). Combine with a daily schedule for a KYC / credit watch.

### More data tools by this developer

- [eBay Sold Price Appraiser — real market value from confirmed sales](https://apify.com/jdepablos/ebay-sold-price-appraiser)
- [Second-hand Deal Scanner ES — Vinted/Wallapop/Milanuncios deals vs eBay sold](https://apify.com/jdepablos/second-hand-deal-scanner-es)
- [Spain Public Auctions (BOE) — judicial auctions with market comparison](https://apify.com/jdepablos/spain-boe-auctions)
- [Trademark Watch (TMview) — new filings & opposition deadlines](https://apify.com/jdepablos/trademark-watch-tmview)

# Actor input Schema

## `date` (type: `string`):

YYYY-MM-DD. Defaults to today; if there is no edition that day (Sundays/holidays), the latest one within 5 days back is used.

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

Filter by province name as published (e.g. \["MADRID", "BARCELONA"]). Empty = all of Spain (~30 provinces with acts per edition).

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

Filter by act type. Empty = all.

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

Only return acts whose company name contains one of these strings (accent/case-insensitive), e.g. \["ACME", "GLOBEX"]. Combine with a daily schedule to monitor specific companies (KYC / credit watch).

## `maxActs` (type: `integer`):

Stop after this many acts (0 = no limit). Useful for cheap test runs.

## Actor input object example

```json
{
  "provinces": [
    "MADRID"
  ],
  "actTypes": [
    "constitucion"
  ],
  "maxActs": 0
}
```

# 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 = {
    "provinces": [
        "MADRID"
    ],
    "actTypes": [
        "constitucion"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jdepablos/borme-company-feed").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 = {
    "provinces": ["MADRID"],
    "actTypes": ["constitucion"],
}

# Run the Actor and wait for it to finish
run = client.actor("jdepablos/borme-company-feed").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "provinces": [
    "MADRID"
  ],
  "actTypes": [
    "constitucion"
  ]
}' |
apify call jdepablos/borme-company-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jdepablos/borme-company-feed",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Spanish Company Feed — BORME Registry Acts as Clean JSON",
        "description": "Daily structured feed of Spain's Companies Registry (BORME): incorporations with purpose/address/capital, appointments, dissolutions, insolvencies and more. Official source, parsed per act. Built for lead-gen and AI agents.",
        "version": "0.2",
        "x-build-id": "YfwmZx8G1sAu9Dnpv"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/jdepablos~borme-company-feed/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-jdepablos-borme-company-feed",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/jdepablos~borme-company-feed/runs": {
            "post": {
                "operationId": "runs-sync-jdepablos-borme-company-feed",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/jdepablos~borme-company-feed/run-sync": {
            "post": {
                "operationId": "run-sync-jdepablos-borme-company-feed",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "date": {
                        "title": "Edition date",
                        "type": "string",
                        "description": "YYYY-MM-DD. Defaults to today; if there is no edition that day (Sundays/holidays), the latest one within 5 days back is used."
                    },
                    "provinces": {
                        "title": "Provinces",
                        "type": "array",
                        "description": "Filter by province name as published (e.g. [\"MADRID\", \"BARCELONA\"]). Empty = all of Spain (~30 provinces with acts per edition)."
                    },
                    "actTypes": {
                        "title": "Act types",
                        "type": "array",
                        "description": "Filter by act type. Empty = all.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "constitucion",
                                "nombramientos",
                                "ceses",
                                "revocaciones",
                                "reelecciones",
                                "ampliacion-capital",
                                "reduccion-capital",
                                "disolucion",
                                "extincion",
                                "concurso",
                                "cambio-domicilio",
                                "cambio-objeto",
                                "cambio-denominacion",
                                "fusion",
                                "escision",
                                "transformacion",
                                "unipersonalidad",
                                "cierre-hoja",
                                "modificaciones-estatutarias",
                                "fe-de-erratas",
                                "otros"
                            ],
                            "enumTitles": [
                                "Incorporations",
                                "Appointments",
                                "Departures/resignations",
                                "Revocations",
                                "Re-elections",
                                "Capital increase",
                                "Capital reduction",
                                "Dissolution",
                                "Extinction",
                                "Insolvency",
                                "Registered-address change",
                                "Corporate-purpose change",
                                "Company-name change",
                                "Merger",
                                "Spin-off",
                                "Transformation",
                                "Sole-shareholder status",
                                "Provisional registry-sheet closure",
                                "Bylaw amendments",
                                "Corrections",
                                "Other"
                            ]
                        }
                    },
                    "companies": {
                        "title": "Company watchlist (optional)",
                        "type": "array",
                        "description": "Only return acts whose company name contains one of these strings (accent/case-insensitive), e.g. [\"ACME\", \"GLOBEX\"]. Combine with a daily schedule to monitor specific companies (KYC / credit watch)."
                    },
                    "maxActs": {
                        "title": "Max acts",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Stop after this many acts (0 = no limit). Useful for cheap test runs.",
                        "default": 0
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
