{
  "openapi": "3.0.1",
  "info": {
    "title": "US Grants Scraper (Grants.gov Funding Opportunities)",
    "description": "Get US federal grant and cooperative agreement opportunities from Grants.gov: agency, award ceiling, deadline, eligibility and category. Filter by keyword, agency, category and eligibility. Official open API, no key.",
    "version": "1.0",
    "x-build-id": "8l1aLePN7k4ePVhbN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tenderwire~us-grants-gov/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tenderwire-us-grants-gov",
        "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/tenderwire~us-grants-gov/runs": {
      "post": {
        "operationId": "runs-sync-tenderwire-us-grants-gov",
        "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/tenderwire~us-grants-gov/run-sync": {
      "post": {
        "operationId": "run-sync-tenderwire-us-grants-gov",
        "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 (any)",
            "type": "array",
            "description": "Search Grants.gov for each keyword and combine the results. Leave empty for all opportunities.",
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Opportunity status",
            "type": "array",
            "description": "posted = open for applications now. forecasted = announced, not open yet. closed and archived = past opportunities.",
            "items": {
              "type": "string",
              "enum": [
                "posted",
                "forecasted",
                "closed",
                "archived"
              ],
              "enumTitles": [
                "Posted (open now)",
                "Forecasted (coming soon)",
                "Closed",
                "Archived"
              ]
            },
            "default": [
              "posted"
            ]
          },
          "agencies": {
            "title": "Agency codes",
            "type": "array",
            "description": "Grants.gov agency codes, e.g. HHS, NSF, DOE, USDA, ED, HHS-NIH11. Leave empty for all agencies.",
            "items": {
              "type": "string"
            }
          },
          "fundingCategories": {
            "title": "Funding category codes",
            "type": "array",
            "description": "e.g. ED (education), HL (health), ST (science and technology), AG (agriculture), CD (community development), EN (energy), ENV (environment), AR (arts).",
            "items": {
              "type": "string"
            }
          },
          "eligibilities": {
            "title": "Eligibility codes",
            "type": "array",
            "description": "Grants.gov applicant type codes, e.g. 12 (nonprofits with 501(c)(3)), 20 (private universities), 23 (small businesses), 00 (state governments), 01 (county governments), 99 (unrestricted).",
            "items": {
              "type": "string"
            }
          },
          "fundingInstruments": {
            "title": "Funding instrument codes",
            "type": "array",
            "description": "G (grant), CA (cooperative agreement), PC (procurement contract), O (other).",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only opportunities posted in the last N days."
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop opportunities whose title, description or agency contains any of these words.",
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum award ceiling (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep opportunities whose award ceiling (or total funding when no ceiling is given) is at least this amount."
          },
          "maxValue": {
            "title": "Maximum award ceiling (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep opportunities whose award ceiling is at most this amount."
          },
          "onlyOpen": {
            "title": "Only with a future closing date",
            "type": "boolean",
            "description": "Drop opportunities whose closing date has passed or is not given.",
            "default": false
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Fetch the full description, award ceiling, eligibility, category and contact phone for each opportunity. Turn off for a faster, basic list.",
            "default": true
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run (alerts mode)",
            "type": "boolean",
            "description": "Remember delivered opportunities and output only new ones on the next run. Ideal for a daily schedule.",
            "default": false
          },
          "stateKey": {
            "title": "Alerts state name",
            "type": "string",
            "description": "Use a different name for each saved search that runs in alerts mode.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max opportunities",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many opportunities (newest first). You only pay for opportunities delivered.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: Grants.gov's API is open.",
            "default": {
              "useApifyProxy": false
            }
          },
          "selfCheck": {
            "title": "Self-check mode (maintenance)",
            "type": "boolean",
            "description": "For the maintainer. Checks the source format has not changed and writes a SELF_CHECK report. Outputs no opportunities.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}