# Spain Compliance & KYB Pack — BORME + EU/UN/UK Sanctions (`icarodata/spain-compliance-kyb-pack`) Actor

Automated Spanish KYB & compliance pack combining BORME company registry acts, EU/UN/UK financial sanctions screening and optional OEPM trademark conflict checks. Screen your own company list or monitor daily BORME filings. $1 per 1,000 compliance records (+ child events).

- **URL**: https://apify.com/icarodata/spain-compliance-kyb-pack.md
- **Developed by:** [Icaro Data](https://apify.com/icarodata) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 compliance & kyb records

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

## Spain Compliance & KYB Pack — BORME + EU/UN/UK Sanctions

**Spain Compliance & KYB Pack** automates Spanish corporate due diligence and sanctions compliance in a single Actor:

- **Mode 1 (`borme_sanctions`) — Automated daily BORME + Sanctions monitor:** pulls new Spanish companies, dissolutions, insolvencies and capital changes from **[BORME Scraper](https://apify.com/icarodata/borme-feed)** and automatically screens every unique company name (plus CIF if present) against EU, UN and UK financial sanctions via **[EU Sanctions Screening](https://apify.com/icarodata/eu-sanctions-screening)**.
- **Mode 2 (`screen_names`) — On-demand counterparty screening:** screen your own list of Spanish or international suppliers/clients against EU, UN and UK sanctions lists, with optional **[Spain Trademark Watch](https://apify.com/icarodata/spain-trademark-watch)** conflict checks.
- **GDPR / privacy-first:** natural-person officer names in BORME acts are already redacted by BORME Scraper and are never sent to sanctions screening.
- **Disclaimer:** Screening aid only, not legal advice.

📘 **Step-by-step guide with example setup:** [English](https://icarodata.com/use-cases/spain-kyb-sanctions-pack/) · [Guía en español](https://icarodata.com/es/casos-de-uso/paquete-kyb-sanciones-espana/)

### 💶 Pricing at a glance

- **Pack orchestration fee:** **$1.00 / 1,000 compliance records** (`$0.001` per `compliance-record` event) + `$0.00005` Actor start at 256 MB.
- **Underlying child Actors** bill their own Pay-Per-Event pricing on your Apify account:
  - `icarodata/borme-feed` (in `borme_sanctions` mode): `$0.0015` per BORME act
  - `icarodata/eu-sanctions-screening`: `$0.0050` per unique company name screened
  - Optional `icarodata/spain-trademark-watch`: `$0.05` per trademark conflict detected
- **Worked arithmetic example (10 BORME companies screened):**
  - Pack fee: `10 × $0.001 + $0.00005 = $0.01005`
  - Child Actors: `10 × $0.0015 (BORME) + 10 × $0.005 (Sanctions) + 2 × $0.00005 = $0.0651`
  - Total ≈ **$0.075** for 10 KYB-screened corporate filings.

### Input example (`borme_sanctions`)

```json
{
  "mode": "borme_sanctions",
  "provinces": ["28"],
  "actTypes": ["constitution", "bankruptcy"],
  "maxItems": 10,
  "onlyNewSinceLastRun": true,
  "sanctionsLists": ["EU", "UN", "UK"],
  "threshold": 85
}
```

### Input example (`screen_names`)

```json
{
  "mode": "screen_names",
  "companyNames": ["Bank Rossiya", "Acme Trading SL"],
  "sanctionsLists": ["EU", "UN", "UK"],
  "threshold": 85,
  "maxItems": 100,
  "onlyMatches": false
}
```

Set `onlyMatches` to `true` to receive only the names that match a list. A match is a candidate for human review, not a verdict.

### Who uses it?

| Use case | Who |
| --- | --- |
| **Periodic screening of clients and suppliers** | Compliance teams, law firms, gestorías, credit insurers |
| **Daily monitoring of new Spanish companies** against sanctions lists | Fintechs, banks, onboarding and KYB teams |
| **Add-on to a due-diligence report** | Consultancies, auditors, advisers |

### FAQ

**Is this legal advice or a certified check?** No. It is a screening aid. A person must review every match against the official source before any decision.

**Which lists are covered?** The consolidated EU financial sanctions list and, optionally, the UN and UK lists, through the EU Sanctions Screening Actor.

**Does it send personal names to the screening?** No. Natural-person officer names from the BORME are already redacted and are never screened. The inputs are company names and, when present, the tax ID.

**How is the cost made up?** $1 per 1,000 compliance records for the pack, plus the child Actors on your account: BORME $1.50 per 1,000 acts and EU Sanctions Screening $5 per 1,000 names.

### Resumen en español

**Spain Compliance & KYB Pack** combina el feed oficial del **BORME** con el cribado automático frente a las listas de **sanciones financieras de la UE, ONU y Reino Unido** (y vigilancia opcional de marcas en la OEPM). Úsalo en modo diario con **Only new** para vigilar nuevas sociedades o en modo **screen_names** para comprobar tu lista de clientes y proveedores. Ayuda al cribado, no constituye asesoramiento legal. Guía en español: https://icarodata.com/es/casos-de-uso/paquete-kyb-sanciones-espana/ . Palabras clave: KYB España, sanciones UE, PBC, diligencia debida, BORME.

### Support, issues & contact

- 🐞 **Bug, missing field or a source that changed?** Open an issue in the **Issues** tab of this Actor in Apify Console. We aim to reply within 2 business days (Spain, CET).
- ✉️ **Questions, custom volumes, invoices or a private feature request:** <contacto@icarodata.com>
- 🌐 Guides, use cases and more Actors: [icarodata.com](https://icarodata.com) · [all Icaro Data Actors](https://apify.com/icarodata)
- 🏢 Published by **Icaro Nutrition SCP** (CIF J67511840), Calle Guardia 14, planta 3, puerta 2, 08001 Barcelona, Spain.
- 🇪🇸 **Soporte en español:** escríbenos a <contacto@icarodata.com> o abre una incidencia en la pestaña *Issues*.

### Related Actors by Icaro Data

- [BORME Scraper](https://apify.com/icarodata/borme-feed)
- [EU Sanctions Screening](https://apify.com/icarodata/eu-sanctions-screening)
- [Spain Trademark Watch](https://apify.com/icarodata/spain-trademark-watch)
- [Spain Public Sector Pack](https://apify.com/icarodata/spain-public-sector-pack)

# Actor input Schema

## `mode` (type: `string`):

<b>borme_sanctions</b>: pull Spanish corporate acts from BORME and automatically screen every unique company name (plus CIF if present) against EU/UN/UK sanctions. <b>screen_names</b>: screen your own company/entity list against EU/UN/UK sanctions and optionally OEPM trademark filings.

## `companyNames` (type: `array`):

Company or entity names to check in 'screen_names' mode.

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

Optional INE 2-digit province codes for BORME acts. Leave empty for all of Spain.

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

Corporate acts to pull from BORME.

## `keyword` (type: `string`):

Optional case-insensitive keyword on BORME company name or redacted act text.

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

Maximum BORME acts to retrieve and screen (1 to 1,000). Keep low (e.g. 2-10) for test runs.

## `onlyNewSinceLastRun` (type: `boolean`):

Passed to borme-feed and tracked in 'spain-compliance-kyb-pack-state' so scheduled runs only screen new companies.

## `sanctionsLists` (type: `array`):

Sanctions lists to screen against via icarodata/eu-sanctions-screening.

## `threshold` (type: `integer`):

Minimum fuzzy score to report a potential sanctions match.

## `onlyMatches` (type: `boolean`):

If true, clean ('clear') companies are omitted from the output dataset (child screening events are still billed).

## `includeTrademarkWatch` (type: `boolean`):

Off by default. When on, checks the screened company names against recent OEPM BOPI trademark filings via icarodata/spain-trademark-watch ($0.05 per conflict found).

## Actor input object example

```json
{
  "mode": "borme_sanctions",
  "companyNames": [
    "Acme Trading SL",
    "Sberbank of Russia"
  ],
  "provinces": [
    "28"
  ],
  "actTypes": [
    "constitution",
    "dissolution",
    "bankruptcy",
    "capital_change"
  ],
  "keyword": "",
  "maxItems": 2,
  "onlyNewSinceLastRun": false,
  "sanctionsLists": [
    "EU",
    "UN",
    "UK"
  ],
  "threshold": 85,
  "onlyMatches": false,
  "includeTrademarkWatch": false
}
```

# Actor output Schema

## `results` (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 = {
    "companyNames": [
        "Acme Trading SL",
        "Sberbank of Russia"
    ],
    "provinces": [
        "28"
    ],
    "maxItems": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("icarodata/spain-compliance-kyb-pack").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 = {
    "companyNames": [
        "Acme Trading SL",
        "Sberbank of Russia",
    ],
    "provinces": ["28"],
    "maxItems": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("icarodata/spain-compliance-kyb-pack").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 '{
  "companyNames": [
    "Acme Trading SL",
    "Sberbank of Russia"
  ],
  "provinces": [
    "28"
  ],
  "maxItems": 2
}' |
apify call icarodata/spain-compliance-kyb-pack --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,icarodata/spain-compliance-kyb-pack"
        }
    }
}
```

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/5Oo8xBDSLv3Z6pElW/builds/cDGnBdStJu22dcPzK/openapi.json
