# Licitaciones Públicas España – Alertas y Filtros (PLACSP) (`iberdata-labs/licitaciones-publicas-espana`) Actor

Encuentra licitaciones y concursos públicos de España filtrados por palabra clave, CPV, provincia, importe y plazo. Datos oficiales de la Plataforma de Contratación del Sector Público. Ideal para alertas diarias.

- **URL**: https://apify.com/iberdata-labs/licitaciones-publicas-espana.md
- **Developed by:** [IberData Labs](https://apify.com/iberdata-labs) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 licitación devueltas

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

## Licitaciones Públicas España – Alertas y Filtros

Encuentra **licitaciones y concursos públicos de España** que encajan con tu empresa, sin revisar a mano la Plataforma de Contratación del Sector Público (PLACSP). Filtra por **palabra clave, código CPV, provincia, importe, tipo de contrato y plazo**, y recibe los resultados en JSON, Excel o CSV.

Prográmalo una vez al día y tendrás un **sistema de alertas de licitaciones** por una fracción de lo que cuestan los servicios de suscripción.

### ¿Qué hace?

- Lee los **feeds oficiales de datos abiertos** de la PLACSP: perfiles del contratante y plataformas autonómicas agregadas.
- **Deduplica** expedientes y se queda con la versión más reciente (estado, importe y plazo actualizados).
- Calcula los **días restantes** para presentar oferta.
- Devuelve solo lo que cumple tus filtros. **Solo pagas por cada licitación que devuelve**.

### Casos de uso

- **Alertas diarias** para consultoras, empresas de software, limpieza, obras, mantenimiento, formación o suministros.
- **Análisis de competencia**: filtra por estado `ADJ` (adjudicada) para ver qué se adjudica en tu sector.
- **Generación de oportunidades** para departamentos comerciales y gestorías especializadas en contratación pública.
- **Alimentar un CRM, Google Sheets o Slack** con las integraciones de Apify (Make, Zapier, webhooks).

### Ejemplo de entrada

```json
{
  "keywords": \["software", "ciberseguridad"],
  "cpvPrefixes": \["72", "48"],
  "nutsPrefixes": \["ES61"],
  "minBudget": 15000,
  "statuses": \["PUB"],
  "onlyOpenDeadline": true,
  "daysBack": 2
}
```

### Ejemplo de resultado

```json
{
  "id\_expediente": "2026/0123",
  "titulo": "Servicio de mantenimiento de la plataforma de administración electrónica",
  "organo\_contratacion": "Ayuntamiento de Málaga",
  "nif\_organo": "P2906700F",
  "tipo\_contrato": "servicios",
  "estado": "en\_plazo",
  "procedimiento": "abierto",
  "importe\_sin\_iva": 120000.0,
  "importe\_con\_iva": 145200.0,
  "cpv": \["72267000"],
  "lugar\_ejecucion": "Málaga",
  "codigo\_nuts": "ES617",
  "fecha\_limite\_presentacion": "2026-11-03",
  "dias\_restantes": 22,
  "url": "https://contrataciondelestado.es/wps/poc?uri=deeplink:detalle\_licitacion\&idEvl=...",
  "fuente": "perfiles"
}
```

### Cómo montar una alerta diaria (2 minutos)

1. Configura tus filtros y pon `daysBack` = 1 o 2.
2. Pulsa **Save** y luego **Schedule** → todos los días a las 8:00.
3. En **Integrations**, añade un envío por email, Slack o Google Sheets.

### Códigos útiles

|CPV|Sector|
|-|-|
|72|Servicios TI, consultoría, software|
|48|Paquetes de software|
|45|Obras de construcción|
|9091|Limpieza|
|80|Formación|
|79|Servicios a empresas (consultoría, marketing, jurídico)|
|50|Reparación y mantenimiento|

|NUTS|Región|
|-|-|
|ES61|Andalucía|
|ES30|Comunidad de Madrid|
|ES51|Cataluña|
|ES52|Comunitat Valenciana|
|ES21|País Vasco|
|ES11|Galicia|

### Precio

Pago por uso: 0,02 $ por cada licitación devuelta y 0,005 $ fijos por ejecución. Sin cuotas mensuales. Pon un máximo de resultados o un límite de gasto por ejecución si quieres controlar el coste.

### Fuente de los datos y licencia

Datos abiertos de la **Plataforma de Contratación del Sector Público** (Ministerio de Hacienda), reutilizables conforme a la Ley 37/2007 sobre reutilización de la información del sector público. Fuente: contrataciondelsectorpublico.gob.es. Este Actor es una herramienta independiente y **no está afiliado** a la PLACSP ni al Ministerio de Hacienda. Verifica siempre los pliegos oficiales antes de presentar una oferta.

\---

### English

**Spain public tenders (PLACSP) – filtered alerts.** Find Spanish government tenders and public procurement opportunities filtered by keyword, CPV code, region (NUTS), budget, contract type and deadline. Built on the official open data feeds of the Spanish Public Sector Procurement Platform. Deduplicated, with days left to bid. Schedule it daily for a cheap tender alert system. Pay only per tender returned. Not affiliated with the Spanish government.

# Actor input Schema

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

Se busca en el título y en el órgano de contratación. No importan tildes ni mayúsculas. Vacío = todas. Ej: software, limpieza, ciberseguridad.

## `excludeKeywords` (type: `array`):

Descarta licitaciones que contengan alguna de estas palabras.

## `cpvPrefixes` (type: `array`):

Ej: 72 (servicios TI), 48 (paquetes de software), 90911 (limpieza). Coincide por prefijo.

## `contractTypes` (type: `array`):

Filtra por tipo de contrato. Vacío = todos.

## `statuses` (type: `array`):

PUB = en plazo de presentación (por defecto). ADJ = adjudicada (útil para análisis de competencia).

## `locations` (type: `array`):

Texto libre contra el lugar de ejecución y la ciudad del órgano. Ej: Málaga, Sevilla.

## `nutsPrefixes` (type: `array`):

Ej: ES61 (Andalucía), ES617 (Málaga), ES30 (Madrid), ES51 (Cataluña).

## `minBudget` (type: `integer`):

Descarta licitaciones con importe sin IVA inferior a este valor.

## `maxBudget` (type: `integer`):

Descarta licitaciones con importe sin IVA superior a este valor.

## `onlyOpenDeadline` (type: `boolean`):

Descarta las que ya no admiten ofertas.

## `daysBack` (type: `integer`):

Publicaciones o actualizaciones de los últimos N días. Para alertas diarias programadas usa 2 o 3.

## `sources` (type: `array`):

perfiles = Perfiles del contratante de la PLACSP. agregadas = plataformas autonómicas agregadas.

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

Número máximo de licitaciones a devolver (y a cobrar) por ejecución.

## `maxPages` (type: `integer`):

Límite de seguridad.

## Actor input object example

```json
{
  "statuses": [
    "PUB"
  ],
  "onlyOpenDeadline": true,
  "daysBack": 3,
  "sources": [
    "perfiles",
    "agregadas"
  ],
  "maxItems": 20,
  "maxPages": 300
}
```

# Actor output Schema

## `licitaciones` (type: `string`):

Licitaciones que cumplen los filtros, en tabla.

# 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 = {
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("iberdata-labs/licitaciones-publicas-espana").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 = { "maxItems": 20 }

# Run the Actor and wait for it to finish
run = client.actor("iberdata-labs/licitaciones-publicas-espana").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 '{
  "maxItems": 20
}' |
apify call iberdata-labs/licitaciones-publicas-espana --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,iberdata-labs/licitaciones-publicas-espana"
        }
    }
}
```

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/0bRlcezXVNw09OykQ/builds/Js08JTtT3RRZuSwI4/openapi.json
