{
 "openapi": "3.1.0",
 "info": {
  "title": "Open Funding API",
  "version": "1.0.0",
  "description": "Free, keyless, CORS-enabled JSON API for money opportunities: open online hackathons with cash prizes (Devpost + devhunt), open and forthcoming EU funding calls (EU Funding & Tenders Portal: Horizon Europe, EIC, Digital Europe, Erasmus+, LIFE, cascade-funding open calls) and Luxembourg public tenders (pmp.b2g.etat.lu). Refreshed every few hours. Unofficial; always verify on the official source.",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 },
 "servers": [
  {
   "url": "https://open-funding-api.pages.dev"
  }
 ],
 "paths": {
  "/v1/hackathons": {
   "get": {
    "operationId": "listHackathons",
    "summary": "Open online hackathons with cash prizes",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Words matched in title, organizer, themes.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "theme",
      "in": "query",
      "required": false,
      "description": "Theme substring, e.g. \"AI\", \"Web3\", \"Health\".",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "min_prize_usd",
      "in": "query",
      "required": false,
      "description": "Minimum total prize pool in USD.",
      "schema": {
       "type": "number"
      }
     },
     {
      "name": "closing_within_days",
      "in": "query",
      "required": false,
      "description": "Only items whose deadline is within N days.",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "online_only",
      "in": "query",
      "required": false,
      "description": "Only online events.",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "description": "open (default), upcoming or any.",
      "schema": {
       "type": "string",
       "enum": [
        "open",
        "upcoming",
        "any"
       ]
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "deadline (default) or prize.",
      "schema": {
       "type": "string",
       "enum": [
        "deadline",
        "prize"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max items, 1-200 (default 25).",
      "schema": {
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Hackathons",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "updated": {
           "type": "string"
          },
          "source": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "items": {
           "type": "array",
           "items": {
            "type": "object"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/v1/eu-funding-calls": {
   "get": {
    "operationId": "listEuFundingCalls",
    "summary": "Open and forthcoming EU grant calls",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "All words must match topic ID, title, keywords or summary, e.g. \"hydrogen\", \"AI health\".",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "programme",
      "in": "query",
      "required": false,
      "description": "Programme code or name, e.g. HORIZON, DIGITAL, ERASMUS, LIFE, CEF, EIC, MSCA.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "status",
      "in": "query",
      "required": false,
      "description": "open, forthcoming or any (default).",
      "schema": {
       "type": "string",
       "enum": [
        "open",
        "forthcoming",
        "any"
       ]
      }
     },
     {
      "name": "closing_within_days",
      "in": "query",
      "required": false,
      "description": "Only items whose deadline is within N days.",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "min_budget_eur",
      "in": "query",
      "required": false,
      "description": "Minimum topic budget (EUR).",
      "schema": {
       "type": "number"
      }
     },
     {
      "name": "sme_startup_only",
      "in": "query",
      "required": false,
      "description": "Only SME/startup-relevant calls.",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "description": "call_topic, cascade_funding or external_action_call.",
      "schema": {
       "type": "string",
       "enum": [
        "call_topic",
        "cascade_funding",
        "external_action_call"
       ]
      }
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "description": "deadline (default) or budget.",
      "schema": {
       "type": "string",
       "enum": [
        "deadline",
        "budget"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max items, 1-200 (default 25).",
      "schema": {
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "EU funding calls; each item has a \"details\" URL with the full description and conditions.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "updated": {
           "type": "string"
          },
          "source": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "items": {
           "type": "array",
           "items": {
            "type": "object"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/v1/lu-tenders": {
   "get": {
    "operationId": "listLuxembourgTenders",
    "summary": "Open Luxembourg public procurement tenders",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Accent-insensitive words matched in title/object/buyer (French).",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "category",
      "in": "query",
      "required": false,
      "description": "works, services or supplies.",
      "schema": {
       "type": "string",
       "enum": [
        "works",
        "services",
        "supplies"
       ]
      }
     },
     {
      "name": "closing_within_days",
      "in": "query",
      "required": false,
      "description": "Only items whose deadline is within N days.",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max items, 1-200 (default 25).",
      "schema": {
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Tenders, newest first",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "updated": {
           "type": "string"
          },
          "source": {
           "type": "string"
          },
          "total": {
           "type": "integer"
          },
          "items": {
           "type": "array",
           "items": {
            "type": "object"
           }
          }
         }
        }
       }
      }
     }
    }
   }
  }
 }
}