# Licitaciones España — Spain Public Tenders API (PLACSP) (`icarodata/placsp-licitaciones`) Actor

Spanish public tenders (licitaciones) from official PLACSP feeds, incl. regional platforms. Filter by CPV, province, contract type, status, budget and deadline. Schedule daily with Only-new and pay only for new tenders. $3 per 1,000.

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

## Pricing

from $3.00 / 1,000 tender scrapeds

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 España — Spain Public Tenders API (PLACSP)

**Licitaciones España** extracts **Spanish public tenders (licitaciones públicas)** from the official open-data feeds of the **Plataforma de Contratación del Sector Público (PLACSP / contrataciondelestado.es)**, including the regional platforms aggregated into it (Catalonia, Madrid, Basque Country, Andalusia, Galicia…). Filter by **keyword, CPV code, province or NUTS, contract type, procedure, status, estimated value and dates**, schedule it every weekday with **Only new since last run**, and receive **every new tender in your sector** in Google Sheets, Slack, email or your CRM — without paying for a tender-alert subscription.

- ✅ **Official source**: PLACSP ATOM/CODICE feeds (Ministerio de Hacienda), no login, no API key
- ✅ Covers **state, regional and local** contracting authorities aggregated in PLACSP
- ✅ Filters: keywords, **CPV** (e.g. `72` IT services, `45` works, `79` business services), province / NUTS, works/services/supplies, open/awarded…, budget, publication and deadline dates
- ✅ Includes **budget with and without VAT, deadline, documents (pliegos), award and winning company**
- ✅ **Incremental mode**: daily alerts, you pay only for new or updated tenders
- ✅ **$3 per 1,000 tenders** — **200 tenders = $0.60**

### Who uses it?

| Use case | Who |
| --- | --- |
| **Daily tender alerts** for your CPV codes and provinces | SMEs and companies that bid on public contracts (IT, construction, cleaning, maintenance, consulting, healthcare…) |
| **Tender-search service for clients** | Licitaciones consultancies, gestorías, bid managers |
| **Competitive intelligence**: who wins what, at which price | Sales and strategy teams |
| **Lead generation** from awarded contracts | B2B suppliers and subcontractors |
| **Research and transparency** on public spending | Journalists, universities, NGOs |

### What data does it return?

Tender key and expediente, title, description, status (announced, open, pending award, awarded, resolved, cancelled), contract type, procedure, contracting authority (name, public-body NIF, DIR3, parent body, buyer-profile URL), **CPV codes**, **estimated value**, **budget excl./incl. VAT**, NUTS codes, provinces, cities, place of execution, publication date, **submission deadline** (date and time), award date, **winning company** and award amounts, **documents** (PCAP, PPT…), detail URL and licence attribution.

### How to get Spanish public tenders in 4 steps

1. Click **Try for free**.
2. Enter **CPV codes** or prefixes (`72` = IT services, `45` = construction works, `90` = cleaning/environment) and/or **keywords**.
3. Choose **provinces or NUTS** (`Barcelona`, `08`, `ES511`, or `ES51` for all Catalonia), **contract type** and **status** = `open`.
4. Click **Start** and export JSON/CSV/Excel, or connect Google Sheets, Slack, email, Make, Zapier or n8n.

#### Input example

```json
{
  "keywords": [],
  "cpvCodes": ["72"],
  "provinces": ["Barcelona", "Madrid"],
  "contractTypes": ["services"],
  "status": ["open"],
  "minEstimatedValue": 50000,
  "deadlineAfter": "2026-11-18",
  "maxItems": 200,
  "onlyNewSinceLastRun": true
}
```

#### Output example

```json
{
  "expediente": "63/2026",
  "title": "Contratación del proyecto de Data Driven para el Consorcio de la Zona Franca de Barcelona.",
  "status": "open",
  "statusLabel": "En plazo",
  "contractType": "services",
  "procedure": "open",
  "authorityName": "Consorcio de la Zona Franca de Barcelona",
  "authorityNif": "Q0876006H",
  "cpvCodes": ["72220000", "72310000", "72316000"],
  "estimatedValue": 503076.4,
  "budgetExclVat": 305439.0,
  "budgetInclVat": 369581.19,
  "provinces": ["Barcelona"],
  "nutsCodes": ["ES511"],
  "publicationDate": "2026-11-04",
  "deadline": "2026-12-04",
  "deadlineTime": "10:00:00",
  "documents": [{ "title": "Exp 63 26 PCAP.pdf", "url": "https://contrataciondelestado.es/FileSystem/..." }],
  "winnerName": null,
  "licenseAttribution": "Origen de los datos: Plataforma de Contratación del Sector Público (Ministerio de Hacienda)"
}
```

