{
  "openapi": "3.0.1",
  "info": {
    "title": "US Grants.gov Federal Funding, SBIR Grants & Grantor Contacts",
    "description": "Extract open & forecasted US federal grant opportunities from Grants.gov REST API v1 across NIH, NSF, DOE, DoD, HHS & USDA with USD award ceilings, deadlines, SBIR/small-business eligibility & direct grantor emails/phones.",
    "version": "1.0",
    "x-build-id": "3Ly2PfkC2Dsz5UW8y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/regpulse-data~us-grants-gov-federal-funding-opportunities-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-regpulse-data-us-grants-gov-federal-funding-opportunities-leads",
        "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/regpulse-data~us-grants-gov-federal-funding-opportunities-leads/runs": {
      "post": {
        "operationId": "runs-sync-regpulse-data-us-grants-gov-federal-funding-opportunities-leads",
        "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/regpulse-data~us-grants-gov-federal-funding-opportunities-leads/run-sync": {
      "post": {
        "operationId": "run-sync-regpulse-data-us-grants-gov-federal-funding-opportunities-leads",
        "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": {
          "mode": {
            "title": "Operation Mode",
            "enum": [
              "open_grants",
              "forecasted_pipeline",
              "small_business_sbir",
              "watchlist_diff"
            ],
            "type": "string",
            "description": "Select 'open_grants' for currently open US federal funding (oppStatuses=posted), 'forecasted_pipeline' for upcoming pre-release federal grant forecasts, 'small_business_sbir' for small-business / for-profit / SBIR-STTR eligible grants, or 'watchlist_diff' for stateful monitoring of newly posted grants, deadline extensions, and status changes.",
            "default": "open_grants"
          },
          "query": {
            "title": "Keyword Search Query",
            "type": "string",
            "description": "Optional Grants.gov keyword query across grant titles, synopses, and solicitations (e.g., 'artificial intelligence', 'clean energy', 'cybersecurity', 'biotech', 'SBIR')."
          },
          "agencies": {
            "title": "Federal Agencies / Sub-Agencies",
            "type": "array",
            "description": "Filter by top-level agency codes or exact Grants.gov sub-agency codes (e.g., 'HHS', 'NIH', 'NSF', 'DOD', 'DARPA', 'DOE', 'USDA', 'EPA', 'DOT', 'DHS', 'NASA', 'DOC', 'DOJ', 'DOI', 'HHS-NIH11', 'DOE-ARPAE'). Top-level codes automatically expand to all active Grants.gov sub-agencies.",
            "items": {
              "type": "string"
            }
          },
          "eligibilities": {
            "title": "Applicant Eligibilities",
            "type": "array",
            "description": "Filter by friendly eligibility labels ('SMALL_BUSINESS', 'FOR_PROFIT', 'NONPROFIT', 'UNIVERSITY', 'STATE_LOCAL_GOV', 'TRIBAL', 'INDIVIDUALS', 'UNRESTRICTED') or raw Grants.gov eligibility codes ('23', '22', '12', '13', '06', '20', '00', '07', '99').",
            "items": {
              "type": "string"
            }
          },
          "fundingCategories": {
            "title": "Funding Activity Categories",
            "type": "array",
            "description": "Filter by friendly labels ('SCIENCE_TECH', 'HEALTH', 'ENERGY', 'ENVIRONMENT', 'EDUCATION', 'BUSINESS_COMMERCE', 'TRANSPORTATION', 'AGRICULTURE', 'DEFENSE') or raw Grants.gov category codes ('ST', 'HL', 'EN', 'ENV', 'ED', 'BC', 'T', 'AG', 'NR', 'LJL', 'CD').",
            "items": {
              "type": "string"
            }
          },
          "fundingInstruments": {
            "title": "Funding Instruments",
            "type": "array",
            "description": "Optional funding instrument filter: friendly labels ('GRANT', 'COOPERATIVE_AGREEMENT', 'PROCUREMENT_CONTRACT', 'OTHER') or Grants.gov codes ('G', 'CA', 'PC', 'O').",
            "items": {
              "type": "string"
            }
          },
          "aln": {
            "title": "Assistance Listing / CFDA Number",
            "type": "string",
            "description": "Optional Assistance Listing (CFDA) number filter (e.g., '93.279', '47.070', '81.121')."
          },
          "oppStatuses": {
            "title": "Opportunity Status Override",
            "type": "string",
            "description": "Optional override for Grants.gov oppStatuses ('posted', 'forecasted', 'posted|forecasted', 'closed'). Leave empty to use the mode's default status."
          },
          "minAwardCeilingUsd": {
            "title": "Minimum Award Ceiling (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum individual award ceiling in USD (e.g., 500000 for grants with at least $500k per award). Requires enrichDetails=true."
          },
          "onlyOpenDeadlines": {
            "title": "Only Open / Non-Expired Deadlines",
            "type": "boolean",
            "description": "Excludes opportunities whose closeDate is already in the past while preserving active future deadlines and open rolling solicitations. Automatically defaults to true in open_grants and small_business_sbir modes, and false in forecasted_pipeline and watchlist_diff modes unless explicitly specified."
          },
          "hasContactEmailOnly": {
            "title": "Only Grants With Direct Grantor Contact Email",
            "type": "boolean",
            "description": "Filter output to opportunities with a verified direct federal grantor email address (grantorContactEmail). Requires enrichDetails=true.",
            "default": false
          },
          "enrichDetails": {
            "title": "Enrich Full Synopsis & Direct Grantor Contacts",
            "type": "boolean",
            "description": "Calls Grants.gov fetchOpportunity API with bounded concurrency (6) to extract award ceiling/floor, estimated total funding, expected awards, cost sharing, applicant eligibility list, funding categories/instruments, synopsis snippet, and direct grantor contact name/email/phone.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum Opportunities to Return",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of structured grant records to deliver and bill (1 to 5,000).",
            "default": 100
          },
          "stateStoreName": {
            "title": "Watchlist State Store Name (for watchlist_diff Mode)",
            "type": "string",
            "description": "Named persistent Apify Key-Value Store used to save baseline snapshots and emit newly posted grants, status transitions, and deadline/funding changes.",
            "default": "us-grants-gov-watchlist-state"
          },
          "watchlistStateKey": {
            "title": "Watchlist State Key (for watchlist_diff Mode)",
            "type": "string",
            "description": "Key name inside stateStoreName for isolating separate agency or topic watchlists.",
            "default": "US_GRANTS_GOV_WATCHLIST_SNAPSHOT"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}