{
  "openapi": "3.0.1",
  "info": {
    "title": "US Grant Opportunities: Federal + State",
    "description": "Federal and state grant opportunities in one table: Grants.gov plus California Grants Portal and Illinois CSFA. Deadlines, award ranges, eligibility, links. Filter by keyword, applicant type, deadline, award size. No login or API key.",
    "version": "1.0",
    "x-build-id": "kohTrbYreKyVZtUBR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tatonicventures~us-grant-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tatonicventures-us-grant-opportunities",
        "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/tatonicventures~us-grant-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-tatonicventures-us-grant-opportunities",
        "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/tatonicventures~us-grant-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-tatonicventures-us-grant-opportunities",
        "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",
            "type": "array",
            "description": "Match any of these words in title, description, categories or agency (e.g. youth, mentoring, food security, broadband). Leave empty for all opportunities.",
            "items": {
              "type": "string"
            }
          },
          "strictKeywordMatch": {
            "title": "Strict keyword match",
            "type": "boolean",
            "description": "Grants.gov's own keyword search is broad (it matches related terms and attachments). When on, federal results must also contain one of your keywords in the title, description, categories, agency or eligibility text. Requires full Grants.gov details.",
            "default": true
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which official portals to search.",
            "items": {
              "type": "string",
              "enum": [
                "grants.gov",
                "california",
                "illinois"
              ],
              "enumTitles": [
                "Grants.gov (federal)",
                "California Grants Portal (state)",
                "Illinois CSFA / GATA (state)"
              ]
            },
            "default": [
              "grants.gov",
              "california",
              "illinois"
            ]
          },
          "statuses": {
            "title": "Status",
            "type": "array",
            "description": "Opportunity statuses to include.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "forecasted",
                "closed"
              ],
              "enumTitles": [
                "Open (accepting applications)",
                "Forecasted (coming soon)",
                "Closed"
              ]
            },
            "default": [
              "open",
              "forecasted"
            ]
          },
          "applicantTypes": {
            "title": "Eligible applicant types",
            "type": "array",
            "description": "Filter by who may apply. Applied natively on Grants.gov; on California, nonprofit types are matched against the portal's applicant-type field. Illinois list pages carry no eligibility data, so they are not filtered.",
            "items": {
              "type": "string",
              "enum": [
                "nonprofit501c3",
                "nonprofitOther",
                "smallBusiness",
                "forProfit",
                "individuals",
                "stateGov",
                "countyGov",
                "cityGov",
                "specialDistrict",
                "schoolDistrict",
                "publicHigherEd",
                "privateHigherEd",
                "tribalGov",
                "tribalOrg",
                "housingAuthority",
                "unrestricted"
              ],
              "enumTitles": [
                "Nonprofit with 501(c)(3)",
                "Nonprofit without 501(c)(3)",
                "Small business",
                "For-profit (not small business)",
                "Individuals",
                "State government",
                "County government",
                "City/township government",
                "Special district",
                "Independent school district",
                "Public/state higher education",
                "Private higher education",
                "Tribal government",
                "Tribal organization",
                "Housing authority",
                "Unrestricted"
              ]
            },
            "default": []
          },
          "closingWithinDays": {
            "title": "Closing within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Only opportunities whose deadline is within this many days from today. 0 = no deadline filter (includes rolling / no-deadline opportunities).",
            "default": 0
          },
          "minAwardCeiling": {
            "title": "Minimum award ceiling (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only opportunities whose maximum award is at least this amount. Opportunities with unknown award size are dropped when this is set.",
            "default": 0
          },
          "includeFederalDetails": {
            "title": "Fetch full Grants.gov details",
            "type": "boolean",
            "description": "Adds award floor/ceiling, total funding, number of awards, eligibility, cost sharing and description for each federal opportunity (one extra API call each).",
            "default": true
          },
          "includeContacts": {
            "title": "Include agency contact details",
            "type": "boolean",
            "description": "Adds the agency's published contact line (may include a program officer's name and work email).",
            "default": false
          },
          "maxResultsPerSource": {
            "title": "Max results per source",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit of opportunities returned from each source (soonest deadline first).",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}