### Featured use: schedule daily or weekly with “only new”

The cheapest, most reliable way to use this Actor is a **weekday schedule** with **Only new since last run** enabled. Each run returns — and bills — only tenders you have not received before. Already-seen tenders are free. When a tender is modified (deadline change, award), the official feed republishes it and you receive the update.

1. Open this Actor in Apify Console and click **Save as Task** with your filters.
2. Set **Only new since last run** to `true`.
3. Create a **Schedule** (for example every weekday at 08:00 Europe/Madrid, or every Monday for a weekly digest).
4. Add an integration: **Google Sheets**, **Slack/Teams via Make or n8n**, **email**, or a **webhook**.

Example input:

```json
{
  "keywords": ["software", "licencias"],
  "cpvCodes": ["72000000"],
  "provinces": ["28", "08"],
  "status": ["open"],
  "maxItems": 200,
  "onlyNewSinceLastRun": true
}
```

State is kept in the named key-value store `placsp-licitaciones-state`, so it survives between runs.

### How much does it cost?

| Event | Price |
| --- | --- |
| Actor start | $0.00005 |
| Tender saved to the dataset | **$0.003** ($3 per 1,000) |

**Examples:** 200 tenders = **$0.60** · a weekday alert for IT services in two provinces (~20 new tenders/day) ≈ **$1.30/month** — a fraction of a commercial tender-alert subscription. Skipped duplicates and rows dropped by your filters are not charged.

### Integrations and API

Apify API, Python/JavaScript clients, **Google Sheets, Slack, Make, Zapier, n8n, Airbyte, webhooks** and **MCP** for AI agents (ask your agent "find open IT tenders in Madrid").

```bash
curl "https://api.apify.com/v2/acts/icarodata~placsp-licitaciones/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -X POST -H "Content-Type: application/json" \
  -d '{"cpvCodes":["45"],"provinces":["Valencia"],"status":["open"],"maxItems":100}'
```

### FAQ

**Does it include regional platforms (Catalonia, Madrid, Basque Country…)?** Yes — the aggregated-platforms feed (sindicación 1044) is included by default together with contracting-authority profiles (sindicación 643).

**Does it include minor contracts (contratos menores)?** No, minor contracts are outside the two feeds used.

**Can I get historical tenders?** Yes, set a publication date range and a higher `maxItems`; the Actor follows the official pagination Also raise `maxRunTimeSecs` (default 180 s): when the time budget is reached the run stops and keeps the tenders found so far, and if the official feed is slow or temporarily blocks requests the run still succeeds with a warning.

**Is this the official notice?** No. It is a value-added product based on open data. Always confirm on the official PLACSP page before bidding.

**What about TED (EU tenders)?** Spanish tenders above EU thresholds are also on PLACSP, so they are covered here.

### Reuse licence and limitations

