# Spain Regional Public Tenders – Licitaciones autonómicas (`carprr/spain-regional-public-tenders`) Actor

Spanish public tenders / licitaciones España: regional platforms via official PLACSP open data. Filter by CPV, region, amount, keywords. Only-new alerts.

- **URL**: https://apify.com/carprr/spain-regional-public-tenders.md
- **Developed by:** [Spain Open Data Tools](https://apify.com/carprr) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

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

### What does Spain Regional Public Tenders do?

This Actor returns **Spanish public tenders (licitaciones públicas)** published by **regional procurement platforms** — for example Catalonia, the Basque Country, Andalusia and Navarre — as clean JSON, CSV or Excel. It reads the official open-data feed in which Spain's [Plataforma de Contratación del Sector Público (PLACSP)](https://contrataciondelsectorpublico.gob.es) aggregates the tenders of the platforms that are not hosted on PLACSP itself. It does not scrape HTML pages.

You can filter by **CPV code, region (NUTS), amount, status and keywords**, and switch on **alert mode** to receive only tenders that were not delivered in earlier runs.

**What it does not do:** it does not cover tenders hosted directly on PLACSP (central government and most local bodies), it does not include minor contracts (contratos menores), and it does not return the awardee.

*Versión en español más abajo.*

### Why use it?

- **Tender consultancies and bid teams**: a daily list of new opportunities in the regions and CPV codes you follow, without visiting each regional portal.
- **AI agents**: a tool an agent can call through the Apify MCP server to answer "which tenders for X are open in region Y?".
- **Analysts**: typed fields (amounts as numbers, ISO 8601 dates, CPV as a list) ready for a spreadsheet or a database.
- Runs on the Apify platform: scheduling, API access, webhooks and integrations with Make, n8n, Zapier, Slack or email.

### What data does it return?

One row per tender.

| Field | Type | Description |
|---|---|---|
| `id` | string | Stable identifier of the tender in the official feed |
| `expediente` | string | File number assigned by the contracting authority |
| `objeto` | string | Subject of the contract, in the language it was published in |
| `organo` | string | Contracting authority |
| `plataformaOrigen` | string | Regional platform that published the tender |
| `tipoContrato` | string | Contract type: Suministros, Servicios, Obras… |
| `cpv` | array of strings | CPV codes |
| `nuts` | string | NUTS code of the place of performance |
| `importeSinIva` | number | Base budget excluding taxes, in euros |
| `fechaLimite` | string | Bid submission deadline, ISO 8601 with Spanish mainland offset |
| `estado` | string | `PRE` prior notice, `PUB` open for bids, `EV` pending award, `ADJ` awarded, `RES` resolved, `ANUL` cancelled |
| `url` | string | Link to the tender on the regional platform |
| `fuente` | string | Source attribution |
| `fechaActualizacion` | string | Last update of the tender at the source, ISO 8601 |

Any field except `id`, `objeto`, `organo`, `estado`, `url`, `fuente` and `fechaActualizacion` can be `null` when the source does not provide it. `fechaLimite` is usually `null` for tenders that are no longer open.

### How to get Spanish regional tenders

#### In Apify Console

1. Open the Actor and go to the **Input** tab.
2. Add keywords, pick regions, CPV prefixes, a status (for example *PUB · En plazo*) and an amount range. Every filter is optional.
3. Click **Start**. With the prefilled input you get up to 20 tenders.
4. Download the results from the **Output** tab as JSON, CSV, Excel or HTML.
5. For daily alerts, switch on **Only new tenders (alert mode)** and create a schedule.

#### Through the API

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("carprr/spain-regional-public-tenders").call(run_input={
    "palabrasClave": ["ascensor", "ascensores"],
    "estado": ["PUB"],
    "maxResultados": 20,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["objeto"], item["importeSinIva"], item["url"])
```

#### From an AI agent (MCP)

Add the Actor as a tool in any MCP client through the Apify MCP server:

```json
{
    "mcpServers": {
        "apify": {
            "url": "https://mcp.apify.com/?tools=carprr/spain-regional-public-tenders"
        }
    }
}
```

Then ask, for example: *"Find open tenders for lift maintenance in the Basque Country above 50,000 euros."* The agent should send:

```json
{
    "palabrasClave": ["ascensor", "ascensores", "igogailu"],
    "comunidades": ["ES21"],
    "estado": ["PUB"],
    "importeMin": 50000,
    "maxResultados": 20
}
```

### How much does it cost?

**Free for now.** The Actor itself costs nothing; you only pay Apify's platform usage under your Apify plan.

- Runs are light: no browser, no proxy, 256 MB of memory. In our test runs, platform usage was between $0.0002 and $0.006 per run (a run that delivered 1,000 tenders: about $0.006).
- `maxResultados` and `maxPaginas` cap how much work a run does.
- Paid pricing may be introduced later; we will announce it on this page before it applies.

### Input

See the **Input** tab for the full list of options. Field names are in Spanish.

| Field | Type | What it does |
|---|---|---|
| `palabrasClave` | array | At least one word or phrase appears in the subject (case- and accent-insensitive) |
| `comunidades` | array | NUTS codes of the region of performance (`ES51`, `ES21`, `ES30`…) |
| `cpv` | array | CPV prefixes of 2 to 8 digits (`72`, `45233`…) |
| `estado` | array | `PRE`, `PUB`, `EV`, `ADJ`, `RES`, `ANUL` |
| `importeMin`, `importeMax` | number | Base budget excluding VAT, in euros |
| `fechaDesde` | string | Only tenders updated on or after this date (`YYYY-MM-DD`) |
| `soloNovedades` | boolean | Alert mode: only tenders not delivered before with the same filters |
| `maxResultados` | integer | Maximum tenders delivered (default 20) |
| `maxPaginas` | integer | Maximum feed pages scanned (default 10, up to 500 tenders each) |

### Output

You can download the dataset in various formats such as JSON, HTML, CSV or Excel. Example items:

```json
[
    {
        "id": "https://contrataciondelestado.es/sindicacion/PlataformasAgregadasSinMenores/20881305",
        "expediente": "P10036221",
        "objeto": "Mantenimiento ascensores periodo 2027-2029",
        "organo": "Eusko Trenbideak Ferrocarriles Vascos, S.A.-Órgano de Contratación de EuskoTrenbideak FFCC Vascos, S.A.U.",
        "plataformaOrigen": "Gobierno Vasco",
        "tipoContrato": "Servicios",
        "cpv": ["50750000"],
        "nuts": "ES213",
        "importeSinIva": 93060.0,
        "fechaLimite": "2026-11-27T12:00:00+01:00",
        "estado": "PUB",
        "url": "https://www.contratacion.euskadi.eus/webkpe00-kpeperfi/es/contenidos/anuncio_contratacion/expjaso762001/es_doc/index.html",
        "fuente": "Origen de los datos: Ministerio de Hacienda. Plataforma de Contratación del Sector Público.",
        "fechaActualizacion": "2026-11-10T17:11:00.479000+01:00"
    },
    {
        "id": "https://contrataciondelestado.es/sindicacion/PlataformasAgregadasSinMenores/20881364",
        "expediente": "154/2026/0045",
        "objeto": "Redacció del projecte i direcció obres d'un ascensor a l'escola Turó de Guiera.",
        "organo": "Ajuntament de Cerdanyola del Vallès",
        "plataformaOrigen": "Generalitat de Catalunya",
        "tipoContrato": "Servicios",
        "cpv": ["71242000"],
        "nuts": "ES511",
        "importeSinIva": 8680.0,
        "fechaLimite": null,
        "estado": "ADJ",
        "url": "https://contractaciopublica.cat/ca/detall-publicacio/78ca24fd-3d15-47ef-a17c-3133f0aa5455/300934618",
        "fuente": "Origen de los datos: Ministerio de Hacienda. Plataforma de Contratación del Sector Público.",
        "fechaActualizacion": "2026-11-10T14:08:19.087000+01:00"
    }
]
```

### Known limits

- **Coverage**: only the aggregated regional platforms feed. Tenders hosted directly on PLACSP and minor contracts are not included, so this is not a complete list of Spanish tenders.
- **Recency, not history**: the Actor scans the feed from the newest page backwards, up to `maxPaginas`. It is not designed for bulk historical downloads.
- **Language**: `objeto` and `organo` come in the language of publication (Spanish, Catalan, Basque, Galician). Keywords are matched literally, with no translation.
- **Alert mode** remembers delivered tenders per exact combination of filters. Changing any filter starts a new memory. Status changes of a tender already delivered are not sent again.
- **Missing values**: some tenders have no NUTS code, amount or deadline at the source; they are excluded when you filter by that field.
- **Not an official record**: the source can correct or withdraw data after extraction. For any decision with legal effect, check the tender at its `url`.

### Personal data

The Actor does not extract the awardee, who can be a natural person. It also replaces with `[omitido]` any Spanish ID number (DNI, NIE) with a valid check letter, and any email address, found in the free-text subject or file number.

### Source, licence and disclaimer

Data origin: **Ministerio de Hacienda, Plataforma de Contratación del Sector Público**, open-data set "licitaciones publicadas mediante mecanismos de agregación". The data is reused under the conditions the Ministry publishes for its open-data sets, and every row carries the attribution in the `fuente` field; keep it when you republish the data.

This Actor is an independent tool. It is not sponsored, endorsed or verified by the Ministerio de Hacienda or by any regional government. It makes at most one request per second to the source and identifies itself with its own User-Agent.

### Support

Found a problem or need another filter or field? Open a ticket in the **Issues** tab.

***

### Licitaciones autonómicas de España (español)

Este Actor devuelve **licitaciones públicas de España** publicadas por las **plataformas de contratación autonómicas** (por ejemplo Cataluña, País Vasco, Andalucía y Navarra) en JSON, CSV o Excel. Lee el feed oficial de datos abiertos en el que la [Plataforma de Contratación del Sector Público (PLACSP)](https://contrataciondelsectorpublico.gob.es) agrega las licitaciones de las plataformas que no están alojadas en ella. No hace scraping de páginas HTML.

Permite filtrar por **CPV, comunidad autónoma (NUTS), importe, estado y palabras clave**, y tiene un **modo alerta** para recibir solo las licitaciones que no se entregaron en ejecuciones anteriores.

**Qué no hace:** no cubre las licitaciones alojadas directamente en PLACSP (Administración General del Estado y la mayoría de entidades locales), no incluye contratos menores y no devuelve el adjudicatario.

#### Para quién

- **Consultoras de licitaciones y departamentos de ofertas**: lista diaria de oportunidades nuevas en vuestras comunidades y CPV, sin entrar en cada portal autonómico.
- **Agentes de IA**: herramienta que un agente puede llamar a través del servidor MCP de Apify.
- **Analistas**: importes como número, fechas en ISO 8601 y CPV como lista.

#### Cómo se usa

1. Abre el Actor y ve a la pestaña **Input**.
2. Añade palabras clave, comunidades, prefijos CPV, estado (por ejemplo *PUB · En plazo*) e importes. Todos los filtros son opcionales.
3. Pulsa **Start**. Con el input de ejemplo recibes hasta 20 licitaciones.
4. Descarga los resultados en la pestaña **Output** en JSON, CSV, Excel o HTML.
5. Para alertas diarias, activa **Solo novedades (modo alerta)** y crea una programación (schedule).

Ejemplo de input:

```json
{
    "palabrasClave": ["ascensor", "ascensores"],
    "comunidades": ["ES51", "ES21"],
    "estado": ["PUB"],
    "importeMin": 20000,
    "soloNovedades": true,
    "maxResultados": 50
}
```

Los ejemplos de API y de agente vía MCP están en la sección en inglés, más arriba.

#### Campos de salida

| Campo | Tipo | Descripción |
|---|---|---|
| `id` | texto | Identificador estable de la licitación en el feed oficial |
| `expediente` | texto | Número de expediente del órgano de contratación |
| `objeto` | texto | Objeto del contrato, en el idioma en que se publicó |
| `organo` | texto | Órgano de contratación |
| `plataformaOrigen` | texto | Plataforma autonómica que publicó la licitación |
| `tipoContrato` | texto | Suministros, Servicios, Obras… |
| `cpv` | lista de textos | Códigos CPV |
| `nuts` | texto | Código NUTS del lugar de ejecución |
| `importeSinIva` | número | Presupuesto base sin impuestos, en euros |
| `fechaLimite` | texto | Fin del plazo de presentación de ofertas, ISO 8601 con hora peninsular |
| `estado` | texto | `PRE` anuncio previo, `PUB` en plazo, `EV` pendiente de adjudicación, `ADJ` adjudicada, `RES` resuelta, `ANUL` anulada |
| `url` | texto | Enlace a la licitación en la plataforma autonómica |
| `fuente` | texto | Cita de la fuente |
| `fechaActualizacion` | texto | Última actualización en la fuente, ISO 8601 |

#### Cuánto cuesta

**Gratis por ahora.** El Actor no cuesta nada; solo pagas el uso de plataforma de Apify según tu plan. Las ejecuciones son ligeras (sin navegador ni proxy, 256 MB): en nuestras pruebas el uso de plataforma fue de entre 0,0002 y 0,006 USD por ejecución. Más adelante podría pasar a ser de pago; lo anunciaremos en esta página antes de que se aplique.

#### Límites conocidos

- **Cobertura**: solo el feed de plataformas autonómicas agregadas. No es un listado completo de las licitaciones de España.
- **Reciente, no histórico**: revisa el feed de la página más nueva hacia atrás, hasta `maxPaginas`.
- **Idioma**: `objeto` y `organo` llegan en el idioma de publicación (castellano, catalán, euskera, gallego). Las palabras clave se comparan tal cual, sin traducir.
- **Modo alerta**: la memoria es por combinación exacta de filtros; si cambias un filtro, empieza de cero. No reenvía los cambios de estado de una licitación ya entregada.
- **Valores vacíos**: algunas licitaciones no traen NUTS, importe o fecha límite; se excluyen al filtrar por ese campo.
- **No es un registro oficial**: la fuente puede corregir o retirar datos. Para decisiones con efectos jurídicos, consulta la licitación en su `url`.

#### Datos personales

El Actor no extrae el adjudicatario, que puede ser una persona física. Además sustituye por `[omitido]` cualquier DNI o NIE con letra de control válida, y cualquier correo electrónico, que aparezca en el objeto o en el número de expediente.

#### Fuente, licencia y aviso

Origen de los datos: **Ministerio de Hacienda, Plataforma de Contratación del Sector Público**, conjunto de datos abiertos «licitaciones publicadas mediante mecanismos de agregación». Los datos se reutilizan en las condiciones que el Ministerio publica para sus conjuntos de datos abiertos; cada fila lleva la cita en el campo `fuente`, que debes conservar si redistribuyes los datos.

Este Actor es una herramienta independiente: no está patrocinado, avalado ni verificado por el Ministerio de Hacienda ni por ninguna comunidad autónoma. Hace como máximo una petición por segundo a la fuente y se identifica con un User-Agent propio.

#### Soporte

¿Un fallo o un filtro que falta? Abre un ticket en la pestaña **Issues**.

# Actor input Schema

## `palabrasClave` (type: `array`):

Returns tenders whose subject contains at least one of these words or phrases. Case- and accent-insensitive. Text is matched literally in the language of publication (Spanish, Catalan, Basque, Galician), so add variants if needed. · Devuelve las licitaciones cuyo objeto contiene al menos una de estas palabras o frases. No distingue mayúsculas ni tildes. Se compara con el texto en su idioma original: añade variantes en catalán, euskera o gallego si las necesitas.

## `comunidades` (type: `array`):

Region where the contract is performed, by the tender's NUTS code (ES51 = Catalonia, ES21 = Basque Country, ES30 = Madrid…). Empty = all. Tenders without a NUTS code are excluded when this filter is used. · Comunidad autónoma donde se ejecuta el contrato, según el código NUTS. Vacío = todas. Las licitaciones sin código NUTS se excluyen cuando se usa este filtro.

## `cpv` (type: `array`):

CPV code prefixes (EU Common Procurement Vocabulary), 2 to 8 digits. For example, "72" returns all IT services and "45233" road works. · Prefijos de código CPV (vocabulario común de contratos públicos), de 2 a 8 dígitos. Por ejemplo, «72» devuelve todos los servicios informáticos y «45233» las obras de carreteras.

## `estado` (type: `array`):

Statuses to return. Empty = all. To get only tenders still open for bids, choose PUB. Codes: PRE = prior notice, PUB = open for bids, EV = pending award, ADJ = awarded, RES = resolved, ANUL = cancelled. · Estados que se devuelven. Vacío = todos. Para recibir solo licitaciones a las que aún se puede presentar oferta, elige «En plazo» (PUB).

## `importeMin` (type: `number`):

Minimum base budget excluding taxes, in euros. Tenders without an amount are excluded when this filter is used. · Presupuesto base sin impuestos mínimo. Las licitaciones sin importe se excluyen cuando se usa este filtro.

## `importeMax` (type: `number`):

Maximum base budget excluding taxes, in euros. Must be greater than or equal to the minimum. Tenders without an amount are excluded when this filter is used. · Presupuesto base sin impuestos máximo; debe ser mayor o igual que el mínimo. Las licitaciones sin importe se excluyen cuando se usa este filtro.

## `fechaDesde` (type: `string`):

Returns only tenders published or updated on or after this date (YYYY-MM-DD). Empty = the most recent ones, up to the limits below. · Devuelve solo licitaciones publicadas o actualizadas desde esta fecha (AAAA-MM-DD). Vacío = las más recientes hasta alcanzar los límites.

## `soloNovedades` (type: `boolean`):

Remembers the tenders already delivered in earlier runs with exactly the same filters and returns only tenders not delivered before. Meant for scheduled runs. Later status changes of an already delivered tender are not sent again. · Recuerda las licitaciones ya entregadas en ejecuciones anteriores con exactamente los mismos filtros y devuelve solo las que no se habían entregado. Pensado para ejecuciones programadas. No reenvía los cambios de estado de una licitación ya entregada.

## `maxResultados` (type: `integer`):

Maximum number of tenders delivered (and charged) in this run. · Número máximo de licitaciones que se entregan (y se cobran) en esta ejecución.

## `maxPaginas` (type: `integer`):

Maximum number of pages of the official feed to scan, newest first. Each page holds up to 500 tenders. Raise it for very restrictive filters or an old "Updated since" date. · Páginas del feed oficial que se revisan como máximo, de la más reciente hacia atrás. Cada página contiene hasta 500 licitaciones. Súbelo si usas filtros muy restrictivos o una «fechaDesde» lejana.

## Actor input object example

```json
{
  "palabrasClave": [
    "mantenimiento"
  ],
  "estado": [
    "PUB"
  ],
  "soloNovedades": false,
  "maxResultados": 20,
  "maxPaginas": 10
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset con las licitaciones entregadas en esta ejecución

# 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 = {
    "palabrasClave": [
        "mantenimiento"
    ],
    "estado": [
        "PUB"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("carprr/spain-regional-public-tenders").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 = {
    "palabrasClave": ["mantenimiento"],
    "estado": ["PUB"],
}

# Run the Actor and wait for it to finish
run = client.actor("carprr/spain-regional-public-tenders").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 '{
  "palabrasClave": [
    "mantenimiento"
  ],
  "estado": [
    "PUB"
  ]
}' |
apify call carprr/spain-regional-public-tenders --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,carprr/spain-regional-public-tenders"
        }
    }
}
```

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/bCU7ohbjTVRvCcqv5/builds/rCKdDdjhtwiPnGXFr/openapi.json
