{
  "openapi": "3.0.1",
  "info": {
    "title": "Grants Gov Scraper",
    "description": "Scrape US federal grant opportunities from Grants.gov: full funding amounts, eligibility, agency contact, and attachments - by keyword, agency, or opportunity number. The only Grants.gov Actor with a real per-revision change log showing exactly what changed on a listing.",
    "version": "1.0",
    "x-build-id": "gp9r99kVk78mdWREA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/normdata~grants-gov-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-normdata-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/normdata~grants-gov-scraper/runs": {
      "post": {
        "operationId": "runs-sync-normdata-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/normdata~grants-gov-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-normdata-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": {
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Caps how many rows this run writes. Starts at 10 for a quick sample; raise it for a full run.",
            "default": 10
          },
          "mode": {
            "title": "What to do",
            "enum": [
              "search",
              "lookup",
              "monitor"
            ],
            "type": "string",
            "description": "Search filters the live opportunity board by keyword, agency, funding category, eligibility, or date. Lookup fetches specific opportunities by their public number. Monitor returns opportunities posted since a given date - built for a daily/weekly schedule.",
            "default": "search"
          },
          "keyword": {
            "title": "Keyword (for Search/Monitor mode)",
            "type": "string",
            "description": "Full-text search across opportunity titles and descriptions, e.g. \"health\", \"cybersecurity\", \"rural broadband\"."
          },
          "agencies": {
            "title": "Agency codes",
            "type": "array",
            "description": "Exact Grants.gov agency codes, e.g. \"HHS-OPHS\", \"DOC\", \"DOD-AFOSR\" - copy the code shown on a real opportunity's own agency field, not a general abbreviation (e.g. \"HHS\" alone will not match its sub-agencies).",
            "items": {
              "type": "string"
            }
          },
          "fundingCategories": {
            "title": "Funding activity categories",
            "type": "array",
            "description": "Category codes, e.g. \"HL\" (Health), \"ED\" (Education), \"ENV\" (Environment), \"AG\" (Agriculture), \"BC\" (Business and Commerce). See Grants.gov's own category list for the full set.",
            "items": {
              "type": "string"
            }
          },
          "fundingInstruments": {
            "title": "Funding instrument types",
            "type": "array",
            "description": "Instrument codes: \"G\" (Grant), \"CA\" (Cooperative Agreement), \"PC\" (Procurement Contract), \"O\" (Other).",
            "items": {
              "type": "string"
            }
          },
          "eligibilities": {
            "title": "Eligible applicant types",
            "type": "array",
            "description": "Applicant-type codes, e.g. \"00\" (State governments), \"12\" (501(c)(3) nonprofits), \"06\" (Public/State institutions of higher education), \"25\" (Others). See a real opportunity's own eligible_applicant_types field for the full code list.",
            "items": {
              "type": "string"
            }
          },
          "oppStatuses": {
            "title": "Opportunity status",
            "type": "array",
            "description": "Which lifecycle stages to include: \"forecasted\", \"posted\" (currently accepting applications), \"closed\", or \"archived\". Defaults to forecasted + posted (currently-open opportunities) - the same real default Grants.gov's own search uses.",
            "items": {
              "type": "string"
            }
          },
          "postedFrom": {
            "title": "Posted from (for Search mode)",
            "type": "string",
            "description": "An ISO date (\"2026-09-01\"), only keeping opportunities posted on or after it. Applied on our side - confirmed live that Grants.gov's own search API accepts this filter but does not actually apply it."
          },
          "postedTo": {
            "title": "Posted to (for Search mode)",
            "type": "string",
            "description": "An ISO date, only keeping opportunities posted on or before it. Applied on our side, same real reason as postedFrom."
          },
          "fetchDetails": {
            "title": "Fetch full details",
            "type": "boolean",
            "description": "Adds funding amounts, eligibility text, agency contact, attachments, and the real per-revision change log to every row. Off returns only the bare board listing (id, number, title, agency, dates, status) - faster and cheaper, but without the data most people actually want this Actor for.",
            "default": true
          },
          "opportunityNumbers": {
            "title": "Opportunity numbers (for Lookup mode)",
            "type": "array",
            "description": "Public opportunity numbers, e.g. \"PA-FPH-27-001\". Case-insensitive exact match against the real number - not a keyword search.",
            "items": {
              "type": "string"
            }
          },
          "postedSince": {
            "title": "Posted since (for Monitor mode)",
            "type": "string",
            "description": "An ISO date (\"2026-09-01\") or a relative window (\"2 days\", \"1 week\"). Returns opportunities posted on or after this date, newest first - run it on a schedule to catch newly-posted opportunities. Combine with a keyword/agency/category filter to monitor a specific area rather than the whole board."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}