# Spain Public Tenders (Licitaciones PLACSP) (`innovito/licitaciones-placsp`) Actor

Official Spanish public tenders (licitaciones) from the Plataforma de Contratación del Sector Público open-data ATOM feed: CPV, budget, deadline, status, contracting authority and official links. Organisation data only, no personal contact fields.

- **URL**: https://apify.com/innovito/licitaciones-placsp.md
- **Developed by:** [Asier Sanchez](https://apify.com/innovito) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 66.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 public tenders

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

## Spain Public Tenders (Licitaciones PLACSP / Contratación del Estado)

Get official **Spanish public tenders** (licitaciones) from the Plataforma de Contratación del Sector Público as clean JSON or CSV rows.

The Actor reads the **official PLACSP open-data ATOM/CODICE feed** (sindicación 643). No HTML scraping of the public-procurement website, no login and no personal contact fields.

Ideal for consultancies, SMEs that bid for public contracts, tender alerts and AI/MCP or n8n agents that need the official notice link.

### What you get

| Field | Description |
|---|---|
| `contractFolderId`, `tenderId` | Official expediente and feed identifier |
| `status`, `statusCode` | Folder status (`PUB`, `RES`, `ADJ`…) |
| `title`, `summary` | Official title and short summary |
| `contractingAuthority` | Public contracting authority (organisation) |
| `estimatedValueEur`, `totalAmountEur` | Amounts in euro when published |
| `cpvCodes` | CPV classification codes |
| `autonomousCommunity`, `city`, `locations` | Territory (e.g. Cataluña, Madrid) |
| `submissionDeadline`, `awardDate` | Deadlines and award date when present |
| `officialUrl` | Official notice on the Plataforma de Contratación |
| `sourceAttribution` | Required credit line |

### Input example

```json
{
  "maxPages": 1,
  "maxItems": 15,
  "cpvPrefixes": ["72"],
  "autonomousCommunities": ["Cataluña"],
  "keywords": ["ventas", "suministro"]
}
```

`maxPages` default is 1 (latest updates). Status filters use official codes such as `PUB`, `RES` or `ADJ`.

### Output example

```json
{
  "tenderId": "2026-00123-pub",
  "contractFolderId": "2026/00123",
  "statusCode": "PUB",
  "status": "Published",
  "title": "Suministro de material informático para centros educativos",
  "summary": "Suministro de equipos y periféricos para centros de enseñanza pública.",
  "contractType": "Supplies",
  "procedure": "Open",
  "estimatedValueEur": 125000.0,
  "taxExclusiveAmountEur": 125000.0,
  "totalAmountEur": 151250.0,
  "cpvCodes": ["30200000"],
  "locations": ["Barcelona", "Cataluña"],
  "city": "Barcelona",
  "autonomousCommunity": "Cataluña",
  "contractingAuthority": "Generalitat de Catalunya",
  "submissionDeadline": "2026-12-15T12:00:00+01:00",
  "awardDate": null,
  "awardedOrganizations": null,
  "officialUrl": "https://contrataciondelestado.es/wps/poc?uri=deeplink:detalle_licitacion&idEvl=EXAMPLE",
  "source": "placsp",
  "sourceAttribution": "Fuente: Plataforma de Contratación del Sector Público (PLACSP). https://contrataciondelestado.es",
  "scrapedAt": "2026-11-23T21:00:00+00:00"
}
```

### Python example (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("innovito/licitaciones-placsp").call(
    run_input={
        "maxPages": 1,
        "maxItems": 15,
        "cpvPrefixes": ["72"],
        "autonomousCommunities": ["Cataluña"],
        "keywords": ["ventas", "suministro"],
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["contractFolderId"], item["title"], item.get("officialUrl"))
```

### Pricing

Pay-per-event: $2.00 per 1,000 tenders written to the dataset, plus $0.00005 per Actor start. You are not charged for platform compute.

### Data source and terms

- Official sindicación 643 ATOM feed of the [Plataforma de Contratación del Sector Público](https://www.hacienda.gob.es/es-ES/GobiernoAbierto/Datos%20Abiertos/paginas/licitaciones_plataforma_contratacion.aspx), published as open data for reuse (Ley 37/2007).
- Credit the Plataforma de Contratación del Sector Público. Do not present this Actor as an official ministry product.
- The HTML portal at contrataciondelsectorpublico.gob.es has `Disallow: /` in `robots.txt`. This Actor **only** uses the official open-data feed; it does not crawl the web search UI.
- Organisation names may appear (contracting authority, awarded organisation). Personal contact fields (email, phone, private identifiers) are not written to the dataset.

***

## Licitaciones España (PLACSP / Contratación del Estado)

Extrae las **licitaciones públicas de España** de la Plataforma de Contratación del Sector Público en filas JSON o CSV.

Usa el **feed ATOM/CODICE oficial de datos abiertos** (sindicación 643). No recorre el buscador web, no pide inicio de sesión y no guarda datos de contacto personales.

Ideal para consultoras, pymes que licitan, alertas de concursos y agentes de IA, MCP o n8n que necesitan el anuncio oficial.

### Qué devuelve

| Campo | Descripción |
|---|---|
| `contractFolderId`, `tenderId` | Expediente e identificador del feed |
| `status`, `statusCode` | Estado del expediente (`PUB`, `RES`, `ADJ`…) |
| `title`, `summary` | Título y resumen oficiales |
| `contractingAuthority` | Órgano de contratación (organización pública) |
| `estimatedValueEur`, `totalAmountEur` | Importes en euros, si se publican |
| `cpvCodes` | Códigos CPV |
| `autonomousCommunity`, `city`, `locations` | Territorio (p. ej. Cataluña, Madrid) |
| `submissionDeadline`, `awardDate` | Plazo de presentación y fecha de adjudicación, si constan |
| `officialUrl` | Enlace oficial en la Plataforma de Contratación |
| `sourceAttribution` | Línea de atribución obligatoria |

### Ejemplo de entrada

```json
{
  "maxPages": 1,
  "maxItems": 15,
  "cpvPrefixes": ["72"],
  "autonomousCommunities": ["Cataluña"],
  "keywords": ["ventas", "suministro"]
}
```

### Ejemplo de salida

```json
{
  "contractFolderId": "2026/00123",
  "statusCode": "PUB",
  "title": "Suministro de material informático para centros educativos",
  "contractingAuthority": "Generalitat de Catalunya",
  "estimatedValueEur": 125000.0,
  "cpvCodes": ["30200000"],
  "autonomousCommunity": "Cataluña",
  "officialUrl": "https://contrataciondelestado.es/wps/poc?uri=deeplink:detalle_licitacion&idEvl=EXAMPLE",
  "sourceAttribution": "Fuente: Plataforma de Contratación del Sector Público (PLACSP). https://contrataciondelestado.es"
}
```

### Ejemplo en Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("innovito/licitaciones-placsp").call(
    run_input={
        "maxPages": 1,
        "maxItems": 15,
        "cpvPrefixes": ["72"],
        "autonomousCommunities": ["Cataluña"],
        "keywords": ["ventas", "suministro"],
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["contractFolderId"], item["title"], item.get("officialUrl"))
```

### Precio

Pago por uso: 2,00 $ por cada 1.000 licitaciones escritas en el dataset, más 0,00005 $ por arranque. No se cobra el cómputo de la plataforma.

### Origen y condiciones

- Feed oficial de sindicación 643 de la [Plataforma de Contratación del Sector Público](https://www.hacienda.gob.es/es-ES/GobiernoAbierto/Datos%20Abiertos/paginas/licitaciones_plataforma_contratacion.aspx), publicado como dato abierto (Ley 37/2007).
- Hay que citar a la Plataforma de Contratación del Sector Público. Este Actor no es un producto oficial del ministerio.
- El HTML de contrataciondelsectorpublico.gob.es tiene `Disallow: /` en `robots.txt`. Este Actor **solo** usa el feed de datos abiertos; no recorre el buscador web.
- Pueden aparecer nombres de órganos o de la organización adjudicataria. No se escriben teléfonos, correos ni identificadores personales.

# Actor input Schema

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

Stop after this many matching tenders. 0 = no limit (still bounded by <code>maxPages</code>).

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

How many official ATOM pages to download. Page 1 is the latest updates (typically up to a few hundred entries). Further pages go backwards in time. Keep this low; default 1.

## `statusCodes` (type: `array`):

Keep only these official folder status codes. Empty = all. Common values: PUB (published), RES (resolved), ADJ (awarded).

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

Keep tenders whose CPV code starts with one of these prefixes, e.g. <code>72</code> (IT), <code>45</code> (construction). Empty = all.

## `autonomousCommunities` (type: `array`):

Keep tenders whose region, city, location or contracting authority contains one of these strings, e.g. <code>Cataluña</code>, <code>Madrid</code>, <code>Andalucía</code>.

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

Keep tenders whose title, summary, folder id or authority contains one of these words. Examples in Spanish: <code>ventas</code>, <code>suministro</code>, <code>obras</code>.

## `feedUrl` (type: `string`):

Leave empty to use the official sindicación 643 feed (licitaciones of contracting profiles, excluding minor contracts). Only contrataciondelsectorpublico.gob.es / contrataciondelestado.es URLs are accepted.

## Actor input object example

```json
{
  "maxItems": 0,
  "maxPages": 1
}
```

# Actor output Schema

## `tenders` (type: `string`):

Dataset of official Spanish public tenders (licitaciones) from the PLACSP open-data ATOM feed (one row per notice).

## `runStats` (type: `string`):

RUN_STATS record: pages fetched, tenders parsed and pushed, filters applied.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("innovito/licitaciones-placsp").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 = {}

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

```

## MCP server setup

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

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/yg0asEHXvgsMWkhdc/builds/VKBeIg8R6z7DY6sbp/openapi.json
