{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Federal Contracts, Bids, Awards & Contacts Scraper",
    "description": "Extract active US federal contract opportunities, RFPs, Sources Sought, Small Business/8(a)/SDVOSB set-asides, contract awards, attachment links, and Contracting Officer emails/phones from SAM.gov with no API key required. Ready for Clay, HubSpot, Salesforce, Excel, n8n, Make, and AI agents.",
    "version": "1.0",
    "x-build-id": "mecgdHXJaF7HWsjTq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bifrost-data~samgov-federal-contracts-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bifrost-data-samgov-federal-contracts-leads-scraper",
        "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/bifrost-data~samgov-federal-contracts-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bifrost-data-samgov-federal-contracts-leads-scraper",
        "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/bifrost-data~samgov-federal-contracts-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bifrost-data-samgov-federal-contracts-leads-scraper",
        "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": {
          "query": {
            "title": "Search Keywords",
            "type": "string",
            "description": "Keywords to search across SAM.gov contract titles, solicitation numbers, and descriptions (e.g., 'cybersecurity', 'cloud migration', 'janitorial', 'drone'). Leave blank to browse newest notices."
          },
          "naics_codes": {
            "title": "NAICS Codes Filter (Optional)",
            "type": "array",
            "description": "Filter to one or more 2-to-6 digit NAICS industry codes (e.g., ['541512', '541519'] for IT/Cyber, ['236220'] for Commercial Construction). Non-matching notices are skipped at $0 charge.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "notice_types": {
            "title": "Notice Types",
            "type": "array",
            "description": "Filter by notice stage: 'o' (Solicitation/RFP), 'k' (Combined Synopsis/Solicitation), 'p' (Presolicitation), 'r' (Sources Sought/RFI), 'a' (Award Notice), 's' (Special Notice), 'j' (Justification & Approval / Sole Source). Leave empty for all types.",
            "default": [
              "o",
              "k",
              "p",
              "r"
            ],
            "items": {
              "type": "string"
            }
          },
          "set_aside_codes": {
            "title": "Small Business Set-Aside Filter (Optional)",
            "type": "array",
            "description": "Filter by set-aside code or keyword (e.g., 'SBA' / 'Small Business', '8A', 'SDVOSB', 'HZC' / 'HUBZone', 'WOSB'). Leave empty for all competitions.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Place of Performance US States (Optional)",
            "type": "array",
            "description": "Two-letter US state/territory codes (e.g., ['VA', 'MD', 'DC', 'TX']). Leave empty for nationwide & international contracts.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "active_only": {
            "title": "Active Opportunities Only",
            "type": "boolean",
            "description": "Keep only active, uncanceled notices.",
            "default": true
          },
          "min_days_until_deadline": {
            "title": "Minimum Days Left Until Bid Deadline (Optional)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Exclude solicitations whose response deadline has already passed or closes in fewer than N days (e.g., 3). Leave empty or 0 to include awards/notices without a future response deadline."
          },
          "require_contact_email": {
            "title": "Only Leads With Contracting Officer Email",
            "type": "boolean",
            "description": "When enabled, skips notices that do not publish a direct Contracting Officer email address ($0 charge for skipped rows).",
            "default": false
          },
          "enrich_details": {
            "title": "Enrich Full Contacts, NAICS & Award Values",
            "type": "boolean",
            "description": "Fetches each notice's SAM.gov detail record to populate Contracting Officer name/email/phone, exact NAICS/PSC codes, set-aside, place of performance, and awardee/dollar value.",
            "default": true
          },
          "include_attachments": {
            "title": "Include RFP / SOW Attachment Download Links",
            "type": "boolean",
            "description": "Fetches public RFP, Statement of Work (SOW), and J&A document filenames and direct download URLs.",
            "default": true
          },
          "sort_by": {
            "title": "Sort Order",
            "enum": [
              "-modifiedDate",
              "-relevance"
            ],
            "type": "string",
            "description": "Sort results by newest modification date ('-modifiedDate') or keyword relevance ('-relevance').",
            "default": "-modifiedDate"
          },
          "max_items": {
            "title": "Max Verified Leads",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of verified SAM.gov contract leads to save to your dataset.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}