{
  "openapi": "3.0.1",
  "info": {
    "title": "Grant, RFP & Procurement Opportunity Monitor",
    "description": "Find public grants, RFPs, procurement notices, and funding leads across Grants.gov, World Bank, SAM.gov, and news sources.",
    "version": "0.1",
    "x-build-id": "SsDfETWxSYmDiI8yE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/orbiscribe~gov-grant-opportunity-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-orbiscribe-gov-grant-opportunity-monitor",
        "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/orbiscribe~gov-grant-opportunity-monitor/runs": {
      "post": {
        "operationId": "runs-sync-orbiscribe-gov-grant-opportunity-monitor",
        "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/orbiscribe~gov-grant-opportunity-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-orbiscribe-gov-grant-opportunity-monitor",
        "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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search terms that describe opportunities to find. Examples: artificial intelligence, cybersecurity, clean energy, SBIR software.",
            "items": {
              "type": "string"
            }
          },
          "businessProfile": {
            "title": "Business profile",
            "type": "string",
            "description": "Plain-English description used for local fit scoring. No LLM or external API is used."
          },
          "sources": {
            "title": "Sources",
            "uniqueItems": true,
            "type": "array",
            "description": "Official/public sources to search. Grants.gov, World Bank, and Google News need no key. SAM.gov requires your own public SAM.gov API key.",
            "items": {
              "type": "string",
              "enum": [
                "grants",
                "sam",
                "worldbank",
                "news"
              ],
              "enumTitles": [
                "Grants.gov",
                "SAM.gov",
                "World Bank Procurement",
                "Google News RSS"
              ]
            },
            "default": [
              "grants",
              "worldbank",
              "news"
            ]
          },
          "maxResults": {
            "title": "Max total results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of scored opportunities to emit across all sources.",
            "default": 50
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How far back to search where the source supports date filtering.",
            "default": 30
          },
          "minScore": {
            "title": "Minimum fit score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only emit opportunities with this fit score or higher. Use 0 to export everything.",
            "default": 20
          },
          "grantsStatuses": {
            "title": "Grants.gov statuses",
            "uniqueItems": true,
            "type": "array",
            "description": "Grant opportunity statuses to include.",
            "items": {
              "type": "string",
              "enum": [
                "posted",
                "forecasted",
                "closed",
                "archived"
              ],
              "enumTitles": [
                "Posted",
                "Forecasted",
                "Closed",
                "Archived"
              ]
            },
            "default": [
              "posted",
              "forecasted"
            ]
          },
          "samApiKey": {
            "title": "SAM.gov API key",
            "type": "string",
            "description": "Optional. Required only when source includes SAM.gov. Use your own public SAM.gov API key; do not enter a SAM.gov password."
          },
          "samNoticeTypes": {
            "title": "SAM.gov notice types",
            "uniqueItems": true,
            "type": "array",
            "description": "Procurement notice types for SAM.gov searches.",
            "items": {
              "type": "string",
              "enum": [
                "o",
                "k",
                "p",
                "r",
                "s",
                "a"
              ],
              "enumTitles": [
                "Solicitation",
                "Combined synopsis/solicitation",
                "Pre-solicitation",
                "Sources sought",
                "Special notice",
                "Award notice"
              ]
            },
            "default": [
              "o",
              "k",
              "p",
              "r"
            ]
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Optional SAM.gov NAICS filters such as 541511 or 541715.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Place of performance states",
            "type": "array",
            "description": "Optional SAM.gov state filters such as VA, CA, TX.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Fetch grant details",
            "type": "boolean",
            "description": "Fetch Grants.gov detail records for richer descriptions and contact fields. Slower but more useful.",
            "default": true
          },
          "includeRawData": {
            "title": "Include raw API payloads",
            "type": "boolean",
            "description": "Include raw source payloads in each dataset item. Off by default to keep results compact and integration-friendly.",
            "default": false
          },
          "includeExpired": {
            "title": "Include expired opportunities",
            "type": "boolean",
            "description": "Include records whose deadline has already passed. Off by default for buyer-facing monitoring.",
            "default": false
          },
          "dryRun": {
            "title": "Dry run demo",
            "type": "boolean",
            "description": "Emit two realistic sample records without calling external sources. Useful for previewing schema and pricing.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}