PLACSP open data may be reused, including commercially, under [Law 37/2007](https://www.boe.es/buscar/act.php?id=BOE-A-2007-19814) and [Royal Decree 1495/2011](https://www.boe.es/buscar/act.php?id=BOE-A-2011-17560). You must cite the source, not distort the information, and not imply that the Ministerio de Hacienda or PLACSP sponsors this product ([datos.gob.es/es/aviso-legal](https://datos.gob.es/es/aviso-legal)). Natural-person data is skipped; winning companies (legal persons) are kept. Attribution stored on every item: *Origen de los datos: Plataforma de Contratación del Sector Público (Ministerio de Hacienda)*.

***

### 🇪🇸 En español: Licitaciones públicas de España (PLACSP) — alertas diarias

Extrae las **licitaciones públicas** de la **Plataforma de Contratación del Sector Público**, incluidas las plataformas autonómicas agregadas. Filtra por **palabra clave, código CPV, provincia o NUTS, tipo de contrato (obras, servicios, suministros), procedimiento, estado (en plazo, adjudicada…), importe y fechas**.

- Recibe **cada día las licitaciones nuevas de tu sector** en **Google Sheets, email, Slack o tu CRM** con "solo nuevas desde la última ejecución".
- Incluye **presupuesto con y sin IVA, fecha límite, pliegos, adjudicatario e importe adjudicado**.
- **3 $ por cada 1.000 licitaciones** (200 licitaciones = 0,60 $). Mucho más barato que una suscripción de alertas de concursos.
- Para **empresas que licitan, consultoras de licitaciones, gestorías y equipos comerciales**.

### Related Actors by Icaro Data

- [UK Public Tenders](https://apify.com/icarodata/uk-public-tenders) — Find a Tender and Contracts Finder
- [Spain Construction Leads](https://apify.com/icarodata/spain-construction-leads) — building licences and public works (CPV 45)
- [BORME Scraper](https://apify.com/icarodata/borme-feed) — new Spanish companies, dissolutions and insolvencies
- [EU Sanctions Screening](https://apify.com/icarodata/eu-sanctions-screening) — screen bidders and winners
- [BOE Subastas Scraper](https://apify.com/icarodata/boe-subastas) — Spanish property and vehicle auctions
- [Wallapop Scraper](https://apify.com/icarodata/wallapop-scraper) — second-hand listings and price alerts

# Actor input Schema

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

Optional keywords. A tender is kept if any keyword appears in the title, description or contracting-authority name (case-insensitive).

## `cpvCodes` (type: `array`):

Optional CPV prefixes or full codes (for example 72 or 72212900). A tender matches if any of its CPV codes starts with one of these prefixes. Non-digit characters are ignored.

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

Optional places of execution. Accepts province names (Barcelona), INE codes (08) or NUTS codes (ES511, ES51 for Catalonia). Leave empty to include every location.

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

Optional contract types from the official CODICE list. Leave empty to include every type.

## `procedures` (type: `array`):

Optional tendering procedures from the official CODICE syndication list. Leave empty to include every procedure.

## `status` (type: `array`):

Optional tender statuses. 'open' is EN PLAZO (PUB), 'announced' is a prior notice (PRE), 'pending_award' is evaluation (EV), 'awarded' is ADJ, 'resolved' is RES, 'cancelled' is ANUL.

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

Which official ATOM feeds to read. contracting_profiles is sindicación 643 (licitacionesPerfilesContratanteCompleto3). aggregated is sindicación 1044 (PlataformasAgregadasSinMenores), covering regional platforms.

## `minEstimatedValue` (type: `number`):

Keep tenders whose estimated value or budget excluding VAT is at least this amount. Leave empty for no lower bound.

## `maxEstimatedValue` (type: `number`):

Keep tenders whose estimated value or budget excluding VAT is at most this amount. Leave empty for no upper bound.

## `publicationDateFrom` (type: `string`):

First publication date to include, YYYY-MM-DD. Compared with the earliest official notice date (or the feed update date when no notice date is present).

## `publicationDateTo` (type: `string`):

Last publication date to include, YYYY-MM-DD.

## `deadlineAfter` (type: `string`):

Keep only tenders whose submission deadline is on or after this date (YYYY-MM-DD). Tenders without a published deadline are dropped when this filter is set.

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

Maximum number of matching tenders to save. Between 1 and 5,000.

## `maxRunTimeSecs` (type: `integer`):

Internal time budget. Each official PLACSP page (~500 procedures) takes ~20-60 s to read. When the budget is reached the Actor stops and saves the tenders found so far (the run still succeeds). Default 180 s; set e.g. 1800 for narrow filters or back-fills, or 0 for no internal limit (the platform run timeout still applies, minus a 45 s safety margin).

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

If enabled, only tenders not seen in a previous run with the same filters are saved. Seen IDs are stored in the named key-value store 'placsp-licitaciones-state' so scheduled runs only return (and bill) new tenders.

## Actor input object example

```json
{
  "keywords": [],
  "cpvCodes": [],
  "provinces": [],
  "contractTypes": [],
  "procedures": [],
  "status": [],
  "sources": [
    "contracting_profiles",
    "aggregated"
  ],
  "maxItems": 20,
  "maxRunTimeSecs": 180,
  "onlyNewSinceLastRun": 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 = {
    "maxItems": 20
};

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

```

## MCP server setup

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

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/P9Xa3xtOyqHC83l0m/builds/SWBeSyWkYXuehLzev/openapi.json
