# BORME Scraper — Spain Director & Administrator Changes (`rodimuxai/spain-decision-maker-changes`) Actor

Track director and administrator appointments in Spain’s official BORME gazette. Filter by province and role, follow the source PDF, and optionally enrich with a company website and contact email.

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

## Pricing

from $80.00 / 1,000 enriched lead (website + email)s

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

## BORME Scraper — Spain Director & Administrator Changes

Track director and administrator appointments in Spain’s official BORME gazette. Filter by province and role, follow the source PDF, and optionally enrich with a company website and contact email.

### Try a weekly appointment digest

```json
{
  "lastNDays": 7,
  "provinces": ["ZARAGOZA"],
  "topRolesOnly": true,
  "enrich": false,
  "includeOfficerNames": false,
  "maxLeads": 20
}
```

Schedule this input weekly and export company, date, role and official source to a sheet for review. Some weeks may return zero matching appointments. For capital changes, see [BORME Share Capital Increases](https://apify.com/rodimuxai/spain-growth-signal-leads).

### Example output

```json
{
  "company": "TALLERES MUÑOZ SA",
  "appointedRoles": ["Board member", "Chairman"],
  "isTopLevel": true,
  "provincia": "BARCELONA",
  "date": "20260316",
  "bormePdfUrl": "https://www.boe.es/borme/dias/2026/03/16/pdfs/BORME-A-2026-51-08.pdf",
  "website": null,
  "email": null,
  "status": "signal_only"
}
```

### What makes it different from a raw BORME dump

**1. Only real changes.** Appointments inside a company's *incorporation* are filtered out — the first administrator of a brand-new company isn't a change of decision maker.

**2. Only decision makers.** The gazette mixes in auditors, liquidators and insolvency administrators under the same heading. Auditors don't decide anything commercially; liquidators and insolvency administrators are a different signal for a different buyer. All excluded. `topRolesOnly` narrows further to sole/joint administrators, chairman, managing director and board members — dropping *apoderados*, which are the highest-volume but weakest signal.

**3. Roles in plain English.** `ADM.UNICO` → `Sole administrator`. `CONS.DELEG` → `Managing director`.

**4. Every record links to the official PDF** it came from, so any lead can be verified at the source in seconds.

### Optional enrichment — with the real number

Turn on `enrich` and the Actor also looks for the company's own website and contact email.

**Measured hit rate: 8–25%.** Be aware of why, because it's the nature of the source: appointment changes happen at companies of every size, and a great many small Spanish companies simply have no findable website. Capital increases (see our *Spain Growth Signals* Actor) skew towards larger, established companies and enrich far better.

**The enriched event requires both a matched website and an email sourced from that site.** No website, no email → you pay the cheap signal price and nothing else.

#### Identity is proven, never guessed

A web search finds the right *industry* and the wrong *company*. Real examples this Actor now rejects:

| Company | What a search returned | What it actually was |
|---|---|---|
| EN CLAU DE FORMA S.L | `claude.ai` | "clau"+"de" is literally inside "claude" |
| GLOBAL BINGO CORPORATION SA | `planetbingo.com` | A US company |
| SYMPOSIUM EVENTS S.L | `guidebook.com/glossary/what-is-symposium` | A glossary entry |
| ESPLAI MUSICAL SL | a local news site | An article mentioning them |

A website is only delivered when identity is **proven**, and the output tells you how (`websiteMatch`):

- `domain` — the domain carries the company's brand **and** the site operates in the Spanish market
- `content` — the full company name appears on a page where a company declares itself (home, contact, legal notice, about)
- `none` — no proof → you get the signal only, and the enriched price is not charged

### Who uses this

- **B2B sales teams**: review newly published appointments and decide which accounts merit research.
- **Competitive intelligence**: track leadership churn by sector and province.
- **CRM hygiene**: spot when the contact you have on file is no longer the one who decides.

### Input

| Field | Default | What it does |
|---|---|---|
| `lastNDays` | 7 | How far back to read the gazette |
| `dateFrom` / `dateTo` | — | Explicit range, overrides `lastNDays` |
| `provinces` | all | Filter by province (MADRID, BARCELONA…) |
| `topRolesOnly` | `false` | Keep only top management, drop authorised signatories |
| `enrich` | `true` | Look for website + publicly listed contact email |
| `includeOfficerNames` | `false` | See §Legal |
| `maxLeads` | 200 | Cap per run |

### Pricing

| Event | When you're charged |
|---|---|
| Decision maker signal | Company + role + province + official source delivered |
| Enriched lead | Only when a **proven** website and publicly listed contact email are also delivered |

### Legal

- **Source**: BORME is Spain's official public gazette; its whole purpose is public disclosure (*publicidad registral*). Reuse via the BOE open-data API is permitted under Spanish public-sector information reuse law (Ley 37/2007).
- **Personal data**: the appointed person's **name is off by default**. It is personal data under GDPR even though the gazette is public. `includeOfficerNames` exists, but enable it only if you have a lawful basis for processing it. Company name and role are not personal data.
- Websites' `robots.txt` is respected.
- **Your responsibility**: Spanish LSSI (art. 21) restricts unsolicited bulk commercial email. Use these leads for qualified one-to-one B2B outreach, not mass mailing.

# Actor input Schema

## `lastNDays` (type: `integer`):

How many days back to read from the BORME gazette (days without a gazette are skipped). Alternative: set "From" and "To".

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

Start of the date range. If set together with "To", it overrides "Last N days".

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

End of the date range.

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

Filter by province (e.g. MADRID, BARCELONA). Empty = all of Spain.

## `topRolesOnly` (type: `boolean`):

Keep only the strongest signals: sole/joint administrators, chairman, managing director and board members. Excludes authorised signatories (apoderados), which are the highest-volume but weakest signal.

## `enrich` (type: `boolean`):

Find each company's own website and extract its contact email. The website is only delivered when its identity is proven (see websiteMatch in the output). Disable for raw signals only — faster and cheaper.

## `includeOfficerNames` (type: `boolean`):

The name of the appointed officer is personal data under GDPR, even though the gazette is public. Off by default: you only get the company and the role. Enable it deliberately and only if you have a lawful basis for processing it.

## `maxLeads` (type: `integer`):

Cap of signals to process in this run.

## `requireMx` (type: `boolean`):

Discard emails whose domain cannot receive mail.

## Actor input object example

```json
{
  "lastNDays": 5,
  "dateFrom": "",
  "dateTo": "",
  "provinces": [],
  "topRolesOnly": false,
  "enrich": true,
  "includeOfficerNames": false,
  "maxLeads": 5,
  "requireMx": true
}
```

# Actor output Schema

## `leads` (type: `string`):

One record per appointment, with company, appointedRoles, isTopLevel, provincia, date, bormePdfUrl, website, email and status (enriched / website_only / signal_only).

# 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 = {
    "lastNDays": 5,
    "maxLeads": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("rodimuxai/spain-decision-maker-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 = {
    "lastNDays": 5,
    "maxLeads": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("rodimuxai/spain-decision-maker-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 '{
  "lastNDays": 5,
  "maxLeads": 5
}' |
apify call rodimuxai/spain-decision-maker-changes --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rodimuxai/spain-decision-maker-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/cF4N5UUtqDILaVKod/builds/B3JoKw12ufRRhy5DF/openapi.json
