# Spain Grants & Subsidies Finder (BDNS + BOE) (`kstro/ayudas-subvenciones-espana`) Actor

Convocatorias de becas, ayudas, subvenciones y premios de España (Estado, CCAA y entidades locales) desde la BDNS y el BOE, con plazos, presupuesto y beneficiarios.

- **URL**: https://apify.com/kstro/ayudas-subvenciones-espana.md
- **Developed by:** [Kstro Data](https://apify.com/kstro) (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 grant founds

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 Grants & Subsidies Finder (BDNS + BOE)

**ES:** Encuentra en segundos las becas, ayudas, subvenciones y premios publicados en España por el Estado, las comunidades autónomas, diputaciones, ayuntamientos y universidades. Lee dos fuentes oficiales y abiertas: la **Base de Datos Nacional de Subvenciones (BDNS)** y el **BOE**.

**EN:** Find grants, scholarships, subsidies and prizes published in Spain (national, regional and local governments, universities) from the official open-data sources BDNS and BOE.

### Qué obtienes / What you get

Por cada convocatoria: título, órgano convocante, administración (Estado, CCAA, local), fecha de publicación, **plazo de solicitud (inicio y fin)**, si el plazo sigue abierto, **presupuesto total**, tipo de beneficiarios, regiones, sectores, finalidad, bases reguladoras y enlace oficial.

### Para quién / Who it's for

- Gestorías, asesorías y consultoras de subvenciones.
- Empresas, autónomos, startups, asociaciones y ONG que buscan financiación.
- Universidades, academias y orientadores que difunden becas.
- Periodistas y analistas de datos públicos.

### Cómo usarlo / How to use

1. Escribe palabras clave (p. ej. `digitalización`, `jóvenes`, `I+D`, `beca`).
2. Elige el periodo (últimos N días o fechas exactas), la administración y, si quieres, una región.
3. Marca "Solo con plazo abierto" para quedarte con lo que aún se puede pedir.
4. Programa una ejecución diaria o semanal en Apify y recibe el resultado por correo, Google Sheets, Slack o webhook con las integraciones de Apify.

### Ejemplo de entrada / Example input

```json
{"palabrasClave": ["digitalización"], "diasAtras": 30, "niveles": ["AUTONOMICA"], "region": "Galicia", "soloAbiertas": true}
```

### Precio / Pricing

Pago por resultado: solo pagas por cada convocatoria entregada.

### Origen de los datos y aviso / Data source and notice

- Datos del Sistema Nacional de Publicidad de Subvenciones y Ayudas Públicas (BDNS) y de la Agencia Estatal Boletín Oficial del Estado, reutilizados conforme a la Ley 37/2007 de reutilización de la información del sector público. Cada resultado indica su origen y su fecha de publicación.
- Herramienta independiente: no está patrocinada ni avalada por ninguna administración pública.
- Solo se extraen convocatorias. No se extraen datos personales de beneficiarios.
- La información oficial puede corregirse después de publicada: comprueba siempre el enlace oficial antes de solicitar una ayuda. Esto no es asesoramiento jurídico ni fiscal.

# Actor input Schema

## `fuentes` (type: `array`):

De dónde sacar las convocatorias.

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

Se busca en el título. Vacío = todo. Ejemplos: beca, jóvenes, I+D, digitalización, emprendimiento.

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

Convocatorias publicadas en los últimos N días (si no se indican fechas).

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

Opcional. Sustituye a Días hacia atrás.

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

Opcional. Por defecto, hoy.

## `niveles` (type: `array`):

Vacío = todas.

## `region` (type: `string`):

Ej.: Galicia, Madrid, A Coruña.

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

Quita las que tienen fecha de fin ya pasada. Las que no indican fecha se mantienen.

## `detalle` (type: `boolean`):

Solo BDNS. Más lento, pero mucho más útil.

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

Número máximo de convocatorias que se devuelven (y se cobran).

## `comprobacion` (type: `boolean`):

Solo para el mantenimiento: comprueba que las dos fuentes responden y no devuelve resultados.

## Actor input object example

```json
{
  "fuentes": [
    "bdns",
    "boe"
  ],
  "palabrasClave": [
    "beca"
  ],
  "diasAtras": 7,
  "soloAbiertas": false,
  "detalle": true,
  "maxResultados": 200,
  "comprobacion": false
}
```

# Actor output Schema

## `convocatorias` (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 = {
    "palabrasClave": [
        "beca"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kstro/ayudas-subvenciones-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": ["beca"] }

# Run the Actor and wait for it to finish
run = client.actor("kstro/ayudas-subvenciones-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": [
    "beca"
  ]
}' |
apify call kstro/ayudas-subvenciones-espana --silent --output-dataset

```

## MCP server setup

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