{
  "openapi": "3.0.1",
  "info": {
    "title": "Spain & EU Grants Finder: Subsidies, Prizes, Scholarships",
    "description": "Find open grants, prizes, scholarships and calls from Spain's BOE and the EU Funding & Tenders Portal, with who can apply, budget, deadline and requirements split into fields. Filter by sector and applicant type.",
    "version": "0.0",
    "x-build-id": "RouTQb71xXBWEkDfh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nemata~spain-eu-grants-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nemata-spain-eu-grants-finder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/nemata~spain-eu-grants-finder/runs": {
      "post": {
        "operationId": "runs-sync-nemata-spain-eu-grants-finder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/nemata~spain-eu-grants-finder/run-sync": {
      "post": {
        "operationId": "run-sync-nemata-spain-eu-grants-finder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "spain: State calls published in the BOE. regions: calls of the 17 autonomous communities, Ceuta and Melilla from the official National Grants Database (BDNS). eu: calls, prizes and cascade funding from the EU Funding & Tenders Portal.",
            "items": {
              "type": "string",
              "enum": [
                "spain",
                "regions",
                "eu"
              ],
              "enumTitles": [
                "Spain: State (BOE)",
                "Spain: autonomous communities (BDNS)",
                "European Union (Funding & Tenders Portal)"
              ]
            },
            "default": [
              "spain",
              "regions",
              "eu"
            ]
          },
          "regions": {
            "title": "Autonomous communities",
            "type": "array",
            "description": "Only calls of these communities (State and EU calls are always included). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "andalucia",
                "aragon",
                "asturias",
                "baleares",
                "canarias",
                "cantabria",
                "castilla_la_mancha",
                "castilla_y_leon",
                "cataluna",
                "ceuta",
                "comunidad_valenciana",
                "extremadura",
                "galicia",
                "la_rioja",
                "madrid",
                "melilla",
                "murcia",
                "navarra",
                "pais_vasco"
              ],
              "enumTitles": [
                "Andalucía",
                "Aragón",
                "Asturias",
                "Illes Balears",
                "Canarias",
                "Cantabria",
                "Castilla-La Mancha",
                "Castilla y León",
                "Cataluña",
                "Ceuta",
                "Comunitat Valenciana",
                "Extremadura",
                "Galicia",
                "La Rioja",
                "Comunidad de Madrid",
                "Melilla",
                "Región de Murcia",
                "Navarra",
                "País Vasco"
              ]
            }
          },
          "includeLocal": {
            "title": "Include local calls (city and provincial councils)",
            "type": "boolean",
            "description": "Also return calls of ayuntamientos, diputaciones, cabildos and consells from the BDNS. Many more results.",
            "default": false
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional. Words to find in the title, purpose or eligibility, in Spanish or English (e.g. 'artes plásticas', 'digitalización', 'creative'). Accents and case are ignored.",
            "items": {
              "type": "string"
            }
          },
          "sectors": {
            "title": "Sectors",
            "type": "array",
            "description": "Only calls about these sectors. Leave empty for all. 'Digital' means digital technology (AI, data, cybersecurity, connectivity). For digital or new media art, choose 'Culture & arts' and add keywords such as 'arte digital' or 'new media'.",
            "items": {
              "type": "string",
              "enum": [
                "culture",
                "education",
                "employment_training",
                "research_innovation",
                "digital",
                "energy",
                "environment_climate",
                "agriculture_fisheries_food",
                "health",
                "social_inclusion",
                "business_sme",
                "tourism",
                "transport_mobility",
                "housing_urban",
                "sport",
                "international_cooperation",
                "security_defence"
              ],
              "enumTitles": [
                "Culture & arts / Cultura y artes",
                "Education / Educación",
                "Employment & training / Empleo y formación",
                "Research & innovation / I+D+i",
                "Digital / Digital",
                "Energy / Energía",
                "Environment & climate / Medio ambiente",
                "Agriculture, fisheries & food / Agro, pesca y alimentación",
                "Health / Salud",
                "Social & inclusion / Social",
                "Business & SMEs / Empresa y pymes",
                "Tourism / Turismo",
                "Transport & mobility / Transporte",
                "Housing & urban / Vivienda",
                "Sport / Deporte",
                "International cooperation / Cooperación",
                "Security & defence / Seguridad"
              ]
            }
          },
          "beneficiaryTypes": {
            "title": "Who can apply",
            "type": "array",
            "description": "Only calls open to these applicants (detected from the eligibility text). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "smes",
                "self_employed",
                "companies",
                "nonprofits",
                "individuals",
                "public_bodies",
                "universities_research",
                "schools",
                "cooperatives_social_economy",
                "producer_organisations"
              ],
              "enumTitles": [
                "SMEs / Pymes",
                "Self-employed / Autónomos",
                "Companies / Empresas",
                "Non-profits / Asociaciones y fundaciones",
                "Individuals (artists, students, researchers) / Personas físicas",
                "Public bodies / Administraciones",
                "Universities & research centres",
                "Schools / Centros educativos",
                "Cooperatives & social economy",
                "Producer organisations"
              ]
            }
          },
          "types": {
            "title": "Type of call",
            "type": "array",
            "description": "Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "grant",
                "prize",
                "scholarship",
                "training_course",
                "cascade_funding"
              ],
              "enumTitles": [
                "Grants / Subvenciones y ayudas",
                "Prizes & competitions / Premios y concursos",
                "Scholarships / Becas",
                "Training courses / Cursos",
                "Cascade funding (EU open calls for SMEs)"
              ]
            }
          },
          "statuses": {
            "title": "Status",
            "type": "array",
            "description": "Open, forthcoming or closed calls. 'Deadline not stated' covers Spanish calls whose deadline depends on another publication. Default: open, forthcoming and not stated.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "forthcoming",
                "unknown",
                "closed"
              ],
              "enumTitles": [
                "Open / Abierta",
                "Forthcoming / Próxima",
                "Deadline not stated / Plazo sin fecha",
                "Closed / Cerrada"
              ]
            },
            "default": [
              "open",
              "forthcoming",
              "unknown"
            ]
          },
          "minBudgetEur": {
            "title": "Minimum total budget (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Skip calls with a smaller total budget."
          },
          "spainDaysBack": {
            "title": "Spain (BOE): days back to read",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "How many days of the BOE to read (max 120). For a daily alert, 2 is enough.",
            "default": 30
          },
          "regionalDaysBack": {
            "title": "Regional: calls registered in the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Regional and local calls registered in the National Grants Database in this period (max 365). Calls are registered when they are approved and can stay open for months: 120 days catches most open calls; use 365 together with a sector or community filter to be thorough. For a daily alert, 3 is enough.",
            "default": 120
          },
          "includeOtherSpanishCalls": {
            "title": "Spain: include prize and scholarship resolutions",
            "type": "boolean",
            "description": "Also read BOE section III resolutions that call prizes, scholarships, courses or grants (not only the standard extracts).",
            "default": true
          },
          "euMaxScanned": {
            "title": "EU: maximum calls to scan",
            "minimum": 100,
            "maximum": 3000,
            "type": "integer",
            "description": "How many EU portal calls to scan before filtering (the portal lists about 1,000 open calls).",
            "default": 1500
          },
          "onlyNew": {
            "title": "Only new calls (alerts)",
            "type": "boolean",
            "description": "Return only calls not returned in earlier runs with the same alert name. Schedule the Actor daily or weekly.",
            "default": false
          },
          "alertName": {
            "title": "Alert name",
            "type": "string",
            "description": "Keeps a separate memory per alert when 'Only new calls' is on.",
            "default": "default"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Stop after this many results."
          },
          "maxRegionalCalls": {
            "title": "Regional: maximum calls to read",
            "minimum": 50,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit of regional and local calls read in detail per run, after skipping direct and nominative grants.",
            "default": 1500
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}