# BORME New Companies (Spain Commercial Registry) (`rawtojson/borme-new-companies`) Actor

New companies and corporate changes published in Spain's official commercial registry gazette (BORME), as clean JSON with address, capital and activity. No people's names. Incremental daily mode for lead generation, KYC and market research.

- **URL**: https://apify.com/rawtojson/borme-new-companies.md
- **Developed by:** [Juan Francisco](https://apify.com/rawtojson) (community)
- **Categories:** Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 companies returned

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/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 New Companies — Spain's commercial registry as clean JSON

Every business day Spain publishes the **BORME** (Boletín Oficial del Registro Mercantil), listing every company created, dissolved or changed. It comes as PDFs and long text. This Actor reads the **official open-data API of the BOE** and returns one clean JSON item per company: name, province, address, share capital, activity (CNAE), start date and the registry acts. **No people's names are included.**

### What you can do with it

- **Lead generation:** a new company needs an accountant, bank, insurance, software, a website and an office. Get them the day they appear.
- **Market research:** count new companies by province, sector or capital, and track trends.
- **KYC and monitoring:** follow changes of address, name, capital, dissolution or insolvency of companies you work with.
- **AI agents and CRMs:** compact JSON, ready for n8n, Make or an LLM.

### Input

| Field | Description |
|---|---|
| `daysBack` | Days to read, counting back from today (Spain time). Default 3. |
| `dateFrom` / `dateTo` | Optional explicit range (YYYY-MM-DD). |
| `onlyNewDays` | Incremental mode: skip days already processed in your previous run. Schedule it daily and pay only for new companies. |
| `actTypes` | Acts to return. Default `["constitucion"]` (new companies). Others: `ampliacion_capital`, `reduccion_capital`, `cambio_domicilio`, `cambio_denominacion`, `cambio_objeto`, `disolucion`, `extincion`, `fusion_escision`, `transformacion`, `concurso`, `unipersonalidad`, `modificacion_estatutos`, `administradores`. Empty = any act. |
| `provinces` | Optional province filter (partial names, accents ignored). |
| `keywords` | Optional keywords in company name or corporate purpose (Spanish). |
| `cnaePrefixes` | Optional CNAE code prefixes, e.g. `62`, `4110` (only when the entry states the code). |
| `minCapitalEur` | Optional minimum capital. |
| `maxCompanies` | Cap on companies returned. Default 1000. |

Example: new software companies in Madrid and Barcelona this week.

```json
{
  "daysBack": 7,
  "provinces": ["Madrid", "Barcelona"],
  "actTypes": ["constitucion"],
  "cnaePrefixes": ["62"]
}
```

### Output

```json
{
  "companyName": "ALUMAG EIVISSA SL",
  "registryEntryNumber": 523158,
  "publicationDate": "2026-11-19",
  "province": "VALENCIA/VALÈNCIA",
  "acts": ["constitucion", "unipersonalidad", "administradores"],
  "isNewCompany": true,
  "startOfOperations": "2026-10-29",
  "corporateObject": "Compraventa al por menor de carpintería metálica…",
  "cnaeCode": "47.52",
  "address": "C/ HERMANAS CUBELLS 1 (XIRIVELLA)",
  "city": "XIRIVELLA",
  "capitalEur": 3000,
  "isSoleShareholder": true,
  "registryData": "S 8 , H V 239048, I/A 1",
  "registrationDate": "2026-11-12",
  "pdfUrl": "https://www.boe.es/borme/dias/2026/11/19/pdfs/BORME-A-2026-222-46.pdf"
}
```

Depending on the acts, items also include `capitalIncreaseEur`, `capitalAfterEur`, `capitalReductionEur`, `newAddress`, `newCity`, `newCompanyName`, `newCorporateObject` and `dissolution`.

### Privacy (GDPR)

The BORME also publishes the names of administrators, sole shareholders and other people. **This Actor never returns them.** It returns only data about the company: legal entities with a company legal form (S.L., S.A., S.L.U., cooperatives, A.I.E., foundations…). Sole traders (individual entrepreneurs) are skipped. Free-text fields such as «other concepts», which can contain people's names, are dropped. The company address is the registered office published in the registry.

### Pricing

**Pay per event: you pay for each company returned.** Filtered-out companies and skipped entries are free. Incremental mode returns only new days, so a daily schedule costs only what is new. You can set a maximum cost per run.

### Source and limits

- Data comes from the official BOE open-data API (public sector information, reuse under Spanish Law 37/2007). The Actor identifies itself and paces its requests.
- BORME is published Monday to Saturday. Days without an issue are skipped.
- Section A (acts registered by the commercial registries) is covered. Section B and the Official Gazette of insolvencies are not.
- Not every entry states a CNAE code, so `cnaeCode` can be missing. Texts are in Spanish.

### Support

Issues are answered within 24 hours. More Actors at **https://rawtojson.com**.

# Actor input Schema

## `daysBack` (type: `integer`):

How many days to read, counting back from today (Spain time). BORME is published Monday to Saturday. Ignored if you set dateFrom.

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

Optional. First publication day to read (YYYY-MM-DD).

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

Optional. Last publication day to read (YYYY-MM-DD). Defaults to today.

## `onlyNewDays` (type: `boolean`):

Skip the days already processed in your previous run. Ideal for a daily schedule: you only pay for new companies.

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

Which registry acts to return. Leave only 'constitucion' for newly created companies. Options: constitucion, ampliacion_capital, reduccion_capital, cambio_domicilio, cambio_denominacion, cambio_objeto, disolucion, extincion, fusion_escision, transformacion, concurso, unipersonalidad, modificacion_estatutos, administradores. Empty list = every company with any act.

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

Optional. Only these provinces (partial names, accents ignored), e.g. Madrid, Barcelona, Valencia.

## `keywords` (type: `array`):

Optional. Keep companies whose name or corporate purpose contains at least one keyword (Spanish text, case and accents ignored).

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

Optional. Keep companies whose CNAE activity code starts with one of these (e.g. 62, 4110). Only available when the registry entry states the code.

## `minCapitalEur` (type: `integer`):

Optional. Ignore companies with a smaller capital.

## `maxCompanies` (type: `integer`):

Maximum number of companies to return in the run.

## Actor input object example

```json
{
  "daysBack": 3,
  "onlyNewDays": false,
  "actTypes": [
    "constitucion"
  ],
  "minCapitalEur": 0,
  "maxCompanies": 1000
}
```

# Actor output Schema

## `companies` (type: `string`):

Companies with their registry acts, by province.

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

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

# Run the Actor and wait for it to finish
run = client.actor("rawtojson/borme-new-companies").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 '{
  "actTypes": [
    "constitucion"
  ]
}' |
apify call rawtojson/borme-new-companies --silent --output-dataset

```

## MCP server setup

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

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/tkeFKbxTlbJIFon7w/builds/Fz0OnMxOEIMQQCcH7/openapi.json
