{
  "openapi": "3.0.1",
  "info": {
    "title": "Grants.gov Federal Grants Scraper",
    "description": "[💰 $8.0 / 1K] Extract US federal grant opportunities from Grants.gov — titles, agencies, deadlines, award amounts, eligibility, and contacts. Filter by keyword, agency, category, applicant type, status, and posted date.",
    "version": "1.0",
    "x-build-id": "SgbZ0lbaysiRjh5hQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidcode~grants-gov-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidcode-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/solidcode~grants-gov-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidcode-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/solidcode~grants-gov-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidcode-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",
        "properties": {
          "searchQuery": {
            "title": "Search Keywords",
            "type": "string",
            "description": "Keywords to search across grant titles and descriptions, such as 'clean energy' or 'rural health'. Leave empty to browse all opportunities that match the filters below."
          },
          "opportunityNumbers": {
            "title": "Specific Opportunity Numbers",
            "type": "array",
            "description": "Look up exact opportunities by their Grants.gov opportunity number (for example, 'EPA-R9-SFUND-2024'). When you add numbers here, the actor returns just those opportunities and ignores the search filters.",
            "items": {
              "type": "string"
            }
          },
          "opportunityStatus": {
            "title": "Opportunity Status",
            "uniqueItems": true,
            "type": "array",
            "description": "Which stages to include. Forecasted opportunities are announced but not yet open; Posted opportunities are open for applications now.",
            "items": {
              "type": "string",
              "enum": [
                "forecasted",
                "posted",
                "closed",
                "archived"
              ],
              "enumTitles": [
                "Forecasted (upcoming)",
                "Posted (open now)",
                "Closed",
                "Archived"
              ]
            },
            "default": [
              "forecasted",
              "posted"
            ]
          },
          "agencies": {
            "title": "Federal Agencies",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit results to specific federal agencies. Leave empty to include all agencies.",
            "items": {
              "type": "string",
              "enum": [
                "USAID",
                "AC",
                "CNCS",
                "USDA",
                "DOC",
                "DOD",
                "ED",
                "DOE",
                "PAMS",
                "HHS",
                "DHS",
                "HUD",
                "USDOJ",
                "DOL",
                "DOS",
                "DOI",
                "USDOT",
                "DOT",
                "VA",
                "EPA",
                "IMLS",
                "IAF",
                "MCC",
                "NASA",
                "NARA",
                "NEA",
                "NEH",
                "NSF",
                "ONDCP",
                "SBA",
                "SSA"
              ],
              "enumTitles": [
                "Agency for International Development",
                "AmeriCorps",
                "Corporation for National and Community Service",
                "Department of Agriculture",
                "Department of Commerce",
                "Department of Defense",
                "Department of Education",
                "Department of Energy",
                "Department of Energy - Office of Science",
                "Department of Health and Human Services",
                "Department of Homeland Security",
                "Department of Housing and Urban Development",
                "Department of Justice",
                "Department of Labor",
                "Department of State",
                "Department of the Interior",
                "Department of the Treasury",
                "Department of Transportation",
                "Department of Veterans Affairs",
                "Environmental Protection Agency",
                "Institute of Museum and Library Services",
                "Inter-American Foundation",
                "Millennium Challenge Corporation",
                "National Aeronautics and Space Administration",
                "National Archives and Records Administration",
                "National Endowment for the Arts",
                "National Endowment for the Humanities",
                "National Science Foundation",
                "Office of National Drug Control Policy",
                "Small Business Administration",
                "Social Security Administration"
              ]
            },
            "default": []
          },
          "fundingCategories": {
            "title": "Funding Categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit results to specific funding categories, such as Health or Environment. Leave empty to include all categories.",
            "items": {
              "type": "string",
              "enum": [
                "RA",
                "AG",
                "AR",
                "BC",
                "CD",
                "CP",
                "DPR",
                "ED",
                "ELT",
                "EN",
                "ENV",
                "FN",
                "HL",
                "HO",
                "HU",
                "IS",
                "ISS",
                "LJL",
                "NR",
                "OZ",
                "RD",
                "ST",
                "T",
                "O"
              ],
              "enumTitles": [
                "Recovery Act",
                "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",
                "Information and Statistics",
                "Income Security and Social Services",
                "Law, Justice and Legal Services",
                "Natural Resources",
                "Opportunity Zone Benefits",
                "Regional Development",
                "Science, Technology and R&D",
                "Transportation",
                "Other"
              ]
            },
            "default": []
          },
          "eligibilities": {
            "title": "Eligible Applicant Types",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit results to opportunities open to specific applicant types, such as nonprofits or small businesses. Leave empty to include all.",
            "items": {
              "type": "string",
              "enum": [
                "99",
                "00",
                "01",
                "02",
                "04",
                "05",
                "06",
                "07",
                "08",
                "11",
                "12",
                "13",
                "20",
                "21",
                "22",
                "23",
                "25"
              ],
              "enumTitles": [
                "Unrestricted (any applicant)",
                "State governments",
                "County governments",
                "City or township governments",
                "Special district governments",
                "Independent school districts",
                "Public and state-controlled higher education",
                "Native American tribal governments (federally recognized)",
                "Public housing authorities / Indian housing authorities",
                "Native American tribal organizations (other)",
                "Nonprofits with 501(c)(3) status",
                "Nonprofits without 501(c)(3) status",
                "Private higher education institutions",
                "Individuals",
                "For-profit organizations (other than small businesses)",
                "Small businesses",
                "Others (see opportunity text)"
              ]
            },
            "default": []
          },
          "fundingInstruments": {
            "title": "Funding Instrument Type",
            "uniqueItems": true,
            "type": "array",
            "description": "Limit results to a funding instrument type. Leave empty to include all.",
            "items": {
              "type": "string",
              "enum": [
                "G",
                "CA",
                "PC",
                "O"
              ],
              "enumTitles": [
                "Grant",
                "Cooperative Agreement",
                "Procurement Contract",
                "Other"
              ]
            },
            "default": []
          },
          "postedFrom": {
            "title": "Posted On or After",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only include opportunities posted on or after this date. Use the format YYYY-MM-DD, for example 2024-01-15. Leave empty for no lower bound."
          },
          "postedTo": {
            "title": "Posted On or Before",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only include opportunities posted on or before this date. Use the format YYYY-MM-DD, for example 2024-12-31. Leave empty for no upper bound. This upper-bound date is only applied when Include Full Details is on (the posted date is only available in full details); without details, this filter is ignored."
          },
          "includeDetails": {
            "title": "Include Full Details",
            "type": "boolean",
            "description": "Fetch the full details of every opportunity: description, award amounts, expected number of awards, cost-sharing requirement, agency contact, eligibility notes, and attachment links. Produces much richer results but takes longer.",
            "default": false
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of opportunities to return. Set to 0 to return all matching opportunities (up to 100,000). For larger pulls, narrow your search with filters or a posted-date range.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}