{
  "openapi": "3.0.1",
  "info": {
    "title": "Grants.gov Grant Matcher: Federal Grant Finder & Fit Score",
    "description": "Finds open and forecast US federal grants on Grants.gov that fit your keywords, organisation type and state, scores fit 0 to 100, checks eligibility and adds past award sizes and recipients from USAspending. Monitor mode for new grants. $0.02 per matched grant. Agent-ready: x402, MCP.",
    "version": "0.1",
    "x-build-id": "RfLSmwf3FjcTFYe0t"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nerolabs~grants-gov-grant-matcher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nerolabs-grants-gov-grant-matcher",
        "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/nerolabs~grants-gov-grant-matcher/runs": {
      "post": {
        "operationId": "runs-sync-nerolabs-grants-gov-grant-matcher",
        "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/nerolabs~grants-gov-grant-matcher/run-sync": {
      "post": {
        "operationId": "run-sync-nerolabs-grants-gov-grant-matcher",
        "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 (what you fund or do)",
            "type": "array",
            "description": "Words and phrases that describe your work, for example 'youth mentoring', 'rural broadband', 'food bank'. Each one runs a full-text Grants.gov search; a hit in the title counts double in the fit score.",
            "items": {
              "type": "string"
            }
          },
          "keywordListUrl": {
            "title": "Keyword list (CSV or Google Sheet link)",
            "type": "string",
            "description": "Optional. A CSV URL or a Google Sheet shared as 'Anyone with the link can view'. Uses a column named keyword, focus, program or topic, or else the first column. Added to 'keywords'."
          },
          "excludeKeywords": {
            "title": "Exclude grants that mention",
            "type": "array",
            "description": "Optional. Grants whose title or text mention any of these are dropped and not charged, for example 'clinical trial'.",
            "items": {
              "type": "string"
            }
          },
          "organizationType": {
            "title": "Your organisation type",
            "enum": [
              "any",
              "nonprofit_501c3",
              "nonprofit_other",
              "small_business",
              "for_profit",
              "public_university",
              "private_university",
              "state_government",
              "county_government",
              "city_government",
              "special_district",
              "school_district",
              "tribal_government",
              "tribal_organization",
              "housing_authority",
              "individual"
            ],
            "type": "string",
            "description": "Checks each grant's eligible applicant list. Grants open to all and 'others, see text' grants are kept and labelled; grants that exclude your type are not returned.",
            "default": "nonprofit_501c3"
          },
          "state": {
            "title": "Your US state",
            "type": "string",
            "description": "Optional. Two-letter code or name (TX or Texas). Adds 5 points when a grant mentions your state and counts past recipients in your state."
          },
          "includeForecasts": {
            "title": "Include forecast grants",
            "type": "boolean",
            "description": "Forecasts are grants the agency has announced but not opened yet, with estimated dates, so you can prepare early.",
            "default": true
          },
          "fundingCategories": {
            "title": "Funding categories",
            "type": "array",
            "description": "Optional. Only grants in these Grants.gov categories.",
            "items": {
              "type": "string",
              "enum": [
                "AG",
                "AR",
                "BC",
                "CD",
                "CP",
                "DPR",
                "ED",
                "ELT",
                "EN",
                "ENV",
                "FN",
                "HL",
                "HO",
                "HU",
                "IIJ",
                "IS",
                "ISS",
                "LJL",
                "NR",
                "RA",
                "RD",
                "ST",
                "T",
                "ACA",
                "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",
                "Recovery Act",
                "Regional Development",
                "Science, Technology and R&D",
                "Transportation",
                "Affordable Care Act",
                "Other"
              ]
            }
          },
          "agencies": {
            "title": "Agency codes",
            "type": "array",
            "description": "Optional. Grants.gov agency codes, for example HHS, USDA, DOJ, ED, HHS-NIH11.",
            "items": {
              "type": "string"
            }
          },
          "grantsOnly": {
            "title": "Grants and cooperative agreements only",
            "type": "boolean",
            "description": "Leave out procurement contracts and other funding types.",
            "default": false
          },
          "minAward": {
            "title": "Smallest award worth applying for (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Drops grants whose award ceiling is below this. Grants with no published ceiling are kept."
          },
          "maxAward": {
            "title": "Largest award you can manage (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Drops grants whose award floor is above this."
          },
          "minDaysToDeadline": {
            "title": "Minimum days left to apply",
            "minimum": 0,
            "maximum": 180,
            "type": "integer",
            "description": "Posted grants closing sooner than this are skipped.",
            "default": 7
          },
          "minFitScore": {
            "title": "Minimum fit score (0 to 100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only grants scoring at least this are returned and charged. Score = keywords (50) + eligibility (25) + time left (15) + award size (10) + state mentioned (5).",
            "default": 50
          },
          "includePastAwards": {
            "title": "Add past awards from USAspending",
            "type": "boolean",
            "description": "For each grant's Assistance Listing number: how many awards were made recently, median and typical award size, top past recipients and past recipients in your state. Free, no extra charge.",
            "default": true
          },
          "pastAwardYears": {
            "title": "Past award window (years)",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How far back the past award figures look (latest 100 awards inside the window).",
            "default": 3
          },
          "maxGrants": {
            "title": "Max grants returned",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "The best scoring grants, up to this many, are returned and charged.",
            "default": 50
          },
          "maxOpportunitiesChecked": {
            "title": "Max opportunities checked in detail",
            "minimum": 10,
            "maximum": 3000,
            "type": "integer",
            "description": "Search hits are ranked by keyword hits and this many are read in full. Not charged.",
            "default": 200
          },
          "monitorMode": {
            "title": "Monitor mode (only new grants)",
            "type": "boolean",
            "description": "Remembers what was returned under 'watchName' and returns only new grants next time, including a forecast that has now opened. Schedule it weekly for a grant alert.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Keeps separate memories for separate profiles or clients in monitor mode.",
            "default": "default"
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Optional. Gets a JSON POST with the run summary (in monitor mode, only when something new was found)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}