# Spain Public Tenders (PLACSP) (`darikami/spain-public-tenders`) Actor

Spanish public tenders from the official open data feed of the Plataforma de Contratación del Sector Público: title, buyer, status, CPV codes, value, region, closing date, link. Filter by words, buyer, status, contract type, CPV, NUTS, value and dates.

- **URL**: https://apify.com/darikami/spain-public-tenders.md
- **Developed by:** [DARIKAMI GmbH](https://apify.com/darikami) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 91.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 tender notice delivereds

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 (PLACSP)

**Spanish public tenders (licitaciones) from the official open data feed of the Plataforma de Contratación del Sector Público, without minor contracts.**
Each item has the title, the status, the buyer, the contract type, the CPV codes, the estimated value and budget, the NUTS code, the closing date and the link.
**USD 0.002 per tender (USD 2 per 1,000).** Filter by words, buyer, status, contract type, CPV, NUTS, value and dates. You pay only for the tenders delivered.

| File | Title | Buyer | Estimated value (EUR) | Region | Closing |
|---|---|---|---|---|---|
| 434/2026/CMA | Servicio integral de producción técnica del acto de encendido del alumbrado | Patronato de Turismo de Melilla | 99,960 | Melilla | 2026-11-13 |
| DSC/1250/26 | Pólizas de aviación para SENASA. | SENASA, Consejo de Administración | 96,000 | Madrid | 2026-11-23 |
| DSC/1251/26 | Pólizas de vida y accidentes para SENASA. | SENASA, Consejo de Administración | 99,000 | Madrid | 2026-11-23 |
| DSC/1253/26 | Póliza de responsabilidad de Administradores y Directivos (D\&O) | SENASA, Consejo de Administración | 10,000 | Madrid | 2026-11-23 |
| DSC/1254/26 | Pólizas de asistencia en viajes para SENASA. | SENASA, Consejo de Administración | 12,000 | Madrid | 2026-11-23 |

The rows come from a real cloud run of 2026-11-07: open service contracts, at most 5; long titles and buyer names are shortened here. The full item is under Output.

### Who uses it

- **Bid teams:** the open tenders of the week by CPV code, region and value, with the closing date.
- **Tender alert services:** run it every day with your words and send the result on.
- **Market analysis:** what a buyer or a region puts out to tender, month by month.

### What it does not do

- The feed's main file only: no minor contracts, and no notices that buyers publish only on regional platforms.
- No documents and no award winners. The item gives the link to the official page.
- No contact person, telephone or e-mail of a buyer.
- A run reaches at most 14 days back. A local read 10 days back took 46 pages and about 8 minutes on 2026-11-07.
- Titles stay in the language the buyer wrote them in.

### Input

```json
{
  "query": "limpieza",
  "buyer": "Madrid",
  "statuses": ["open"],
  "contractTypes": ["services"],
  "cpvCodes": ["90"],
  "nutsCodes": ["ES3"],
  "minValue": 50000,
  "updatedFrom": "2026-11-01",
  "closingFrom": "2026-11-20",
  "maxResults": 100
}
```

All fields are optional. An empty input returns up to 100 open tenders updated in the last 2 days.

| Field | What it does |
|---|---|
| `query` | Words of the title. Each word must start a word of the title. Case and accents are ignored. |
| `buyer` | Words of the buyer's name or of the bodies above it. |
| `statuses` | `prior-notice`, `open`, `evaluation`, `awarded`, `resolved`, `cancelled`. Default: `open`. |
| `contractTypes` | `goods`, `services`, `works` and the other types in the input form. |
| `cpvCodes` | CPV codes or their start: `72`, `72212000`. A tender passes when one of its codes matches. |
| `nutsCodes` | Spanish NUTS codes or their start: `ES3`, `ES511`. |
| `minValue`, `maxValue` | The estimated value in EUR, or the budget without tax where none is given. |
| `updatedFrom`, `updatedTo` | The day of the tender's last update, UTC. Default from: 2 days ago. At most 14 days back. |
| `closingFrom` | Only tenders whose submission period ends on this day or later. |
| `maxResults` | Default 100, at most 100,000. |

A tender must pass every filter that you set. The feed lists a tender again at each update: the actor returns its newest state, once.

### Output

```json
{
  "id": "ES-PLACSP-20853938",
  "folderId": "DSC/1250/26",
  "title": "Pólizas de aviación para SENASA.",
  "personalDataRemoved": false,
  "status": "open",
  "updated": "2026-11-06T19:21:33.402+01:00",
  "url": "https://contrataciondelestado.es/wps/poc?uri=deeplink:detalle_licitacion&idEvl=...",
  "buyerName": "Consejo de Administración de Servicios y Estudios para la Navegación Aérea y la Seguridad Aeronáutica",
  "buyerNif": "A79818423",
  "buyerDir3": "EA0003342",
  "buyerWebsite": "http://www.senasa.es",
  "buyerProfileUrl": "https://contrataciondelestado.es/wps/poc?uri=deeplink:perfilContratante&idBp=...",
  "buyerCity": "Madrid",
  "buyerHierarchy": ["Servicios y Estudios para la Navegación Aérea y la Seguridad Aeronáutica", "..."],
  "contractType": "services",
  "cpvCodes": ["66510000"],
  "estimatedValue": 96000,
  "budgetWithTax": 96000,
  "budgetWithoutTax": 96000,
  "currency": "EUR",
  "nutsCode": "ES300",
  "region": "Madrid",
  "city": null,
  "durationDays": null,
  "closingDate": "2026-11-23",
  "closingTime": "23:59:00",
  "procedureCode": "9",
  "urgencyCode": "1",
  "source": "Origen de los datos: Ministerio de Hacienda. ..."
}
```

- `updated` is the date of the last update that the feed states. `closingTime` is the time that the buyer wrote.
- `procedureCode` and `urgencyCode` are the feed's own codes.

### Pricing (pay per event)

| Event | Price | When |
|---|---|---|
| `notice` | **USD 0.002** | one tender that matched your filters, pushed to the dataset |

Free: entries that your filters drop, error items and the note "nothing matched".
1,000 tenders cost USD 2.
You pay no more than the maximum charge that you set for a run.

### Personal data

- The contact block of a buyer and the award winners are not read.
- In the title, e-mail addresses and contact lines are replaced by `[removed]`. `personalDataRemoved` marks such an item.
- The filter works on patterns. A name in a title can remain.

### Data source and terms

- **Source:** Plataforma de Contratación del Sector Público, open data feed `https://contrataciondelestado.es/sindicacion/sindicacion_643/licitacionesPerfilesContratanteCompleto3.atom`.
- **Licence:** the dataset on datos.gob.es points to the legal notice of the Ministerio de Hacienda. Its general conditions (read 2026-11-07): "permiten la reutilización de los documentos sometidos a ellas para fines comerciales y no comerciales". The conditions ask for the citation and for the date of the last update: each item has both.
- The platform's own legal notice: "Se autoriza la reproducción total o parcial de los contenidos del Portal de la Plataforma de Contratación del Sector Público, siempre que se cite expresamente su origen."
- Origen de los datos: Ministerio de Hacienda. The Ministry does not take part in, sponsor or support this actor. It is provided without warranty. The official text is at `url`.

### Reliability

A run fails with exit code 1 and an `ERROR` line in the log in these cases:

- a page cannot be read after the retries, or the answer is not an Atom feed;
- the next page lies on another host.

The tenders found until then stay in the dataset.
The run summary is in the default key-value store under `SUMMARY`, the counts under `STATS`.

**More official-data actors by darikami:** [EU public tenders (TED)](https://apify.com/darikami/eu-public-tenders) · [German public tenders](https://apify.com/darikami/german-public-tenders) · [UK public tenders](https://apify.com/darikami/uk-public-tenders) · [Canada public tenders](https://apify.com/darikami/canada-public-tenders).
In an AI agent: ask the Apify MCP server (`mcp.apify.com`) for `darikami/spain-public-tenders`.

# Actor input Schema

## `query` (type: `string`):

Words of the title. Each word must start a word of the title. Case and accents are ignored.

## `buyer` (type: `string`):

Words of the contracting body's name or of the bodies above it, for example Madrid or Diputación.

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

Default: open.

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

Empty: all.

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

CPV codes or their start: 72 or 72212000.

## `nutsCodes` (type: `array`):

Spanish NUTS codes or their start: ES3, ES300, ES51.

## `minValue` (type: `integer`):

The estimated value, or the budget without tax where none is given.

## `maxValue` (type: `integer`):

The estimated value, or the budget without tax where none is given.

## `updatedFrom` (type: `string`):

YYYY-MM-DD. Default: 2 days ago. At most 14 days back.

## `updatedTo` (type: `string`):

YYYY-MM-DD.

## `closingFrom` (type: `string`):

YYYY-MM-DD: only tenders whose submission period ends on this day or later.

## `maxResults` (type: `integer`):

Default 100, at most 100,000.

## Actor input object example

```json
{
  "maxResults": 100
}
```

# Actor output Schema

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

One item per tender: title, status, buyer, contract type, CPV codes, value, region, closing date, link.

## `summary` (type: `string`):

SUMMARY record: pushed, charged, attempts, errors, stoppedByBudget, ok, message.

## `stats` (type: `string`):

STATS record: pages, entries, repeats, matched, emitted, charged, the feed's stamp.

# 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("darikami/spain-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 = {}

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

```

## MCP server setup

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