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

Spanish public tenders from the official PLACSP open-data feed: authority, budget, CPV, region, deadline, status and awards. Filter by keyword, CPV, status, region or budget; alerts for new or changed tenders.

- **URL**: https://apify.com/nemata/spain-public-tenders.md
- **Developed by:** [nemata](https://apify.com/nemata) (community)
- **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 returneds

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 Monitor — Plataforma de Contratación (PLACSP)

Track **Spanish public tenders** — from ministries to town halls — as clean, structured data, straight from the **official open-data feed** of the *Plataforma de Contratación del Sector Público*.

- **Every tender, one format:** title, contracting authority and its hierarchy (town › province › region), budget with and without VAT, CPV codes, location (NUTS), procedure, deadline, status, EU funding.
- **Awards included:** award date, number of bids, amount and winning company.
- **Alerts:** turn on *Only new or changed* and schedule the Actor. Each run returns only tenders that are new or changed status since last time, e.g. *open → awarded*.
- **Filters:** keywords, CPV prefixes, status, region, contract type and budget range.
- **Privacy-first:** winners who are private individuals are redacted, and no contact phones or e-mails are output.
- **Pay per tender returned.**

### En español

**Licitaciones públicas de España en datos limpios**, directamente del feed oficial de datos abiertos de la Plataforma de Contratación del Sector Público (PLACSP): ministerios, comunidades autónomas, diputaciones y ayuntamientos.

- **Alertas de licitaciones nuevas:** activa *Only new or changed*, programa el Actor cada día y recibe solo las licitaciones nuevas o que cambian de estado (abierta → adjudicada) en Slack, e-mail o Google Sheets.
- **Filtros:** palabras clave, códigos CPV, estado, comunidad o provincia, tipo de contrato e importe.
- **Datos de cada licitación:** órgano de contratación, presupuesto con y sin IVA, CPV, lugar de ejecución, procedimiento, plazo de presentación, fondos europeos y, cuando hay adjudicación, empresa adjudicataria, importe y número de ofertas.
- **Para empresas, consultoras y agentes de IA** que necesitan vigilar el mercado público o preparar ofertas.
- **Pagas solo por licitación devuelta.**

### Use cases

- Daily alerts of new tenders in your sector and region (Slack, e-mail, Sheets via Apify integrations)
- Market intelligence: who buys what, at what price, and who wins
- Feeding bid-management tools and CRMs
- Giving an AI agent access to current Spanish public procurement

### Input

```json
{
  "keywords": ["software", "informático"],
  "cpvPrefixes": ["72"],
  "statuses": ["open"],
  "regions": ["Madrid"],
  "minAmount": 15000,
  "lookbackHours": 24,
  "onlyNew": true
}
```

Useful CPV prefixes: `72` IT services, `48` software packages, `45` construction works, `79` business services, `90` cleaning and environment, `33` medical equipment.

### Output

```json
{
  "folderId": "1936/2026",
  "title": "Redacción de proyecto técnico, dirección de obra ...",
  "status": "awarded",
  "statusLabelEs": "Adjudicada",
  "contractType": "services",
  "procedure": "negotiated_without_publicity",
  "contractingAuthority": "Alcaldía del Ayuntamiento de Porcuna",
  "contractingAuthorityTaxId": "P2306900H",
  "authorityHierarchy": ["Porcuna", "Ayuntamientos", "Jaén", "Andalucía", "ENTIDADES LOCALES", "Sector Público"],
  "budgetExclVat": 7668,
  "budgetInclVat": 9278.28,
  "cpvCodes": ["71000000", "71242000"],
  "region": "Jaén",
  "nutsCode": "ES616",
  "submissionDeadline": "2026-09-21T12:00:00",
  "euFunded": false,
  "awards": [{ "awardDate": "2026-09-22", "receivedTenders": 1, "winnerName": "CERAMIC ARQUITECTURA E INGENIERIA S.L", "winnerTaxId": "B44989986", "amountExclVat": 7668 }],
  "url": "https://contrataciondelestado.es/wps/poc?uri=deeplink:detalle_licitacion&idEvl=...",
  "updatedAt": "2026-11-19T20:13:23.298+01:00"
}
```

### Use with AI agents

- **MCP:** AI assistants and agents can call this Actor as a tool through the Apify MCP server.
- **No Apify account needed for agents:** agents can pay per run through Apify with x402 (stablecoins) or Skyfire, and then call the Actor with the temporary token they receive.
- Clear JSON input and structured JSON output that an agent can use directly.

### Pricing

**$0.003 per tender** ($3 per 1,000). The price is the same for every Apify plan you are on, and you can set a maximum cost per run in the run options.

Pay per event: you are charged **per tender returned** after filters.

### Source and licence

Data: Plataforma de Contratación del Sector Público, Ministerio de Hacienda — open data published for reuse (Ley 37/2007). This Actor is not affiliated with the Spanish government.

# Actor input Schema

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

Keep tenders whose title or contracting authority contains any of these words (Spanish, e.g. 'software', 'limpieza', 'mantenimiento'). Empty = all.

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

Keep tenders with a CPV code starting with any of these (e.g. '72' IT services, '45' construction, '90' cleaning).

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

Keep only these statuses. 'open' = accepting bids.

## `regions` (type: `array`):

Keep tenders whose location or authority matches any of these (e.g. 'Madrid', 'Andalucía', 'ES51' NUTS code).

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

Keep only these types.

## `minAmount` (type: `number`):

Skip smaller tenders.

## `maxAmount` (type: `number`):

Skip larger tenders.

## `lookbackHours` (type: `integer`):

Read tenders published or updated in the last N hours (max 336 = 14 days).

## `onlyNew` (type: `boolean`):

Return only tenders not seen before, or whose status changed (e.g. open -> awarded). Ideal for scheduled alerts.

## `feedName` (type: `string`):

Name for the 'only new' memory. Use different names for different alerts.

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

Maximum tenders to return.

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

Safety limit on feed pages read per run.

## Actor input object example

```json
{
  "keywords": [
    "software",
    "informático"
  ],
  "lookbackHours": 24,
  "onlyNew": false,
  "feedName": "default",
  "maxPages": 400
}
```

# 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 = {
    "keywords": [
        "software",
        "informático"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nemata/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 = { "keywords": [
        "software",
        "informático",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("nemata/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 '{
  "keywords": [
    "software",
    "informático"
  ]
}' |
apify call nemata/spain-public-tenders --silent --output-dataset

```

## MCP server setup

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