{
  "openapi": "3.0.1",
  "info": {
    "title": "Grant Grinder - U.S. Government Grants API",
    "description": "Search, match, monitor, and prepare for current U.S. federal grant opportunities using normalized official-source data.",
    "version": "0.3",
    "x-build-id": "78ObxxpxpSDwgVRVg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/monolithdread~grant-grinder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-monolithdread-grant-grinder",
        "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/monolithdread~grant-grinder/runs": {
      "post": {
        "operationId": "runs-sync-monolithdread-grant-grinder",
        "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/monolithdread~grant-grinder/run-sync": {
      "post": {
        "operationId": "run-sync-monolithdread-grant-grinder",
        "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",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "search",
              "match",
              "changes",
              "detail",
              "checklist"
            ],
            "type": "string",
            "description": "Choose whether to search the catalog, match a profile, read changes, retrieve one record, or build a checklist.",
            "default": "search"
          },
          "q": {
            "title": "Search phrase",
            "type": "string",
            "description": "Mission, population, place, program, or other keywords."
          },
          "status": {
            "title": "Status",
            "enum": [
              "open",
              "forecasted"
            ],
            "type": "string",
            "description": "Limit results to currently open or forecasted opportunities."
          },
          "agency": {
            "title": "Agency",
            "type": "string",
            "description": "Match an awarding agency name or code."
          },
          "fundingCategory": {
            "title": "Funding category",
            "type": "string",
            "description": "Match an official Grants.gov funding category."
          },
          "fundingInstrument": {
            "title": "Funding instrument",
            "type": "string",
            "description": "Match a grant, cooperative agreement, or other funding instrument."
          },
          "eligibleApplicant": {
            "title": "Eligible applicant",
            "type": "string",
            "description": "Match an official eligible-applicant classification."
          },
          "assistanceListing": {
            "title": "Assistance Listing",
            "type": "string",
            "description": "Match an Assistance Listing number or title."
          },
          "minAward": {
            "title": "Minimum published award",
            "minimum": 0,
            "type": "number",
            "description": "Require an opportunity whose published maximum award is at least this amount in U.S. dollars."
          },
          "maxAward": {
            "title": "Maximum acceptable award",
            "minimum": 0,
            "type": "number",
            "description": "Require an opportunity whose published minimum award does not exceed this amount in U.S. dollars."
          },
          "closesBefore": {
            "title": "Closes before",
            "type": "string",
            "description": "ISO date, such as 2026-12-31."
          },
          "closesAfter": {
            "title": "Closes after",
            "type": "string",
            "description": "ISO date, such as 2026-08-11."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Include notices posted on or before this ISO date."
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Include notices posted on or after this ISO date."
          },
          "hasFundingAmount": {
            "title": "Require a funding amount",
            "type": "boolean",
            "description": "Exclude opportunities that do not publish an award or program funding amount.",
            "default": false
          },
          "includeExpired": {
            "title": "Include expired records",
            "type": "boolean",
            "description": "Include expired opportunities when searching the retained catalog.",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance-desc",
              "fit-desc",
              "close-date-asc",
              "close-date-desc",
              "posted-date-desc",
              "posted-date-asc",
              "award-max-desc",
              "award-min-asc",
              "agency-asc",
              "title-asc"
            ],
            "type": "string",
            "description": "Choose how results are ordered.",
            "default": "relevance-desc"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after writing this many result records to the dataset.",
            "default": 100
          },
          "keywords": {
            "title": "Profile keywords",
            "type": "array",
            "description": "Words or phrases describing the mission, people, places, or work to match.",
            "items": {
              "type": "string"
            }
          },
          "applicantTypes": {
            "title": "Profile applicant types",
            "type": "array",
            "description": "Applicant classifications that describe the organization seeking funding.",
            "items": {
              "type": "string"
            }
          },
          "fundingCategories": {
            "title": "Profile funding categories",
            "type": "array",
            "description": "Official funding categories that are relevant to the organization.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Preferred agencies",
            "type": "array",
            "description": "Awarding agencies the organization prefers to match.",
            "items": {
              "type": "string"
            }
          },
          "maxDaysToClose": {
            "title": "Deadline horizon in days",
            "minimum": 0,
            "maximum": 730,
            "type": "integer",
            "description": "Only match opportunities closing within this many days."
          },
          "since": {
            "title": "Changes since",
            "type": "string",
            "description": "ISO timestamp. Defaults to 24 hours ago."
          },
          "changeTypes": {
            "title": "Change types",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit the change feed to additions, material updates, or removals.",
            "items": {
              "type": "string",
              "enum": [
                "added",
                "updated",
                "removed"
              ],
              "enumTitles": [
                "Added",
                "Updated",
                "Removed"
              ]
            }
          },
          "grantKey": {
            "title": "Grant key or opportunity number",
            "type": "string",
            "description": "The normalized Grant Grinder key or official opportunity number for detail and checklist operations."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}