# PLACSP Public Tenders Spain (Licitaciones) (`devetty/placsp-spain-tenders-scraper`) Actor

Scrapes and filters real-time public tenders from Spain's Plataforma de Contratación del Sector Público (PLACSP). Filter by CPV, NUTS/province, deadline, and SME budget thresholds (<60k€). RGPD compliant. Extractor de licitaciones oficiales del Estado Español.

- **URL**: https://apify.com/devetty/placsp-spain-tenders-scraper.md
- **Developed by:** [Devetty](https://apify.com/devetty) (community)
- **Categories:** Developer tools, Lead generation
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00 / 1,000 tender extracteds

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

## PLACSP Spain Public Tenders Scraper

Extract open public tenders from Spain's official Plataforma de Contratación del Sector Público (PLACSP) feed. Built for SMEs, contractors and lead-gen agencies.

### Features

- Only tenders open for bidding (PUB) with a future deadline
- Filter by CPV code (50 Maintenance, 45 Construction, 72 IT...)
- Filter by province or NUTS region (e.g. Madrid / ES30)
- Max budget filter (e.g. under 60,000 EUR without VAT)
- GDPR safe: no data about private individuals
- Includes the legal notice required by Spanish Law 37/2007

### Pricing

$0.02 per tender extracted. You pay only for results.

### Output

expediente_id, organo_contratacion, titulo, presupuesto_sin_iva, fecha_limite, enlace_oficial, cpvs, provincias, nuts, cita_legal. Export as JSON, CSV or via API.

### En español

Extrae licitaciones abiertas de la Plataforma de Contratación del Sector Público. Filtra por CPV, provincia y presupuesto máximo. Solo pagas por cada licitación encontrada (0,02 USD).

Origen de los datos: Plataforma de Contratación del Sector Público, Ministerio de Hacienda.

# Actor input Schema

## `cpv_prefix` (type: `string`):

CPV prefix to filter. Examples: '50' for Repair & Maintenance, '45' for Construction, '72' for IT & Software, '79' for Business & Legal services.

## `province_or_nuts` (type: `string`):

Territorial name to match (e.g., 'Madrid', 'Barcelona', 'Sevilla', 'Valencia'). Matches province, city, and postal code prefixes.

## `nuts_prefix` (type: `string`):

European NUTS territorial code prefix (e.g. 'ES30' for Comunidad de Madrid, 'ES51' for Catalonia, 'ES61' for Andalusia).

## `max_budget` (type: `integer`):

Budget threshold without VAT (EUR). Ideal for SME contracts, minor contracts, and simplified procedures (<60,000 €).

## `status_filter` (type: `string`):

Filter by tender status in PLACSP syndication.

## `only_future_deadlines` (type: `boolean`):

Filter out tenders whose bid submission deadline has already elapsed.

## `max_pages` (type: `integer`):

Maximum number of Atom feed pages to traverse (each page contains up to 500 tender events).

## `max_results` (type: `integer`):

Maximum number of matching tenders to collect.

## `max_runtime_secs` (type: `integer`):

The crawl stops and returns what it found before this time (and always before the run timeout). Each feed page takes ~20 s.

## Actor input object example

```json
{
  "cpv_prefix": "50",
  "province_or_nuts": "Madrid",
  "nuts_prefix": "ES30",
  "max_budget": 60000,
  "status_filter": "PUB",
  "only_future_deadlines": true,
  "max_pages": 15,
  "max_results": 50,
  "max_runtime_secs": 300
}
```

# Actor output Schema

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

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

```

## MCP server setup

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

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/vhlIdJN6jtilWvZZJ/builds/Vn7HBsyB2DbrIsfDK/openapi.json
