{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Bid Finder for Small Contractors",
    "description": "Find open federal contract opportunities in the public SAM.gov extract. Filter by keyword, NAICS, set-aside, state, and agency. Optional Grok bid-fit score. Contacts removed.",
    "version": "0.1",
    "x-build-id": "duDW8RixBRgVCDmLd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/edge_works~sam-gov-bid-fit-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-edge_works-sam-gov-bid-fit-finder",
        "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/edge_works~sam-gov-bid-fit-finder/runs": {
      "post": {
        "operationId": "runs-sync-edge_works-sam-gov-bid-fit-finder",
        "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/edge_works~sam-gov-bid-fit-finder/run-sync": {
      "post": {
        "operationId": "run-sync-edge_works-sam-gov-bid-fit-finder",
        "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": "Whole-word, case-insensitive match in the notice title or description. An opportunity is kept if any keyword matches. Leave empty to match on the other filters only.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Keep notices whose NAICS code starts with any of these (e.g. 5617 matches 561720 and 561730).",
            "items": {
              "type": "string"
            }
          },
          "setAsides": {
            "title": "Set-asides you qualify for",
            "type": "array",
            "description": "Keep only notices with one of these set-aside codes. Add NONE to also keep unrestricted (full and open) notices. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "NONE",
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "ISBEE",
                "IEE",
                "BICiv",
                "LAS",
                "ESB"
              ],
              "enumTitles": [
                "Unrestricted (no set-aside)",
                "Small Business (total)",
                "Small Business (partial)",
                "8(a) set-aside",
                "8(a) sole source",
                "HUBZone set-aside",
                "HUBZone sole source",
                "Service-Disabled Veteran-Owned (SDVOSB) set-aside",
                "SDVOSB sole source",
                "Women-Owned (WOSB) set-aside",
                "WOSB sole source",
                "Economically Disadvantaged WOSB set-aside",
                "EDWOSB sole source",
                "Veteran-Owned (VA only)",
                "Indian Small Business Economic Enterprise",
                "Indian Economic Enterprise",
                "Buy Indian (IHS)",
                "Local Area set-aside",
                "Emerging Small Business"
              ]
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Which SAM.gov notice types to include. Default: biddable and early-stage notices.",
            "items": {
              "type": "string",
              "enum": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Sale of Surplus Property"
              ]
            },
            "default": [
              "Solicitation",
              "Combined Synopsis/Solicitation",
              "Presolicitation",
              "Sources Sought"
            ]
          },
          "placeOfPerformanceStates": {
            "title": "Place-of-performance states",
            "type": "array",
            "description": "Two-letter US state codes (e.g. TX, VA). Leave empty for anywhere.",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Keep notices whose department, sub-tier, or office contains any of these words (e.g. VETERANS, ARMY, FOREST SERVICE).",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only notices posted in the last N days.",
            "default": 30
          },
          "minDaysUntilDeadline": {
            "title": "Minimum days left to respond",
            "minimum": -3650,
            "maximum": 3650,
            "type": "integer",
            "description": "Drop notices whose response deadline is closer than this. Notices with no deadline are dropped when this is set.",
            "default": 3
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Best matches first. Each returned opportunity is one billable result.",
            "default": 100
          },
          "includeFullDescription": {
            "title": "Include full description text",
            "type": "boolean",
            "description": "Off: a 600-character snippet. On: the full notice text, with contact details removed.",
            "default": false
          },
          "aiFitScoring": {
            "title": "Grok AI bid-fit score",
            "type": "boolean",
            "description": "Have Grok read each top notice against your company profile and return a 0-100 fit score, reasons, key requirements, risks, and a quote from the notice (checked word-for-word). Needs a company profile.",
            "default": true
          },
          "companyProfile": {
            "title": "Company profile",
            "type": "string",
            "description": "What you do, certifications and set-aside status, past performance, team size, locations you can serve, and contract sizes you can handle. Minimum 40 characters."
          },
          "maxAiScored": {
            "title": "Max opportunities to AI-score",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Only the top N results (by match score) are sent to Grok.",
            "default": 25
          },
          "maxGrokSpendUsd": {
            "title": "Grok spending cap for this run (USD)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Hard cap on Grok API cost per run. Calls stop once the next call could cross it. The Actor also enforces its own ceiling.",
            "default": 0.5
          },
          "grokModel": {
            "title": "Grok model",
            "enum": [
              "grok-4.20-0309-non-reasoning",
              "grok-4.3",
              "grok-4.7"
            ],
            "type": "string",
            "description": "Model used for fit scoring.",
            "default": "grok-4.20-0309-non-reasoning"
          },
          "xaiApiKey": {
            "title": "Your own xAI API key (optional)",
            "type": "string",
            "description": "Use your own xAI key. Grok costs then go to your xAI account and the AI fit-score event is not charged."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}