{
  "openapi": "3.0.1",
  "info": {
    "title": "Grant Opportunity Finder",
    "description": "Find open and upcoming US federal grants on Grants.gov by keyword, agency or who can apply. Returns award size, total funding, deadline, eligibility and contact, soonest deadline first, and flags new grants and forecasts that just opened.",
    "version": "0.1",
    "x-build-id": "XwaeVDCGfUXHuUxSO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arched_friend~grant-opportunity-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arched_friend-grant-opportunity-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/arched_friend~grant-opportunity-finder/runs": {
      "post": {
        "operationId": "runs-sync-arched_friend-grant-opportunity-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/arched_friend~grant-opportunity-finder/run-sync": {
      "post": {
        "operationId": "run-sync-arched_friend-grant-opportunity-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "What the grant is for, one per line, for example broadband or opioid prevention. Grants.gov matches any of the words, most relevant first, so a single precise word often beats a phrase. Each keyword runs its own search and the results are merged.",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Opportunity status",
            "type": "array",
            "description": "Forecasted grants are announced but not open yet; posted grants are taking applications now.",
            "items": {
              "type": "string",
              "enum": [
                "forecasted",
                "posted",
                "closed",
                "archived"
              ],
              "enumTitles": [
                "Forecasted (coming soon)",
                "Posted (open now)",
                "Closed",
                "Archived"
              ]
            },
            "default": [
              "forecasted",
              "posted"
            ]
          },
          "eligibilities": {
            "title": "Who can apply",
            "type": "array",
            "description": "Only grants open to these applicant types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "00",
                "01",
                "02",
                "04",
                "05",
                "06",
                "07",
                "08",
                "11",
                "12",
                "13",
                "20",
                "21",
                "22",
                "23",
                "25",
                "99"
              ],
              "enumTitles": [
                "State governments",
                "County governments",
                "City or township governments",
                "Special district governments",
                "Independent school districts",
                "Public and state controlled institutions of higher education",
                "Native American tribal governments (federally recognized)",
                "Public housing authorities",
                "Native American tribal organizations (other)",
                "Nonprofits with 501(c)(3) status",
                "Nonprofits without 501(c)(3) status",
                "Private institutions of higher education",
                "Individuals",
                "For-profit organizations other than small businesses",
                "Small businesses",
                "Others",
                "Unrestricted"
              ]
            },
            "default": []
          },
          "fundingCategories": {
            "title": "Funding categories",
            "type": "array",
            "description": "Only grants in these categories. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "AG",
                "AR",
                "BC",
                "CD",
                "CP",
                "DPR",
                "ED",
                "ELT",
                "EN",
                "ENV",
                "FN",
                "HL",
                "HO",
                "HU",
                "IIJ",
                "IS",
                "ISS",
                "LJL",
                "NR",
                "OZ",
                "RT",
                "RD",
                "ST",
                "T",
                "O"
              ],
              "enumTitles": [
                "Agriculture",
                "Arts",
                "Business and Commerce",
                "Community Development",
                "Consumer Protection",
                "Disaster Prevention and Relief",
                "Education",
                "Employment, Labor and Training",
                "Energy",
                "Environment",
                "Food and Nutrition",
                "Health",
                "Housing",
                "Humanities",
                "Infrastructure Investment and Jobs Act",
                "Information and Statistics",
                "Income Security and Social Services",
                "Law, Justice and Legal Services",
                "Natural Resources",
                "Opportunity Zone Benefits",
                "Recreation and Tourism",
                "Regional Development",
                "Science, Technology and R&D",
                "Transportation",
                "Other"
              ]
            },
            "default": []
          },
          "agencies": {
            "title": "Agency codes",
            "type": "array",
            "description": "Optional. Grants.gov agency codes, one per line, for example NSF, HHS-NIH11 or DOE. A top-level code such as DOD includes its sub-agencies.",
            "items": {
              "type": "string"
            }
          },
          "minAwardCeiling": {
            "title": "Minimum award ceiling (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop grants whose largest single award is below this. Grants that state no ceiling are kept, since many agencies leave it blank.",
            "default": 0
          },
          "closingWithinDays": {
            "title": "Closing within N days",
            "minimum": 0,
            "maximum": 730,
            "type": "integer",
            "description": "Only grants whose deadline falls in the next N days. 0 keeps everything, including grants with no stated deadline.",
            "default": 0
          },
          "excludeTerms": {
            "title": "Exclude wording",
            "type": "array",
            "description": "Drop grants whose title, agency or description contains any of these, one per line.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include award size and eligibility",
            "type": "boolean",
            "description": "Reads each grant's full record for award ceiling, total funding, eligibility, description and contact. Turn off for a faster list of titles and deadlines only.",
            "default": true
          },
          "onlyChanged": {
            "title": "Only new and changed grants",
            "type": "boolean",
            "description": "Return nothing on a quiet run. Turn this on for a scheduled search so you only hear about new grants, forecasts that just opened and moved deadlines.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum grants per keyword",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "The most grants to read for each keyword, newest first.",
            "default": 100
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for one answer from Grants.gov before giving up on it.",
            "default": 30
          },
          "timeBudgetSecs": {
            "title": "Time budget (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "How long the run may spend before it returns what it has. Keeps a scheduled run predictable.",
            "default": 150
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}