{
  "openapi": "3.0.1",
  "info": {
    "title": "Grants.gov Scraper · Grant Opportunities, Agencies & Awards",
    "description": "Scrape US federal grant opportunities, funding announcements, and agency award notices from Grants.gov by keyword, agency, category, eligibility, and status.",
    "version": "1.0",
    "x-build-id": "iSzYI2Kfc2C90udMh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/reapx~grants-gov-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-reapx-grants-gov-scraper",
        "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/reapx~grants-gov-scraper/runs": {
      "post": {
        "operationId": "runs-sync-reapx-grants-gov-scraper",
        "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/reapx~grants-gov-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-reapx-grants-gov-scraper",
        "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": [
          "maxItems"
        ],
        "properties": {
          "keyword": {
            "title": "Keyword Search",
            "type": "string",
            "description": "Filter grant opportunities by search term or topic (e.g. <code>health</code>, <code>climate</code>, <code>research</code>). <br><br><b>Consequence:</b> Entering a keyword narrows results to matching grants. Leave empty to search across all grant opportunities."
          },
          "agencies": {
            "title": "Federal Agency Code",
            "type": "string",
            "description": "Filter grant opportunities by federal agency code (e.g. <code>HHS</code>, <code>DOD</code>, <code>NSF</code>, <code>EPA</code>). <br><br><b>Consequence:</b> Restricts the search to funding opportunities issued by the specified federal agency. Leave empty to return grants across all federal agencies."
          },
          "oppStatuses": {
            "title": "Opportunity Statuses",
            "type": "array",
            "description": "Select opportunity status categories to include: <code>forecasted</code>, <code>posted</code>, <code>closed</code>, <code>archived</code>. <br><br><b>Consequence:</b> Filtering by status narrows results to grants in those lifecycle stages. Leave empty to search forecasted and posted grants."
          },
          "fundingCategories": {
            "title": "Funding Categories",
            "type": "array",
            "description": "Filter by funding category codes (e.g. <code>HL</code> for Health, <code>ED</code> for Education, <code>ST</code> for Science/Tech, <code>ENV</code> for Environment). <br><br><b>Consequence:</b> Restricts returned grants to specific federal funding sectors. Leave empty to search all funding categories."
          },
          "eligibilities": {
            "title": "Applicant Eligibility",
            "type": "array",
            "description": "Filter by eligible applicant type codes (e.g. <code>12</code> for 501(c)(3) Nonprofits, <code>06</code> for State Higher Ed, <code>23</code> for Small Businesses). <br><br><b>Consequence:</b> Filters grants to opportunities open to specified applicant types. Leave empty to include all applicant types."
          },
          "fundingInstruments": {
            "title": "Funding Instruments",
            "type": "array",
            "description": "Filter by funding instrument type codes: <code>G</code> (Grant), <code>CA</code> (Cooperative Agreement), <code>PC</code> (Procurement Contract). <br><br><b>Consequence:</b> Narrows search to specified award mechanism types. Leave empty to return all instrument types."
          },
          "dateRange": {
            "title": "Date Window (Days)",
            "minimum": 1,
            "type": "integer",
            "description": "Filter grants posted or updated within the last N days (e.g. <code>30</code>, <code>90</code>, <code>365</code>). <br><br><b>Consequence:</b> Restricts results to recent funding announcements. Leave empty to search across all historical dates."
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "openDate|desc",
              "openDate|asc",
              "closeDate|desc",
              "closeDate|asc"
            ],
            "type": "string",
            "description": "Order results by opening or closing date: <code>openDate|desc</code>, <code>openDate|asc</code>, <code>closeDate|desc</code>, <code>closeDate|asc</code>. <br><br><b>Consequence:</b> Controls the sort order of returned opportunities. Defaults to newest open date first."
          },
          "maxItems": {
            "title": "Maximum Items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum total number of federal grant opportunity records to scrape and deliver in this run. <br><br><b>Consequence:</b> The higher the number, the longer the run takes and the more items are billed. Defaults to 100 items.<br><br>The higher the number, the longer the run takes and the more you are charged, because you pay per row returned.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}