{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Scraper - Federal Contracts & RFP Monitor (No API Key)",
    "description": "Scrape SAM.gov + USASpending for federal RFPs, solicitations, and contract awards. No API key required. AI-ranked by\nrelevance to your business. Filter by NAICS, set-aside, agency, state, value. Attachment URLs included. For govcon BD\nteams, proposal writers, and competitive intelligence.",
    "version": "1.5",
    "x-build-id": "fEEeYIgzLh21JSL0e"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/digital_troubadour~government-contract-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-digital_troubadour-government-contract-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/digital_troubadour~government-contract-monitor/runs": {
      "post": {
        "operationId": "runs-sync-digital_troubadour-government-contract-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/digital_troubadour~government-contract-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-digital_troubadour-government-contract-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",
        "properties": {
          "business_description": {
            "title": "Your Business Description",
            "type": "string",
            "description": "Describe what your company does (e.g., 'We provide cloud migration and IT modernization services for federal agencies'). Enables AI-powered semantic matching that finds relevant contracts even without exact keyword matches. Also auto-suggests NAICS codes."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keywords to search for in opportunity titles and descriptions",
            "items": {
              "type": "string"
            }
          },
          "naics_codes": {
            "title": "NAICS Codes",
            "type": "array",
            "description": "NAICS codes to filter opportunities (e.g., 541512 for IT services)",
            "items": {
              "type": "string"
            }
          },
          "psc_codes": {
            "title": "PSC Codes",
            "type": "array",
            "description": "Product Service Codes to filter by",
            "items": {
              "type": "string"
            }
          },
          "set_aside_types": {
            "title": "Set-Aside Types",
            "type": "array",
            "description": "Small business set-aside types (small_business, 8a, hubzone, sdvosb, wosb, edwosb)",
            "items": {
              "type": "string"
            }
          },
          "opportunity_types": {
            "title": "Opportunity Types",
            "type": "array",
            "description": "Types of opportunities to include (presolicitation, solicitation, combined_synopsis, sources_sought, special_notice, award_notice)",
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Federal agencies to filter by",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "State codes for place of performance (e.g., VA, MD, DC)",
            "items": {
              "type": "string"
            }
          },
          "min_value": {
            "title": "Minimum Contract Value ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum estimated contract value in USD",
            "default": 0
          },
          "max_value": {
            "title": "Maximum Contract Value ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum estimated contract value in USD (0 = no limit)",
            "default": 0
          },
          "posted_within_days": {
            "title": "Posted Within Days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only show opportunities posted within this many days",
            "default": 30
          },
          "deadline_within_days": {
            "title": "Deadline Within Days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only show opportunities with deadlines within this many days",
            "default": 60
          },
          "include_awards": {
            "title": "Include Contract Awards",
            "type": "boolean",
            "description": "Include recent contract awards for competitive intelligence",
            "default": true
          },
          "include_full_description": {
            "title": "Include Full Description",
            "type": "boolean",
            "description": "Include full opportunity description in output",
            "default": true
          },
          "max_results": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of opportunities to return",
            "default": 100
          },
          "sam_api_key": {
            "title": "SAM.gov API Key",
            "type": "string",
            "description": "SAM.gov API key for richer opportunity data (optional, free at https://api.sam.gov). Without a key, the actor uses USASpending.gov which provides award data but fewer opportunity details."
          },
          "webhook_url": {
            "title": "Webhook URL (Optional)",
            "type": "string",
            "description": "POST contracts to this URL after each run. Works with Zapier, Make, n8n, or any custom HTTP endpoint. Payload includes up to 50 opportunities with full details."
          },
          "dry_run": {
            "title": "Dry Run (Sample Data)",
            "type": "boolean",
            "description": "Return 2 sample opportunities without calling SAM.gov or USASpending APIs. Useful for testing input configuration, webhooks, or integrations. No charges incurred.",
            "default": false
          },
          "check_exclusions": {
            "title": "Screen Incumbents Against SAM.gov Exclusions ($0.05/entity)",
            "type": "boolean",
            "description": "Look up every incumbent contractor in the SAM.gov Exclusions list (debarred/suspended vendors). Returns exclusion reason, agency, and date. Charges $0.05 per entity checked.",
            "default": false
          },
          "entities_to_check": {
            "title": "Additional Entities to Screen (UEIs)",
            "type": "array",
            "description": "Optional list of SAM.gov UEIs to screen against the Exclusions list in addition to incumbents found in results.",
            "items": {
              "type": "string"
            }
          },
          "detect_recompetes": {
            "title": "Flag Recompetes / Expiring Contracts ($0.25/hit)",
            "type": "boolean",
            "description": "Flag awards whose period of performance ends within recompete_lookahead_months. Shows incumbent contractor, months until recompete. Single biggest BD signal (~38% win rate vs 12% on net-new). Charges $0.25 per recompete flagged.",
            "default": false
          },
          "recompete_lookahead_months": {
            "title": "Recompete Lookahead (Months)",
            "minimum": 1,
            "maximum": 36,
            "type": "integer",
            "description": "Flag contracts whose PoP ends within this many months. 18 is the industry standard for BD lead time.",
            "default": 18
          },
          "check_eligibility": {
            "title": "Check Set-Aside Eligibility for Your Company ($0.10/opp)",
            "type": "boolean",
            "description": "For every opportunity, check whether your company qualifies based on SBA size standards (NAICS revenue/employee cap) and your certifications. Charges $0.10 per opportunity checked. Requires company_profile below.",
            "default": false
          },
          "company_profile": {
            "title": "Your Company Profile (for Eligibility Check)",
            "type": "object",
            "description": "Your annual revenue, employee count, and certifications. Used to determine set-aside eligibility. Example: {\"annual_revenue_usd\": 5000000, \"employee_count\": 25, \"certifications\": [\"small_business\", \"wosb\"]}"
          },
          "detect_amendments": {
            "title": "Detect Solicitation Amendments ($0.08/amendment)",
            "type": "boolean",
            "description": "Compare current run against prior runs. Flags deadline changes, value changes, and new attachments. GAO treats Q&A and amendments as binding. Missing them often means proposal rejection. Charges $0.08 per amendment detected.",
            "default": false
          },
          "fetch_attachment_metadata": {
            "title": "Fetch Attachment Size & MIME Type",
            "type": "boolean",
            "description": "For each attachment URL, do a HEAD request to fetch Content-Length (size) and Content-Type (MIME). Adds ~0.5s per attachment. Free (no additional charge). When off, you still get filename parsed from the URL.",
            "default": false
          },
          "identify_incumbents": {
            "title": "Identify Prior Winners ($0.15/opportunity)",
            "type": "boolean",
            "description": "For each opportunity, query USASpending for top 5 contractors who won similar work (same agency + NAICS) over the last 5 years. Output includes total won, contract count, and latest PoP end date per winner. No SAM.gov API calls; uses USASpending which has generous rate limits. Charges $0.15 per opportunity enriched.",
            "default": false
          },
          "score_pwin": {
            "title": "Calculate Bid/No-Bid PWin Score ($0.20/opportunity)",
            "type": "boolean",
            "description": "Compute a Probability-of-Win score (0-100) per opportunity based on NAICS fit, past performance, agency history, set-aside fit, competition count, and value range. Verdict: bid (>=70), conditional (50-69), no_bid (<50). Requires company_profile.past_awards for full scoring.",
            "default": false
          },
          "extract_rfp_requirements": {
            "title": "Extract RFP Compliance Matrix via LLM ($0.35/opportunity)",
            "type": "boolean",
            "description": "Download RFP attachment PDFs, extract every shall/must/will requirement via Gemini 2.5 Flash, and organize by section (L, M, SOW). Outputs a compliance matrix. Requires gemini_api_key. Charges $0.35 per opportunity where extraction succeeded.",
            "default": false
          },
          "gemini_api_key": {
            "title": "Gemini API Key (for RFP extraction)",
            "type": "string",
            "description": "Required if extract_rfp_requirements is enabled. Get a free key at https://aistudio.google.com/apikey. You pay Google for the LLM calls directly (typically $0.01-$0.02 per RFP)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}