# Subvenciones España (`fluyeporlaweb/spain-subsidies`) Actor

Convocatorias de subvenciones en España (BDNS): descripción, órgano, nivel y fecha. Filtra por palabra clave para encontrar ayudas de tu sector.

- **URL**: https://apify.com/fluyeporlaweb/spain-subsidies.md
- **Developed by:** [Pablo Navarro](https://apify.com/fluyeporlaweb) (community)
- **Categories:** Lead generation, Automation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 grants

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 Subsidies — grant calls in one feed

Spain publishes grants across BDNS, BOE and 17 regional bulletins. Searching them means visiting five
different sites with five different search boxes.

This Actor returns **grant calls** (BDNS) with description, granting body, level and publication date,
filtered by keyword. The starting point for "can my company apply to anything this month?".

### Output

```json
{"id":"1143424","numero":"941863","title":"ASISTENCIA ECONÓMICA DIRECTA EXCEPCIONAL A FAVOR DEL AYUNTAMIENTO…",
 "level1":"LOCAL","level2":"DIPUTACIÓN PROV. DE ALMERÍA","received_at":"2026-11-12",
 "url":"https://www.infosubvenciones.es/bdnstrans/GE/es/convocatoria/1143424"}
```

### Input

| Field | Default | Notes |
|---|---|---|
| `keywords` | \[] | `eficiencia energética`, `autónomos`, `digitalización` |
| `pages` | 2 | BDNS pages to scan (50 items each) |
| `pageSize` | 50 | 10–100 |
| `maxItems` | 300 | billing per delivered row |

### Use cases

- **Accountants and grant consultants**: daily list of calls by sector.
- **SMEs**: what aid exists for efficiency, hiring or digitalisation.
- **Local authorities and associations**: what peers are publishing.
- **Content**: build a grants directory with fresh data.

### Pricing

Pay per grant call: **~$10 per 1,000**. Empty runs are free.

### Limits

BDNS publishes calls, not the full terms: amounts and deadlines are in the linked official page.
Not every regional grant is federated into BDNS.

### Use cases

- **Prospecting**: daily list of Spanish grant calls filtered by province and sector.
- **Monitoring**: schedule the Actor and diff the dataset to see only what changed.
- **Agents**: call it from n8n, Make, Claude or Cursor through the API or an MCP wrapper.

### FAQ

**What is BDNS?**

The Spanish national subsidy database (Base de Datos Nacional de Subvenciones), where every public grant call must be published.

**Do I get deadlines and amounts?**

The feed includes the call description, granting body, level and publication date; amounts and deadlines are in the linked official page.

**Can I filter by sector?**

Yes, with `keywords` (eficiencia energética, autónomos, digitalización, agricultura…).

**API or MCP?**

Yes: REST API and MCP-friendly input. Ideal for consultancies that send a daily digest.

**Is it only national grants?**

BDNS federates state, regional and local calls, but not every regional bulletin is complete.

# Actor input Schema

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

eficiencia energética, autónomos, digitalización

## `pages` (type: `integer`):

BDNS pages to scan (50 items each).

## `pageSize` (type: `integer`):

Items per page (10-100).

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

Hard cap on delivered rows. Billing is per delivered row.

## Actor input object example

```json
{
  "pages": 2,
  "pageSize": 50,
  "maxItems": 300
}
```

# Actor output Schema

## `id` (type: `string`):

No description

## `numero` (type: `string`):

No description

## `title` (type: `string`):

No description

## `level1` (type: `string`):

No description

## `level2` (type: `string`):

No description

## `level3` (type: `string`):

No description

## `received_at` (type: `string`):

No description

## `url` (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("fluyeporlaweb/spain-subsidies").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("fluyeporlaweb/spain-subsidies").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 fluyeporlaweb/spain-subsidies --silent --output-dataset

```

## MCP server setup

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

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/A8S5c7tHOxYAozmca/builds/TfZtoaXF5aiER8rwE/openapi.json
