# Spain Grant Calls (Subvenciones y Ayudas BDNS / SNPSAP) (`innovito/bdns-convocatorias`) Actor

Official Spanish public grant and subsidy calls (convocatorias de subvenciones y ayudas) from the SNPSAP / BDNS Open Data API. Issuing body, dates and official listing link. Calls only — not awards (concesiones) to individual beneficiaries.

- **URL**: https://apify.com/innovito/bdns-convocatorias.md
- **Developed by:** [Asier Sanchez](https://apify.com/innovito) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 50.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 grant calls

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 Grant Calls (Subvenciones y Ayudas, BDNS / SNPSAP)

Get official **Spanish public grant calls** (convocatorias de subvenciones y ayudas) from the National Grants Database as clean JSON or CSV rows.

The Actor calls the **official BDNS / SNPSAP Open Data API**. No HTML scraping of the website, no login and no API key. It returns **calls only** (convocatorias). It does **not** fetch awarded grants or beneficiaries (`concesiones`).

Ideal for consultancies, NGOs, SMEs looking for subsidies, grant-monitoring tools and AI/MCP or n8n agents that need the official convocatoria.

### What you get

| Field | Description |
|---|---|
| `callId`, `bdnsNumber` | Official BDNS identifiers |
| `title` | Official title of the grant call |
| `description` | Description when the search listing includes one |
| `grantingBody`, `administrationLevel` | Awarding body and administration level |
| `region` | Territory (e.g. Cataluña, Madrid) |
| `regulation` | Legal basis when present |
| `budgetEur` | Budget in euro when published |
| `publicationDate`, `applicationStartDate`, `applicationEndDate` | Dates of the call |
| `officialUrl` | Official BDNS record |
| `sourceAttribution` | Required credit line |

### Input example

```json
{
  "maxItems": 20,
  "startDateFrom": "2026-11-01",
  "keywords": ["digitalización", "pymes", "innovación"],
  "regions": ["Cataluña"]
}
```

Date filters apply to the start of the application window. The official search listing is the data source (detail endpoints are not always available).

### Output example

```json
{
  "callId": "1234567",
  "bdnsNumber": "876543",
  "title": "Ayudas a la digitalización de pymes en Cataluña",
  "description": "Convocatoria de subvenciones para proyectos de digitalización de pymes.",
  "grantingBody": "Generalitat de Catalunya",
  "administrationLevel": "Comunidad Autónoma",
  "region": "Cataluña",
  "regulation": "Orden de 2026 por la que se aprueban las bases",
  "budgetEur": 2500000.0,
  "publicationDate": "2026-11-05",
  "applicationStartDate": "2026-11-10",
  "applicationEndDate": "2026-12-15",
  "officialUrl": "https://www.infosubvenciones.es/bdnstrans/GE/es/convocatoria/1234567",
  "sourceAttribution": "Fuente: Base de Datos Nacional de Subvenciones (BDNS / SNPSAP). https://www.infosubvenciones.es",
  "scrapedAt": "2026-11-23T21:00:00+00:00"
}
```

### Python example (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("innovito/bdns-convocatorias").call(
    run_input={
        "maxItems": 20,
        "startDateFrom": "2026-11-01",
        "keywords": ["digitalización", "pymes", "innovación"],
        "regions": ["Cataluña"],
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("bdnsNumber"), item["title"], item.get("officialUrl"))
```

### Pricing

Pay-per-event: $1.50 per 1,000 grant calls written to the dataset, plus $0.00005 per Actor start. You are not charged for platform compute.

### Data source and terms

- Official search API: `https://www.infosubvenciones.es/bdnstrans/api/convocatorias/busqueda` ([BDNS open data](https://www.infosubvenciones.es/bdnstrans/GE/es/convocatorias)). Rate limit: 10 GET/s.
- Credit the Base de Datos Nacional de Subvenciones (BDNS / SNPSAP). Do not present this Actor as an official ministry product.
- The HTML portal at pap.hacienda.gob.es has `Disallow: /` in `robots.txt`. This Actor **does not** call that host.
- This Actor lists **convocatorias** only. It does not fetch `concesiones` (awarded grants / beneficiaries).

***

## Convocatorias de subvenciones y ayudas de España (BDNS / SNPSAP)

Extrae las **convocatorias oficiales de subvenciones y ayudas públicas** de la Base de Datos Nacional de Subvenciones en filas JSON o CSV.

Usa la **API oficial de datos abiertos de la BDNS / SNPSAP**. Sin scraping HTML, sin inicio de sesión y sin clave. Devuelve **solo convocatorias**. **No** descarga concesiones ni beneficiarios.

Ideal para consultoras, ONG, pymes que buscan ayudas, vigilancia de subvenciones y agentes de IA, MCP o n8n que necesitan la convocatoria oficial.

### Qué devuelve

| Campo | Descripción |
|---|---|
| `callId`, `bdnsNumber` | Identificadores oficiales de la BDNS |
| `title` | Título oficial de la convocatoria |
| `description` | Descripción, si el listado de búsqueda la incluye |
| `grantingBody`, `administrationLevel` | Órgano concedente y nivel de administración |
| `region` | Territorio (p. ej. Cataluña, Madrid) |
| `regulation` | Base jurídica, si consta |
| `budgetEur` | Presupuesto en euros, si se publica |
| `publicationDate`, `applicationStartDate`, `applicationEndDate` | Fechas de la convocatoria |
| `officialUrl` | Ficha oficial en la BDNS |
| `sourceAttribution` | Línea de atribución obligatoria |

### Ejemplo de entrada

```json
{
  "maxItems": 20,
  "startDateFrom": "2026-11-01",
  "keywords": ["digitalización", "pymes", "innovación"],
  "regions": ["Cataluña"]
}
```

Los filtros de fecha se aplican al inicio del plazo de solicitud. La fuente es el listado oficial de búsqueda (los endpoints de detalle no siempre están disponibles).

### Ejemplo de salida

```json
{
  "callId": "1234567",
  "bdnsNumber": "876543",
  "title": "Ayudas a la digitalización de pymes en Cataluña",
  "grantingBody": "Generalitat de Catalunya",
  "region": "Cataluña",
  "budgetEur": 2500000.0,
  "applicationStartDate": "2026-11-10",
  "applicationEndDate": "2026-12-15",
  "officialUrl": "https://www.infosubvenciones.es/bdnstrans/GE/es/convocatoria/1234567",
  "sourceAttribution": "Fuente: Base de Datos Nacional de Subvenciones (BDNS / SNPSAP). https://www.infosubvenciones.es"
}
```

### Ejemplo en Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("innovito/bdns-convocatorias").call(
    run_input={
        "maxItems": 20,
        "startDateFrom": "2026-11-01",
        "keywords": ["digitalización", "pymes", "innovación"],
        "regions": ["Cataluña"],
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("bdnsNumber"), item["title"], item.get("officialUrl"))
```

### Precio

Pago por uso: 1,50 $ por cada 1.000 convocatorias escritas en el dataset, más 0,00005 $ por arranque. No se cobra el cómputo de la plataforma.

### Origen y condiciones

- API oficial de búsqueda: `https://www.infosubvenciones.es/bdnstrans/api/convocatorias/busqueda` ([datos abiertos de la BDNS](https://www.infosubvenciones.es/bdnstrans/GE/es/convocatorias)). Límite: 10 GET/s.
- Hay que citar a la Base de Datos Nacional de Subvenciones (BDNS / SNPSAP). Este Actor no es un producto oficial del ministerio.
- El portal HTML de pap.hacienda.gob.es tiene `Disallow: /` en `robots.txt`. Este Actor **no** llama a ese dominio.
- Solo lista **convocatorias**. No descarga `concesiones` (ayudas concedidas / beneficiarios).

# Actor input Schema

## `dateFrom` (type: `string`):

First recepción date (YYYY-MM-DD). If empty, the Actor looks back <code>lookbackDays</code> from the end date.

## `dateTo` (type: `string`):

Last recepción date (YYYY-MM-DD). Defaults to today (UTC).

## `lookbackDays` (type: `integer`):

When <code>dateFrom</code> is empty, how many days to request ending at <code>dateTo</code>. Capped at 62.

## `administrationLevels` (type: `array`):

Optional filter on <code>nivel1</code>, e.g. <code>ESTATAL</code>, <code>AUTONOMICA</code>, <code>LOCAL</code>. Empty = all levels. Typical Spanish values: <code>ESTATAL</code>, <code>AUTONOMICA</code> (CCAA), <code>LOCAL</code>.

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

Keep calls whose title or granting body contains one of these words. Spanish examples: <code>digitalización</code>, <code>formación</code>, <code>sequía</code>, <code>ventas</code>.

## `maxItems` (type: `integer`):

Stop after this many calls. 0 = no item cap (still limited by max pages).

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

Each page has up to 100 calls. Capped at 20. The official API allows larger pages; this Actor stays modest and respects the 10 GET/s courtesy limit (sequential calls only).

## Actor input object example

```json
{
  "lookbackDays": 7,
  "maxItems": 50,
  "maxPages": 5
}
```

# Actor output Schema

## `calls` (type: `string`):

Dataset of official Spanish public grant and subsidy calls (convocatorias) from the SNPSAP / BDNS API (one row per call). Awards (concesiones) to individual beneficiaries are not included.

## `runStats` (type: `string`):

RUN_STATS record: pages fetched, totalElements from the API, calls parsed and pushed.

# 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("innovito/bdns-convocatorias").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("innovito/bdns-convocatorias").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 innovito/bdns-convocatorias --silent --output-dataset

```

## MCP server setup

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

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/V3BdlykECJgEXcCGn/builds/VeAIbevwZEKc28vBd/openapi.json
