{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Grants & Contracts Recipients (FTS)",
    "description": "Who gets money from the EU budget? Grants, service contracts and procurement awarded directly by the European Commission (Horizon Europe, Erasmus+, Digital Europe, development aid …): beneficiary, VAT, address, amount, programme, project, dates. Official FTS open data, CC BY 4.0.",
    "version": "1.0",
    "x-build-id": "fFIhAQKTdj8pvkm9Q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dach-open-data~eu-grants-contracts-fts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dach-open-data-eu-grants-contracts-fts",
        "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/dach-open-data~eu-grants-contracts-fts/runs": {
      "post": {
        "operationId": "runs-sync-dach-open-data-eu-grants-contracts-fts",
        "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/dach-open-data~eu-grants-contracts-fts/run-sync": {
      "post": {
        "operationId": "run-sync-dach-open-data-eu-grants-contracts-fts",
        "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": {
          "years": {
            "title": "Budget years",
            "type": "array",
            "description": "Commitment years 2007 to last year, e.g. 2025, 2024. Empty = the latest published year (the Commission publishes a year around mid of the following year). Each year has 80,000–110,000 rows; max. 5 years per run.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Beneficiary countries",
            "type": "array",
            "description": "ISO codes (DE, AT, CH, FR, …; EL/UK also accepted) or English names. Empty = all countries.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search words",
            "type": "string",
            "description": "All words must appear in beneficiary name, subject/project title, programme, project acronym or budget line, e.g. \"hydrogen\", \"battery\", \"university\". Case-insensitive.",
            "default": ""
          },
          "beneficiaryContains": {
            "title": "Beneficiary name contains",
            "type": "string",
            "description": "Only recipients whose (legal) name contains this text, e.g. \"Fraunhofer\", \"Siemens\", \"GmbH\".",
            "default": ""
          },
          "programmes": {
            "title": "Programmes",
            "type": "array",
            "description": "Programme names or parts of them, e.g. \"Horizon Europe\", \"Erasmus+\", \"Digital Europe\", \"LIFE\", \"Connecting Europe Facility\", \"EU4Health\", \"Global Europe\", \"Innovation Fund\". Empty = all programmes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "contractTypes": {
            "title": "Types of contract",
            "type": "array",
            "description": "Part of the name is enough, e.g. \"Action Grant\", \"Operating Grant\", \"Prizes\", \"Contribution Agreements\", \"Advisory\" (consulting, studies, evaluations, R&D services), \"IT\" (software development and operations), \"Events\", \"Communication\", \"Building\", \"Training\". Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "beneficiaryTypes": {
            "title": "Types of beneficiary",
            "type": "array",
            "description": "E.g. \"Private Companies\" (companies, associations, universities, foundations), \"Other public bodies\", \"International Organisations\", \"Member States\", \"Regions-Provinces\", \"Third States\". Private persons are never returned.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minAmountEur": {
            "title": "Minimum amount (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only rows where the beneficiary's contracted amount is at least this value.",
            "default": 0
          },
          "skipZeroAmounts": {
            "title": "Skip rows without an amount",
            "type": "boolean",
            "description": "Skip rows whose contracted amount is 0 or not published (e.g. unfunded associated partners, about 3% of rows).",
            "default": true
          },
          "excludeEuBodies": {
            "title": "Exclude EU institutions and agencies",
            "type": "boolean",
            "description": "Skip transfers to EU institutions, EU agencies, Joint Undertakings, EIB and EIF (internal EU money flows). Recommended for sales and market research.",
            "default": true
          },
          "includeAddress": {
            "title": "Include street address",
            "type": "boolean",
            "description": "Include street and postal code of the recipient (city, region and country are always included).",
            "default": true
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on rows returned and charged in this run.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}