{
  "openapi": "3.0.1",
  "info": {
    "title": "Spain Grants & Subsidies – Open Calls (BDNS)",
    "description": "Every public grant and subsidy call in Spain from the official BDNS database: status (open, upcoming, closed), real deadlines and days left, budget, region, province, who can apply and official documents. Filter by keyword, region, audience, topic or date. Updated 3 times a day.",
    "version": "0.0",
    "x-build-id": "XxKQ3bmUftODK6ttv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shikimokami~spain-grants-subsidies/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shikimokami-spain-grants-subsidies",
        "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/shikimokami~spain-grants-subsidies/runs": {
      "post": {
        "operationId": "runs-sync-shikimokami-spain-grants-subsidies",
        "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/shikimokami~spain-grants-subsidies/run-sync": {
      "post": {
        "operationId": "run-sync-shikimokami-spain-grants-subsidies",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep grants whose title, organization, topic, sectors or beneficiaries contain ANY of these keywords (in Spanish, accents ignored). A keyword with several words needs all of them, e.g. \"eficiencia energética\", \"digitalización\", \"contratación\", \"alquiler\".",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop grants that contain any of these keywords.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Status",
            "type": "array",
            "description": "Which calls to return. By default, everything you can still apply for: open (official or estimated deadline), deadline to be confirmed, and upcoming.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "openEstimatedDeadline",
                "checkDeadline",
                "upcoming",
                "closed"
              ],
              "enumTitles": [
                "Open (official deadline)",
                "Open (estimated deadline)",
                "Deadline to be confirmed",
                "Upcoming (not open yet)",
                "Closed"
              ]
            },
            "default": [
              "open",
              "openEstimatedDeadline",
              "checkDeadline",
              "upcoming"
            ]
          },
          "audiences": {
            "title": "Who can apply",
            "type": "array",
            "description": "Keep grants open to at least one of these groups.",
            "items": {
              "type": "string",
              "enum": [
                "smesAndSelfEmployed",
                "individuals",
                "nonProfits",
                "largeCompanies"
              ],
              "enumTitles": [
                "SMEs and self-employed (autónomos)",
                "Individuals and families",
                "Associations, foundations, NGOs and other non-profits",
                "Large companies"
              ]
            },
            "default": []
          },
          "regions": {
            "title": "Regions (comunidades autónomas)",
            "type": "array",
            "description": "Grants for these regions, including those of their provinces and town councils.",
            "items": {
              "type": "string",
              "enum": [
                "Andalucía",
                "Aragón",
                "Asturias",
                "Canarias",
                "Cantabria",
                "Castilla y León",
                "Castilla-La Mancha",
                "Cataluña",
                "Ceuta",
                "Comunidad de Madrid",
                "Comunitat Valenciana",
                "Extremadura",
                "Galicia",
                "Illes Balears",
                "La Rioja",
                "Melilla",
                "Navarra",
                "País Vasco",
                "Región de Murcia"
              ],
              "enumTitles": [
                "Andalusia – Andalucía",
                "Aragon – Aragón",
                "Asturias",
                "Canary Islands – Canarias",
                "Cantabria",
                "Castile and León – Castilla y León",
                "Castilla-La Mancha",
                "Catalonia – Cataluña",
                "Ceuta",
                "Madrid (region) – Comunidad de Madrid",
                "Valencian Community – Comunitat Valenciana",
                "Extremadura",
                "Galicia",
                "Balearic Islands – Illes Balears",
                "La Rioja",
                "Melilla",
                "Navarre – Navarra",
                "Basque Country – País Vasco",
                "Murcia (region) – Región de Murcia"
              ]
            },
            "default": []
          },
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "Grants for these provinces, including region-wide calls that cover them.",
            "items": {
              "type": "string",
              "enum": [
                "A Coruña",
                "Álava",
                "Albacete",
                "Alicante",
                "Almería",
                "Asturias",
                "Ávila",
                "Badajoz",
                "Barcelona",
                "Bizkaia",
                "Burgos",
                "Cáceres",
                "Cádiz",
                "Cantabria",
                "Castellón",
                "Ceuta",
                "Ciudad Real",
                "Córdoba",
                "Cuenca",
                "Gipuzkoa",
                "Girona",
                "Granada",
                "Guadalajara",
                "Huelva",
                "Huesca",
                "Illes Balears",
                "Jaén",
                "La Rioja",
                "Las Palmas",
                "León",
                "Lleida",
                "Lugo",
                "Madrid",
                "Málaga",
                "Melilla",
                "Murcia",
                "Navarra",
                "Ourense",
                "Palencia",
                "Pontevedra",
                "Salamanca",
                "Santa Cruz de Tenerife",
                "Segovia",
                "Sevilla",
                "Soria",
                "Tarragona",
                "Teruel",
                "Toledo",
                "Valencia",
                "Valladolid",
                "Zamora",
                "Zaragoza"
              ]
            },
            "default": []
          },
          "includeNationwide": {
            "title": "Include nationwide grants",
            "type": "boolean",
            "description": "When filtering by region or province, also include grants open to the whole of Spain.",
            "default": true
          },
          "administrationLevels": {
            "title": "Granting administration",
            "type": "array",
            "description": "Keep grants from these levels of administration.",
            "items": {
              "type": "string",
              "enum": [
                "state",
                "region",
                "local",
                "otherPublicBody"
              ],
              "enumTitles": [
                "Central Government",
                "Regional government",
                "Local (town and provincial councils, islands)",
                "Other public bodies (universities, chambers, foundations…)"
              ]
            },
            "default": []
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Keep grants about these topics (as classified by the BDNS).",
            "items": {
              "type": "string",
              "enum": [
                "agriculture",
                "culture",
                "defence",
                "education",
                "employment",
                "environment",
                "health",
                "housing",
                "industryEnergy",
                "infrastructure",
                "internationalCooperation",
                "justice",
                "otherBenefits",
                "otherEconomic",
                "publicSafety",
                "research",
                "socialServices",
                "sport",
                "tradeTourismSmes",
                "transport",
                "unemployment"
              ],
              "enumTitles": [
                "Agriculture, fisheries and food",
                "Culture",
                "Defence",
                "Education and scholarships",
                "Employment and hiring",
                "Environment",
                "Health",
                "Housing and construction",
                "Industry and energy",
                "Infrastructure",
                "International cooperation",
                "Justice",
                "Other economic benefits",
                "Other economic measures",
                "Public safety",
                "Research, development and innovation",
                "Social services",
                "Sport",
                "Trade, tourism and SMEs",
                "Transport",
                "Unemployment"
              ]
            },
            "default": []
          },
          "organization": {
            "title": "Granting organization contains",
            "type": "string",
            "description": "e.g. \"Ayuntamiento de Madrid\", \"Diputación\", \"Ministerio de Industria\"."
          },
          "publishedFrom": {
            "title": "Published since",
            "type": "string",
            "description": "Only calls registered on or after this date (YYYY-MM-DD)."
          },
          "publishedInLastDays": {
            "title": "Published in the last days",
            "minimum": 0,
            "type": "integer",
            "description": "Only calls registered in the last N days. Use 1 in a daily schedule to get alerts of new grants. 0 = no limit.",
            "default": 0
          },
          "deadlineWithinDays": {
            "title": "Closing within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Only calls with a known deadline in the next N days. 0 = no limit.",
            "default": 0
          },
          "minBudgetEUR": {
            "title": "Minimum budget (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only calls with at least this total budget.",
            "default": 0
          },
          "euFundedOnly": {
            "title": "EU-funded only",
            "type": "boolean",
            "description": "Only calls co-financed by EU funds (FEDER, FSE+, FEADER, Recovery Plan…).",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "deadline",
              "budget",
              "none"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "newest"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 0,
            "type": "integer",
            "description": "0 = all matching grants.",
            "default": 0
          },
          "includeDocuments": {
            "title": "Include documents",
            "type": "boolean",
            "description": "Add the list of official documents (call text, extracts, forms) with download links.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}