# Spain Public Sector Pack — BOE Subastas, BORME & PLACSP (`icarodata/spain-public-sector-pack`) Actor

Unified Spanish official open-data feed combining BOE judicial & AEAT auctions, BORME new companies & registry acts, and PLACSP public tenders in one run. Filter by province, keywords and only-new alerts. $1 per 1,000 unified records (+ child Actor events).

- **URL**: https://apify.com/icarodata/spain-public-sector-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 unified public-sector 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 Public Sector Pack — BOE Subastas, BORME & PLACSP

**Spain Public Sector Pack** combines our three flagship official Spanish open-data Actors into **one scheduled run and one unified dataset**:

1. **[BOE Subastas](https://apify.com/icarodata/boe-subastas)** — judicial, notarial, AEAT and Seguridad Social auctions (`subastas.boe.es`), with optional Catastro property enrichment.
2. **[BORME Scraper](https://apify.com/icarodata/borme-feed)** — daily new Spanish companies, incorporations, dissolutions, insolvencies and capital changes (`boe.es`).
3. **[Licitaciones España (PLACSP)](https://apify.com/icarodata/placsp-licitaciones)** — Spanish public tenders and contract awards (`contrataciondelestado.es`).

Filter once by **province** (INE 2-digit codes) and **keywords**, schedule it daily with **Only new since last run**, and send clean normalized JSON/CSV rows straight to Google Sheets, Slack, Make, n8n or your CRM.

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

### 💶 Pricing at a glance

- **Pack orchestration fee:** **$1.00 / 1,000 unified records** (`$0.001` per `record` event) + `$0.00005` Actor start at 256 MB.
- **Underlying child Actors:** this pack invokes the enabled `icarodata` Actors on your Apify account, and each child Actor bills its own Pay-Per-Event pricing:
  - `icarodata/boe-subastas`: `$0.0025` per auction (`$2.50 / 1,000`) + `$0.00005` start
  - `icarodata/borme-feed`: `$0.0015` per company act (`$1.50 / 1,000`) + `$0.00005` start
  - `icarodata/placsp-licitaciones`: `$0.0030` per tender (`$3.00 / 1,000`) + `$0.00005` start
  - Optional `boeEnrichWithCatastro`: calls `icarodata/spain-property-enricher` (`$0.0040` per property)
- **Worked arithmetic example (10 records from each of the 3 sources = 30 unified records):**
  - Pack fee: `30 × $0.001 + $0.00005 = $0.03005`
  - Child Actors: `10 × $0.0025 + 10 × $0.0015 + 10 × $0.0030 + 3 × $0.00005 = $0.07015`
  - Total across pack + children ≈ **$0.1002** for 30 enriched official records.
- Tip: enable `onlyNewSinceLastRun` on scheduled runs so child Actors skip already-seen items before billing.

### Who uses it?

| Use case | Who |
| --- | --- |
| **Daily Spanish market & legal monitoring** in one feed | Law firms, legaltech, consultancies, data teams |
| **B2B lead generation** across new companies + public contracts | B2B sales, SaaS, agencies, corporate banking |
| **Distressed assets & real-estate sourcing** | Property funds, servicers, investors |
| **No-code pipelines** (one webhook/Google Sheet instead of three) | Ops, automation engineers (Make / n8n / Zapier) |

### Input example

```json
{
  "includeBoe": true,
  "includeBorme": true,
  "includePlacsp": true,
  "provinces": ["28"],
  "keywords": [],
  "maxItemsPerSource": 5,
  "onlyNewSinceLastRun": true,
  "boeAssetType": "property",
  "boeStatus": "open"
}
```

### Output example

```json
{
  "recordId": "boe:SUB-AT-2026-26R2886001497",
  "packSource": "boe_subastas",
  "recordType": "auction",
  "title": "100% PLENO DOMINIO. URBANA: CUOTA INDIVISA ... PLAZA DE GARAJE NÚMERO NUEVE",
  "organization": "U.R. SUBASTAS MADRID (AEAT)",
  "province": "Madrid",
  "publishedDate": "2026-11-17",
  "status": "open",
  "valueEur": 11766.67,
  "url": "https://subastas.boe.es/detalleSubasta.php?idSub=SUB-AT-2026-26R2886001497",
  "summary": "...",
  "scrapedAt": "2026-12-04T09:03:38+00:00",
  "details": { "auctionId": "SUB-AT-2026-26R2886001497", "...": "full payload of the source Actor" }
}
```

Real record from a test run. `packSource` is `boe_subastas`, `borme_feed` or `placsp_licitaciones`, and `details` holds the full source payload.

### Output format

Every row has unified top-level fields (`recordId`, `packSource`, `recordType`, `title`, `organization`, `province`, `publishedDate`, `status`, `valueEur`, `url`, `summary`, `scrapedAt`) plus `details` containing the complete source-specific payload from BOE, BORME or PLACSP.

### Personal data & official licences

- **Privacy-first:** inherits the GDPR redactions of all three underlying Actors (no debtor names, no natural-person officer names, no personal tax IDs).
- **Official reuse attributions:** Agencia Estatal Boletín Oficial del Estado (BOE/BORME) and Plataforma de Contratación del Sector Público (Ministerio de Hacienda).

### FAQ

**Why use the pack instead of the three Actors?** One input, one schedule and one dataset with common fields. The data itself costs the same, because the child Actors keep their own prices; the pack adds a small orchestration fee of $1 per 1,000 records.

**Can I run only one source?** Yes. Set `includeBoe`, `includeBorme` or `includePlacsp` to `false`.

**Will I be charged twice for repeated records?** No. With `onlyNewSinceLastRun` enabled, already delivered records are skipped before they are billed, in the pack and in the child Actors.

**What if one source is down?** The pack keeps going with the others and reports the failed source in the run status message.

**Is it legal to use this data?** The data are official public sources (BOE, BORME, PLACSP) published for reuse with attribution. Personal data are redacted. Check your own obligations (GDPR, sector rules) before using it.

### Resumen en español

**Spain Public Sector Pack** reúne en una sola ejecución los tres extractores oficiales españoles de **icarodata**: **Subastas BOE**, **BORME (nuevas empresas y actos)** y **Licitaciones Públicas (PLACSP)**. Filtra por provincia y palabras clave una única vez, activa **Only new since last run** para alertas diarias sin duplicados y exporta el feed unificado a JSON, CSV, Excel o Google Sheets.

### 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

- [BOE Subastas Scraper](https://apify.com/icarodata/boe-subastas)
- [BORME Scraper](https://apify.com/icarodata/borme-feed)
- [Licitaciones España (PLACSP)](https://apify.com/icarodata/placsp-licitaciones)
- [Spain Property Enricher (Catastro)](https://apify.com/icarodata/spain-property-enricher)
- [Spain Construction Leads](https://apify.com/icarodata/spain-construction-leads)

Guía en español con ejemplos: https://icarodata.com/es/casos-de-uso/paquete-datos-sector-publico-espana/ — palabras clave: subastas BOE, nuevas empresas BORME, licitaciones PLACSP, datos oficiales de España.

# Actor input Schema

## `includeBoe` (type: `boolean`):

Fetch Spanish judicial, AEAT, Seguridad Social and notarial auctions from icarodata/boe-subastas.

## `includeBorme` (type: `boolean`):

Fetch new Spanish companies and official corporate registry acts from icarodata/borme-feed.

## `includePlacsp` (type: `boolean`):

Fetch Spanish public tenders and awards from icarodata/placsp-licitaciones.

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

Optional INE 2-digit province codes applied across BOE, BORME and PLACSP. Leave empty to cover all of Spain.

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

Optional case-insensitive keywords applied across PLACSP, BORME and BOE records.

## `maxItemsPerSource` (type: `integer`):

Maximum records requested from each enabled child Actor (between 1 and 500). Keep low (e.g. 2-10) for test runs.

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

Passed to each child Actor and tracked in the pack's named key-value store ('spain-public-sector-pack-state') so scheduled runs skip already-delivered items and avoid duplicate child charges.

## `boeAssetType` (type: `string`):

Asset type filter for BOE Subastas.

## `boeStatus` (type: `string`):

Status filter for BOE Subastas.

## `boeEnrichWithCatastro` (type: `boolean`):

Enables enrichWithCatastro on BOE Subastas (calls icarodata/spain-property-enricher, +$0.004/property).

## `bormeActTypes` (type: `array`):

Corporate act types to include from BORME.

## `placspContractTypes` (type: `array`):

Optional PLACSP contract types (supplies, services, works...). Empty = all.

## `placspStatus` (type: `array`):

Optional PLACSP tender statuses (open, announced, pending_award, awarded, resolved). Empty = all.

## `runInParallel` (type: `boolean`):

Sequential by default to stay within Apify Free-tier memory/concurrency limits. Enable on paid plans for faster completion.

## Actor input object example

```json
{
  "includeBoe": true,
  "includeBorme": true,
  "includePlacsp": true,
  "provinces": [
    "28"
  ],
  "keywords": [],
  "maxItemsPerSource": 2,
  "onlyNewSinceLastRun": false,
  "boeAssetType": "property",
  "boeStatus": "open",
  "boeEnrichWithCatastro": false,
  "bormeActTypes": [
    "constitution",
    "dissolution",
    "bankruptcy",
    "capital_change"
  ],
  "placspContractTypes": [],
  "placspStatus": [],
  "runInParallel": 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 = {
    "provinces": [
        "28"
    ],
    "maxItemsPerSource": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("icarodata/spain-public-sector-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 = {
    "provinces": ["28"],
    "maxItemsPerSource": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("icarodata/spain-public-sector-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 '{
  "provinces": [
    "28"
  ],
  "maxItemsPerSource": 2
}' |
apify call icarodata/spain-public-sector-pack --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,icarodata/spain-public-sector-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/oAlQefPSUCvdrupdj/builds/zH1TdmktJRTh0w9Hg/openapi.json
