# TED Tenders Spain: Licitaciones Europeas (`iscle/licitaciones-europeas-ted-espana`) Actor

TED tenders scraper para España: anuncios de contratación pública de compradores españoles publicados en el Diario Oficial de la UE (TED, Tenders Electronic Daily) con la API oficial. Filtra por CPV, tipo de anuncio, NUTS y fechas.

- **URL**: https://apify.com/iscle/licitaciones-europeas-ted-espana.md
- **Developed by:** [Iscle Beltran](https://apify.com/iscle) (community)
- **Categories:** Lead generation, Other
- **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 resultados

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

## TED Tenders Spain: Licitaciones Europeas

Extrae los **anuncios de contratación pública de compradores españoles** publicados en **TED (Tenders Electronic Daily)**, el suplemento del Diario Oficial de la Unión Europea, con la **API oficial de búsqueda de TED**. Son los contratos de mayor importe (por encima de los umbrales europeos).

### Qué obtienes

- Número y fecha de publicación, tipo de anuncio (licitación, adjudicación, información previa...).
- Título en castellano cuando existe.
- Comprador y ciudad, lugar de ejecución (NUTS) y códigos **CPV**.
- Naturaleza del contrato (servicios, suministros, obras) y procedimiento.
- **Fecha límite de ofertas**, **valor estimado** e **importe adjudicado**.
- **Empresas adjudicatarias** y correo electrónico del comprador.
- Descripción del procedimiento.
- Enlaces al anuncio en HTML y PDF.

### Filtros

| Filtro | Ejemplo |
|---|---|
| Palabras clave | `software`, `hospital` |
| CPV | `72000000` (incluye los subcódigos) |
| Tipo de anuncio | Licitación, adjudicación, información previa |
| Naturaleza | Servicios, suministros, obras |
| NUTS | `ES51` (Cataluña), `ES30` (Madrid) |
| Valor estimado mínimo | 1.000.000 € |
| Solo abiertas | Plazo de ofertas no vencido |
| Consulta experta | Sintaxis de búsqueda experta de TED |

### Alertas diarias

Activa **«Solo nuevos desde la última ejecución»** y programa el Actor cada día para recibir solo los anuncios nuevos.

### Ejemplo de entrada

```json
{
  "diasAtras": 2,
  "naturaleza": ["services"],
  "cpv": ["72000000"],
  "tiposAnuncio": ["cn-standard"],
  "soloAbiertas": true
}
```

### Ejemplo de salida (registro real)

```json
{
  "numeroPublicacion": "797665-2026",
  "fechaPublicacion": "2026-11-17",
  "titulo": "España – Servicios de análisis – Control y seguimiento analítico EDAR",
  "descripcion": "Procedimiento Abierto",
  "tipoAnuncio": "can-standard",
  "tipoAnuncioTexto": "Anuncio de adjudicación",
  "comprador": "Instituto Aragonés del Agua",
  "ciudadComprador": "Zaragoza",
  "emailComprador": "iaa@aragon.es",
  "lugarEjecucion": [
    "ES243",
    "ESP"
  ],
  "cpv": [
    "71620000"
  ],
  "naturaleza": "services",
  "procedimiento": "open",
  "fechaLimiteOfertas": null,
  "valorEstimado": 1468234.78,
  "importeAdjudicado": 763817.64,
  "adjudicatarios": [
    "SOCOTEC CONTROL AND INSPECTIONS SPAIN, S.A.U."
  ],
  "moneda": "EUR",
  "url": "https://ted.europa.eu/es/notice/-/detail/797665-2026",
  "pdf": "https://ted.europa.eu/es/notice/797665-2026/pdf",
  "fuente": "TED – Tenders Electronic Daily (Oficina de Publicaciones de la Unión Europea), CC BY 4.0",
  "fuenteUrl": "https://ted.europa.eu/es/notice/-/detail/797665-2026",
  "datosActualizadosA": "2026-11-17",
  "aviso": "Fuente: TED – Tenders Electronic Daily (Oficina de Publicaciones de la Unión Europea), CC BY 4.0, datos actualizados a 2026-11-17; datos estructurados por este Actor sin alterar su contenido."
}
```

### Fuente y licencia de los datos

Datos de **TED – Tenders Electronic Daily**, © Unión Europea, reutilizados bajo licencia **CC BY 4.0** conforme al aviso legal de TED. Cada registro indica la fuente y enlaza al anuncio original. Cambios realizados: selección de campos, traducción de códigos y conversión a JSON. Este Actor no está afiliado ni respaldado por la Unión Europea ni por la Oficina de Publicaciones.

### Preguntas frecuentes

**¿Qué diferencia hay con PLACSP?** TED solo publica los contratos por encima de los umbrales europeos; PLACSP publica todos. Para cubrirlo todo, usa también el Actor *Licitaciones públicas de España (PLACSP)*.

**¿Puedo exportar a Excel?** Sí: CSV, Excel, JSON o XML, o por API.

### Otros Actors relacionados

- [Licitaciones Públicas España (PLACSP) Scraper](https://apify.com/iscle/licitaciones-publicas-espana): Descarga licitaciones y adjudicaciones de la Plataforma de Contratación del Sector Público. Filtra por CPV, provincia e importe. JSON y Excel.
- [Subvenciones España (BDNS): Spain Grants Scraper](https://apify.com/iscle/subvenciones-ayudas-espana): Convocatorias y concesiones de la Base de Datos Nacional de Subvenciones (BDNS): plazos, presupuesto, beneficiarios. Exporta a JSON o Excel.

# Actor input Schema

## `diasAtras` (type: `integer`):

Publicados en los últimos N días. Se ignora si indicas 'Fecha desde'.

## `fechaDesde` (type: `string`):

Opcional (AAAA-MM-DD).

## `fechaHasta` (type: `string`):

Opcional (AAAA-MM-DD).

## `palabrasClave` (type: `array`):

Busca en el título y en el comprador. Sin acentos ni mayúsculas.

## `cpv` (type: `array`):

Códigos CPV completos de 8 dígitos (incluye los subcódigos). Ej.: 72000000.

## `tiposAnuncio` (type: `array`):

Vacío = todos.

## `naturaleza` (type: `array`):

Vacío = todas.

## `nuts` (type: `array`):

Prefijos del lugar de ejecución. Ej.: ES51 (Cataluña), ES30 (Madrid).

## `valorMinimo` (type: `integer`):

Suma del valor estimado de los lotes.

## `soloAbiertas` (type: `boolean`):

Descarta las que ya han cerrado.

## `consultaExtra` (type: `string`):

Opcional, para usuarios avanzados. Se añade con AND a la consulta (sintaxis experta de TED).

## `soloNuevos` (type: `boolean`):

Ideal para alertas programadas.

## `maxResultados` (type: `integer`):

Límite de anuncios a devolver.

## Actor input object example

```json
{
  "diasAtras": 3,
  "palabrasClave": [
    "software"
  ],
  "soloAbiertas": false,
  "soloNuevos": false,
  "maxResultados": 100
}
```

# Actor output Schema

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

Todos los registros guardados en el dataset por defecto.

# 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 = {
    "palabrasClave": [
        "software"
    ],
    "maxResultados": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("iscle/licitaciones-europeas-ted-espana").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 = {
    "palabrasClave": ["software"],
    "maxResultados": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("iscle/licitaciones-europeas-ted-espana").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 '{
  "palabrasClave": [
    "software"
  ],
  "maxResultados": 100
}' |
apify call iscle/licitaciones-europeas-ted-espana --silent --output-dataset

```

## MCP server setup

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

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/UgjvfTVDgfcUFMeed/builds/d4eItWkIc5wb1XfS7/openapi.json
