# Alertas de subvenciones y ayudas públicas de España (BDNS) (`inforwebpyme/bdns-subvenciones-alertas`) Actor

Descubre las nuevas convocatorias de subvenciones de España desde la Base de Datos Nacional de Subvenciones (BDNS). Filtra por comunidad autónoma, tipo de beneficiario (pyme, autónomo) y palabras clave, con modo solo nuevas para alertas por email o webhook. Datos oficiales, sin scraping.

- **URL**: https://apify.com/inforwebpyme/bdns-subvenciones-alertas.md
- **Developed by:** [Miguel Romero Luzardo](https://apify.com/inforwebpyme) (community)
- **Categories:** Business, News
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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

## Alertas de subvenciones y ayudas públicas de España (BDNS)

Recibe las nuevas convocatorias de subvenciones y ayudas públicas de España directamente desde la fuente oficial: la **Base de Datos Nacional de Subvenciones** (BDNS/SNPSAP) de la Intervención General de la Administración del Estado. Sin navegador y sin scraping: la API pública oficial que el Estado publica para su reutilización.

### Qué hace

1. Consulta las convocatorias publicadas en los últimos días (ventana configurable de 1 a 60 días).
2. Aplica tus filtros: comunidad autónoma (NUTS), tipo de beneficiario y palabras clave del título.
3. Con el modo **solo nuevas**, devuelve únicamente las convocatorias no entregadas en ejecuciones anteriores: ideal para programarlo cada semana y recibir un aviso por email o webhook.

### Para quién es

Pymes, autónomos, gestorías y consultoras que buscan ayudas públicas para ellos o para sus clientes y no quieren revisar los boletines a mano.

### Cómo se usa

```json
{"regiones":["ES70"],"tiposBeneficiario":["pyme_autonomo"],"palabrasClave":[],"diasAtras":14,"soloNuevas":true,"nombreEstado":"canarias-pymes","maxResultados":50,"incluirDetalle":true}
```

- `regiones`: códigos NUTS del catálogo oficial (ES70 Canarias, ES300 Madrid, ES511 Barcelona...). Vacío = toda España.
- `tiposBeneficiario`: `pyme_autonomo`, `gran_empresa`, `persona_juridica_sin_actividad`, `persona_fisica_sin_actividad`, `sin_informacion`. Vacío = todos.
- `palabrasClave`: se buscan en el título de la convocatoria; basta que coincida una. Vacío = sin filtro de texto.
- `diasAtras`: ventana de 1 a 60 días en todas las ejecuciones. Las convocatorias que salgan de la ventana no se recuperan.
- `soloNuevas`: omite códigos ya entregados; usa un almacén persistente por alerta (hasta 20.000 códigos). No detecta cambios en convocatorias ya vistas.
- `nombreEstado`: identificador de tu alerta; usa uno distinto por búsqueda (p. ej. `canarias-pymes`).
- `maxResultados`: 1-500. Si una búsqueda acumula más, las pendientes salen en ejecuciones posteriores dentro de la ventana.
- `incluirDetalle`: una petición extra por convocatoria para plazos, presupuesto, sectores y enlaces. Desactívalo para listados rápidos y baratos.

### Datos devueltos

codigoBDNS, título, órgano, fecha y, con detalle, presupuesto total, tipos de beneficiarios, regiones, sectores, instrumentos, fechas de solicitud, sede electrónica y enlace a las bases reguladoras. Incluye resumen en español, fuente y fecha de extracción.

Ojo: el campo `abierto` conserva el indicador oficial. Un `false` no confirma que el plazo haya terminado (puede haber plazos futuros o descritos en texto): verifica siempre fechas y bases antes de actuar.

### Cómo usarlo como alerta semanal de subvenciones

1. Configura tus filtros con `soloNuevas` activado y un `nombreEstado` fijo.
2. Guarda la ejecución como tarea programada (Schedule) en Apify, por ejemplo cada lunes.
3. Añade una integración de email o webhook en Apify para recibir las novedades.

### Coste

Actor gratuito: solo pagas el uso estándar de la plataforma (céntimos por ejecución; límites de 120 s y $0,05 por ejecución configurados por defecto). No envía mensajes por sí solo: los avisos se configuran con una tarea programada e integración de Apify.

### Fuente y límites

[API pública oficial BDNS/SNPSAP](https://www.infosubvenciones.es/bdnstrans/doc/swagger), Intervención General de la Administración del Estado. Solo consulta convocatorias, no concesiones con datos personales. Resumen automático: no es asesoramiento ni garantía de elegibilidad. Proyecto independiente, sin patrocinio de la IGAE.

### In English

Alerts of new public grant calls in Spain, straight from the official National Grants Database (BDNS). Filter by region, beneficiary type (SME, self-employed, large company) and keywords; "new only" mode for scheduled email/webhook alerts. Official API, no scraping. Interface and summaries in Spanish.

### Otros Actors del mismo autor

- [Alertas de licitaciones públicas - España (PLACSP) y Europa (TED)](https://apify.com/inforwebpyme/placsp-licitaciones-alertas)
- [Informe de reputación de hoteles y restaurantes (reseñas de Google)](https://apify.com/inforwebpyme/hotel-reputation-report)

# Actor input Schema

## `regiones` (type: `array`):

Codigos NUTS de la BDNS, p. ej. ES70 (Canarias), ES300 (Madrid), ES511 (Barcelona). Vacio = toda España.

## `tiposBeneficiario` (type: `array`):

pyme_autonomo, gran_empresa, persona_juridica_sin_actividad, persona_fisica_sin_actividad, sin_informacion. Vacio = todos.

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

Se buscan en el titulo de la convocatoria; basta con que coincida una. Vacio = sin filtro de texto.

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

Ventana de búsqueda en todas las ejecuciones, con o sin estado. De 1 a 60 días. Las convocatorias que salgan de la ventana no se recuperan.

## `soloNuevas` (type: `boolean`):

Si esta activo, no devuelve convocatorias ya entregadas en ejecuciones anteriores de esta misma tarea (usa almacenamiento con nombre).

## `nombreEstado` (type: `string`):

Identificador para recordar lo ya entregado. Usa uno distinto por alerta (p. ej. canarias-pymes).

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

Numero maximo de convocatorias a devolver (1-500).

## `incluirDetalle` (type: `boolean`):

Una peticion extra por convocatoria para obtener plazos, presupuesto, sectores y enlaces.

## Actor input object example

```json
{
  "regiones": [
    "ES70"
  ],
  "tiposBeneficiario": [
    "pyme_autonomo"
  ],
  "palabrasClave": [],
  "diasAtras": 7,
  "soloNuevas": true,
  "nombreEstado": "default",
  "maxResultados": 50,
  "incluirDetalle": true
}
```

# Actor output Schema

## `overview` (type: `string`):

Tabla con las convocatorias encontradas

# 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 = {
    "regiones": [
        "ES70"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("inforwebpyme/bdns-subvenciones-alertas").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 = { "regiones": ["ES70"] }

# Run the Actor and wait for it to finish
run = client.actor("inforwebpyme/bdns-subvenciones-alertas").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 '{
  "regiones": [
    "ES70"
  ]
}' |
apify call inforwebpyme/bdns-subvenciones-alertas --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,inforwebpyme/bdns-subvenciones-alertas"
        }
    }
}
```

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/KZwXMH2JCWmBtxhud/builds/e4ynHwn6cYwr7BK9s/openapi.json
