{
  "openapi": "3.0.1",
  "info": {
    "title": "US Federal Grants (Grants.gov): Funding Opportunities API",
    "description": "Returns US federal grant opportunities from Grants.gov as flat JSON: title, agency, award ceiling and floor, total funding, expected awards, deadline, eligibility, ALN, category and description. Filter by keyword, agency, category, eligibility, posted or closing window.",
    "version": "0.1",
    "x-build-id": "T6e3LGrwaAAwCNFX6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/studded_lantana~grants-gov-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-studded_lantana-grants-gov-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/studded_lantana~grants-gov-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-studded_lantana-grants-gov-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/studded_lantana~grants-gov-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-studded_lantana-grants-gov-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": {
          "statuses": {
            "title": "Statuses",
            "type": "array",
            "description": "Which opportunities to return. posted = open for applications now (default, with forecasted). forecasted = announced by the agency but not yet open; shows estimated dates and amounts. closed = past the application deadline, for research on past funding. Example: [\"posted\"].",
            "items": {
              "type": "string",
              "enum": [
                "forecasted",
                "posted",
                "closed"
              ],
              "enumTitles": [
                "Forecasted (not yet open)",
                "Posted (open now)",
                "Closed"
              ]
            },
            "default": [
              "forecasted",
              "posted"
            ]
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Grants.gov keyword search, the same as the search box on grants.gov, e.g. \"rural broadband\" or \"opioid\". Leave empty for all opportunities. Letters, digits, spaces and . , & ' ( ) / - only."
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Agency codes as on Grants.gov; a department code includes its sub-agencies. Examples: \"HHS\" (incl. NIH, CDC), \"USDA\", \"DOE\", \"NSF\", \"DOD\", \"DOC\" (incl. NOAA), \"DOS\" (State), \"USDOJ\" (Justice), \"DOT\" (Transportation), \"USDOT\" (Treasury), \"EPA\", \"NASA\". \"HHS-NIH11\" matches only NIH. Leave empty for all agencies.",
            "items": {
              "type": "string"
            }
          },
          "fundingCategories": {
            "title": "Funding categories",
            "type": "array",
            "description": "Grants.gov category codes: AG Agriculture, AR Arts, BC Business, CD Community Dev., CP Consumer Protection, DPR Disaster Relief, ED Education, ELT Employment, EN Energy, ENV Environment, FN Food/Nutrition, HL Health, HO Housing, HU Humanities, IIJ Infrastructure Act, IS Statistics, ISS Social Services, LJL Justice, NR Natural Resources, OZ Opportunity Zones, RD Regional Dev., RT Recreation, ST Science/Tech, T Transportation, O Other. Example: [\"HL\", \"ED\"].",
            "items": {
              "type": "string"
            }
          },
          "eligibilities": {
            "title": "Eligible applicants",
            "type": "array",
            "description": "Applicant-type codes: 00 State gov, 01 County gov, 02 City/township gov, 04 Special district, 05 School district, 06 Public/state higher ed, 07 Federally recognized tribes, 08 Housing authorities, 11 Other tribal orgs, 12 Nonprofit 501(c)(3), 13 Nonprofit non-501(c)(3), 20 Private higher ed, 21 Individuals, 22 For-profit (not small), 23 Small business, 25 Others, 99 Unrestricted. Example: [\"23\"].",
            "items": {
              "type": "string"
            }
          },
          "fundingInstruments": {
            "title": "Funding instruments",
            "type": "array",
            "description": "Keep opportunities using any of these award types: G Grant, CA Cooperative agreement, PC Procurement contract, O Other. Example: [\"G\", \"CA\"]. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "alnNumbers": {
            "title": "Assistance Listing numbers (ALN/CFDA)",
            "type": "array",
            "description": "Keep opportunities under these Assistance Listing (formerly CFDA) numbers. A prefix matches all programs below it: \"93.\" all HHS programs, \"10.\" all USDA programs, \"93.213\" a single program. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep opportunities first posted in the last N days, including today (US dates as shown on Grants.gov). For a weekly check of new funding use 7; for a daily check use 2 and skip opportunity_id values already seen. Leave empty for all."
          },
          "closingWithinDays": {
            "title": "Closing in the next N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep opportunities whose application deadline is between today and N days from now, e.g. 30 for deadlines in the coming month. Opportunities without a fixed deadline are dropped when this is set. Leave empty for all."
          },
          "minAwardCeiling": {
            "title": "Minimum award ceiling (USD)",
            "type": "integer",
            "description": "Keep opportunities whose maximum award per recipient is at least this many US dollars, e.g. 500000. Opportunities that do not state a ceiling are dropped when this is set. You are charged only for opportunities returned."
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many matching opportunities, e.g. 100. You are charged per opportunity returned, so this also caps the cost of the run. About 860 opportunities are open and 600 forecasted at any time (Oct 2026).",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}