{
  "openapi": "3.0.1",
  "info": {
    "title": "Grants & Funding Monitor",
    "description": "Find open grants and calls for proposals from Grants.gov, the EU Funding & Tenders Portal and any funder website or RSS feed. Deadlines, amounts, eligibility, country fit, relevance to your organisation, new-call alerts and a deadline calendar.",
    "version": "1.0",
    "x-build-id": "hopdVcJQ1S3biUgKZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/codepal~grants-funding-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-codepal-grants-funding-monitor",
        "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/codepal~grants-funding-monitor/runs": {
      "post": {
        "operationId": "runs-sync-codepal-grants-funding-monitor",
        "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/codepal~grants-funding-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-codepal-grants-funding-monitor",
        "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": {
          "builtInSources": {
            "title": "Built-in sources",
            "type": "array",
            "description": "Official databases searched through their APIs. Grants.gov lists US federal grants (many are open to foreign organisations); the EU portal covers Horizon Europe, LIFE, Erasmus+, Creative Europe, Digital Europe, EU4Health, cascade funding and more.",
            "items": {
              "type": "string",
              "enum": [
                "grants-gov",
                "eu-funding-tenders"
              ],
              "enumTitles": [
                "Grants.gov (US federal)",
                "EU Funding & Tenders Portal"
              ]
            },
            "default": [
              "grants-gov",
              "eu-funding-tenders"
            ]
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Searched in the built-in sources, e.g. 'climate adaptation', 'malaria', 'digital skills'. Leave empty to get all open calls (capped by 'Max results per source').",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Funder pages & feeds",
            "type": "array",
            "description": "Grant or opportunity pages of foundations, development agencies, embassies and African funds, or any RSS/Atom feed of calls. A Grants.gov or EU portal search URL also works (its keywords are used). Optional label: userData {\"funder\": \"Name\"}.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxResultsPerSource": {
            "title": "Max results per source",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many calls to read from each built-in source.",
            "default": 300
          },
          "keywords": {
            "title": "Must contain any of",
            "type": "array",
            "description": "Keep only opportunities whose title, description, eligibility or funder contains at least one of these words.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude if contains",
            "type": "array",
            "description": "Drop opportunities mentioning any of these words.",
            "items": {
              "type": "string"
            }
          },
          "themes": {
            "title": "Themes",
            "type": "array",
            "description": "Keep only these themes (detected from the text).",
            "items": {
              "type": "string",
              "enum": [
                "climate-environment",
                "energy",
                "agriculture-food",
                "health",
                "education",
                "research-science",
                "technology-innovation",
                "entrepreneurship-sme",
                "gender-women",
                "youth",
                "civil-society-governance",
                "water-sanitation",
                "arts-culture",
                "humanitarian-migration",
                "infrastructure-urban",
                "other"
              ],
              "enumTitles": [
                "Climate & environment",
                "Energy",
                "Agriculture & food",
                "Health",
                "Education & skills",
                "Research & science",
                "Technology & innovation",
                "Entrepreneurship & SMEs",
                "Gender & women",
                "Youth & children",
                "Civil society, governance & media",
                "Water & sanitation",
                "Arts & culture",
                "Humanitarian & migration",
                "Infrastructure & urban",
                "Other"
              ]
            }
          },
          "applicantTypes": {
            "title": "Who is applying",
            "type": "array",
            "description": "Keep calls open to these applicant types. Calls that don't state applicant types are kept.",
            "items": {
              "type": "string",
              "enum": [
                "nonprofit",
                "business",
                "university-research",
                "government",
                "individual",
                "international-org"
              ],
              "enumTitles": [
                "Non-profit / NGO",
                "Business / SME / startup",
                "University / research",
                "Government / public body",
                "Individual",
                "International organisation"
              ]
            }
          },
          "fundingTypes": {
            "title": "Funding types",
            "type": "array",
            "description": "Keep only these types.",
            "items": {
              "type": "string",
              "enum": [
                "grant",
                "cooperative-agreement",
                "fellowship",
                "prize",
                "loan",
                "equity",
                "procurement"
              ],
              "enumTitles": [
                "Grant",
                "Cooperative agreement",
                "Fellowship / scholarship",
                "Prize / competition",
                "Loan",
                "Equity / investment",
                "Procurement"
              ]
            }
          },
          "eligibleCountry": {
            "title": "Your country",
            "type": "string",
            "description": "e.g. Kenya. Each call gets a 'country_eligibility' tag (eligible_mentioned, region_mentioned, global, restricted_elsewhere, unknown)."
          },
          "countryMode": {
            "title": "Country filter",
            "enum": [
              "exclude-restricted",
              "mentioned-only",
              "tag-only"
            ],
            "type": "string",
            "description": "How to use your country.",
            "default": "exclude-restricted"
          },
          "minAmount": {
            "title": "Minimum award amount",
            "minimum": 0,
            "type": "integer",
            "description": "Drop calls whose maximum award (or total budget) is below this, in the call's own currency. Calls without an amount are kept.",
            "default": 0
          },
          "onlyOpen": {
            "title": "Only open calls",
            "type": "boolean",
            "description": "Drop calls whose deadline has passed.",
            "default": true
          },
          "includeForthcoming": {
            "title": "Include forthcoming calls",
            "type": "boolean",
            "description": "Include calls announced but not yet open (Grants.gov forecasts, EU forthcoming topics), so you can prepare early.",
            "default": true
          },
          "closingWithinDays": {
            "title": "Deadline within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Only calls with a deadline in the next N days. 0 = no limit.",
            "default": 0
          },
          "minDaysToDeadline": {
            "title": "At least N days to prepare",
            "minimum": 0,
            "type": "integer",
            "description": "Drop calls closing sooner than this. 0 = no limit.",
            "default": 0
          },
          "organizationProfile": {
            "title": "Your organisation (for fit score)",
            "type": "string",
            "description": "A few sentences about what you do, where and for whom. Each call gets a 'relevance_score' (0–100) and the matched words."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "deadline",
              "relevance",
              "amount",
              "newest"
            ],
            "type": "string",
            "description": "Order of results.",
            "default": "deadline"
          },
          "onlyNew": {
            "title": "Only new or changed since last run",
            "type": "boolean",
            "description": "For scheduled monitoring: output only calls that are new or whose deadline, amount or status changed.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Runs with the same name share memory of what was already seen.",
            "default": "default"
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Receives new/updated calls after each run (except the first). Works with Slack, Teams, Discord, Zapier, Make, n8n."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Upper limit on opportunities saved (and charged) per run.",
            "default": 1000
          },
          "maxPagesPerSite": {
            "title": "Listing pages per funder site",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Follows 'Next' links on funder pages up to this many pages.",
            "default": 2
          },
          "maxDetailPages": {
            "title": "Call pages to open",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Funder sites usually show amount and eligibility only on each call's own page. Total call pages to open per run.",
            "default": 40
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Used for funder websites only (the official APIs don't need it).",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}