# BORME Cambios Societarios (`fluyeporlaweb/spain-company-changes`) Actor

Cambios societarios diarios: nombramientos, ceses, ampliaciones de capital y disoluciones. Filtra por provincia para riesgo y competencia.

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

## Pricing

from $4.00 / 1,000 changes

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 Company Changes — directors, capital & dissolutions

Spain publishes **every corporate change** in the BORME: new directors, removals, capital increases,
address changes, dissolutions and liquidations. It does it as 33 provincial XML files full of prose.

This Actor turns that into a **change feed per company**, filterable by province, act type and keywords —
the early-warning layer for risk, compliance and competitor monitoring.

### Output

One row per company per run:

```json
{"company_name":"TRABEIRA TRATAMIENTO DE VIDRIO SL","province":"ALICANTE/ALACANT","date":"20261113",
 "act_types":["nombramiento","cese"],"cnae":[],"capital_eur":null,
 "registral":"S 8 , H A 12345, I/A 26","source_url":"https://www.boe.es/diario_borme/xml.php?id=…"}
```

### Input

| Field | Default | Notes |
|---|---|---|
| `provinces` | all | as published in BORME |
| `actTypes` | nombramiento, cese, disolucion | add `ampliacion_capital`, `extincion`, `cambio_domicilio` |
| `keywords` | \[] | accent-insensitive match on company name |
| `days` | 1 | 1–30 editions |
| `onlyNew` | true | emits each company once between runs |
| `maxItems` | 300 | billing per delivered row |

### Use cases

- **Credit risk**: dissolutions and liquidations of your customers or suppliers.
- **Sales triggers**: a new director often means a new vendor decision.
- **Competitive watch**: who is recapitalising, who is disappearing.
- **Compliance**: keep an audit trail of corporate changes with the official link.

### Pricing

Pay per delivered company: **~$4 per 1,000**. Empty runs are free.

### Limits

Public BORME data only. Officer names are not extracted as fields (privacy by default); use `source_url`
to read the official filing. Not affiliated with the BOE.

### Use cases

- **Prospecting**: daily list of BORME corporate changes filtered by province and sector.
- **Monitoring**: schedule the Actor and diff the dataset to see only what changed.
- **Agents**: call it from n8n, Make, Claude or Cursor through the API or an MCP wrapper.

### FAQ

**Which changes are covered?**

Director appointments and removals, capital increases and reductions, address changes, dissolutions, liquidations and transformations.

**Can I monitor only my clients?**

Yes: filter by province and keywords, then schedule daily with `onlyNew` and pipe the dataset to your CRM or Slack.

**Does it include insolvency proceedings?**

Dissolutions and liquidations are included; formal concurso de acreedores appears in BORME section B and is not part of this feed yet.

**API or MCP?**

Both are possible: REST API for pipelines, MCP for agents. Same input schema.

**Price per company?**

Yes, pay per delivered company, not per run. Empty runs are free.

# Actor input Schema

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

Province names as in BORME. Empty = all Spain.

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

Which corporate acts to include.

## `minCapital` (type: `integer`):

Drop companies below this share capital when BORME publishes it.

## `cnae` (type: `array`):

CNAE prefixes: 43 construction, 62 IT, 56 food service.

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

Match against company name or act text (accent-insensitive).

## `days` (type: `integer`):

How many daily editions to scan.

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

Keep state between runs and emit each company only once.

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

Hard cap on delivered rows. Billing is per delivered row.

## Actor input object example

```json
{
  "provinces": [
    "MADRID"
  ],
  "actTypes": [
    "nombramiento",
    "cese",
    "disolucion"
  ],
  "minCapital": 0,
  "days": 1,
  "onlyNew": true,
  "maxItems": 300
}
```

# Actor output Schema

## `company_name` (type: `string`):

No description

## `province` (type: `string`):

No description

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

No description

## `act_types` (type: `string`):

No description

## `cnae` (type: `string`):

No description

## `capital_eur` (type: `string`):

No description

## `registral` (type: `string`):

No description

## `source_url` (type: `string`):

No description

## `first_seen` (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 = {
    "provinces": [
        "MADRID"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fluyeporlaweb/spain-company-changes").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"] }

# Run the Actor and wait for it to finish
run = client.actor("fluyeporlaweb/spain-company-changes").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 '{
  "provinces": [
    "MADRID"
  ]
}' |
apify call fluyeporlaweb/spain-company-changes --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fluyeporlaweb/spain-company-changes"
        }
    }
}
```

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/aDq0YLkUnrZxIu5DM/builds/4WhyCSnEWuGUJJ8yr/openapi.json
