{
  "openapi": "3.0.1",
  "info": {
    "title": "Grants.gov New Opportunity Alerts — Keyword Watch for US Grants",
    "description": "Schedule it and receive only the NEW US federal grant opportunities matching your keywords since the last run, plus forecasts that just opened. Official Grants.gov API, amounts and eligibility included, Slack, Discord or webhook alerts.",
    "version": "0.1",
    "x-build-id": "FzRZClOZuPZSd2iaH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/openregistry~us-grants-new-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-openregistry-us-grants-new-alerts",
        "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/openregistry~us-grants-new-alerts/runs": {
      "post": {
        "operationId": "runs-sync-openregistry-us-grants-new-alerts",
        "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/openregistry~us-grants-new-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-openregistry-us-grants-new-alerts",
        "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": "One search per keyword (Grants.gov full-text search). An opportunity matching several keywords is delivered once, with all its matched keywords.",
            "items": {
              "type": "string"
            }
          },
          "watchlistName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Recommended for schedules. The memory of what was already delivered is stored under this name, so you can edit keywords and filters without receiving everything again. Leave empty and the memory is tied to the exact input."
          },
          "firstRunDays": {
            "title": "First run: deliver opportunities posted in the last N days",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "On the very first run, opportunities posted in the last N days are delivered and everything older is recorded as already known. 0 = deliver nothing on the first run, only set the baseline.",
            "default": 7
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Agency codes, e.g. HHS, NSF, DOD, USDA, DOE, ED, EPA, NASA, or a sub-agency such as HHS-NIH11 or DOD-DARPA. A code includes all its sub-agencies.",
            "items": {
              "type": "string"
            }
          },
          "fundingCategories": {
            "title": "Funding categories",
            "type": "array",
            "description": "Keep opportunities in any of these categories.",
            "items": {
              "type": "string",
              "enum": [
                "AG",
                "AR",
                "BC",
                "CD",
                "CP",
                "DPR",
                "ED",
                "ELT",
                "EN",
                "EIC",
                "ENV",
                "FN",
                "HL",
                "HO",
                "HU",
                "ISS",
                "IS",
                "IIJ",
                "LJL",
                "NR",
                "OZ",
                "RT",
                "RD",
                "ST",
                "T",
                "ACA",
                "RA",
                "O"
              ],
              "enumTitles": [
                "Agriculture",
                "Arts",
                "Business and Commerce",
                "Community Development",
                "Consumer Protection",
                "Disaster Prevention and Relief",
                "Education",
                "Employment, Labor and Training",
                "Energy",
                "Energy Infrastructure and Critical Minerals",
                "Environment",
                "Food and Nutrition",
                "Health",
                "Housing",
                "Humanities",
                "Income Security and Social Services",
                "Information and Statistics",
                "Infrastructure Investment and Jobs Act",
                "Law, Justice and Legal Services",
                "Natural Resources",
                "Opportunity Zone Benefits",
                "Recreation and Tourism",
                "Regional Development",
                "Science, Technology and other R&D",
                "Transportation",
                "Affordable Care Act",
                "Recovery Act",
                "Other"
              ]
            }
          },
          "eligibilities": {
            "title": "Who can apply",
            "type": "array",
            "description": "Keep opportunities open to any of these applicant types.",
            "items": {
              "type": "string",
              "enum": [
                "12",
                "13",
                "23",
                "22",
                "21",
                "06",
                "20",
                "00",
                "01",
                "02",
                "04",
                "05",
                "07",
                "11",
                "08",
                "25",
                "99"
              ],
              "enumTitles": [
                "Nonprofits with 501(c)(3) status",
                "Nonprofits without 501(c)(3) status",
                "Small businesses",
                "For-profit organizations other than small businesses",
                "Individuals",
                "Public and state controlled higher education institutions",
                "Private higher education institutions",
                "State governments",
                "County governments",
                "City or township governments",
                "Special district governments",
                "Independent school districts",
                "Native American tribal governments (federally recognized)",
                "Native American tribal organizations (other)",
                "Public housing authorities / Indian housing authorities",
                "Others (see eligibility notes)",
                "Unrestricted"
              ]
            }
          },
          "fundingInstruments": {
            "title": "Funding instruments",
            "type": "array",
            "description": "Type of funding.",
            "items": {
              "type": "string",
              "enum": [
                "G",
                "CA",
                "PC",
                "O"
              ],
              "enumTitles": [
                "Grant",
                "Cooperative agreement",
                "Procurement contract",
                "Other"
              ]
            }
          },
          "statuses": {
            "title": "Status",
            "type": "array",
            "description": "Forecasted = planned, not yet open; posted = open for applications. Both by default.",
            "items": {
              "type": "string",
              "enum": [
                "forecasted",
                "posted"
              ],
              "enumTitles": [
                "Forecasted (planned, not yet open)",
                "Posted (open for applications)"
              ]
            },
            "default": [
              "forecasted",
              "posted"
            ]
          },
          "assistanceListing": {
            "title": "Assistance listing number (CFDA)",
            "type": "string",
            "description": "Program number, e.g. 93.217."
          },
          "alertWhenPosted": {
            "title": "Alert when a forecast opens",
            "type": "boolean",
            "description": "Deliver an opportunity again (alertType 'now_posted') when it moves from forecasted to posted: the moment applications open.",
            "default": true
          },
          "includeDetails": {
            "title": "Include amounts, eligibility and description",
            "type": "boolean",
            "description": "Reads the detailed record of each delivered opportunity (award ceiling and floor, total funding, eligible applicants, description, contact). Only new opportunities are read, so it stays fast.",
            "default": true
          },
          "webhookUrl": {
            "title": "Alert URL (Slack, Discord or any webhook)",
            "type": "string",
            "description": "Optional. When there is something new, the run POSTs a JSON message to this URL: a readable summary for Slack incoming webhooks and Discord webhooks, the full rows for any other URL (Zapier, Make, n8n, your server)."
          },
          "notifyWhenNothingNew": {
            "title": "Also notify when nothing is new",
            "type": "boolean",
            "description": "Send a short 'nothing new' message after each run (a heartbeat).",
            "default": false
          },
          "maxResults": {
            "title": "Maximum opportunities per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Anything beyond this is not marked as seen and is delivered by the next run.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}