{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Scraper: Contract Opportunities & Bid Alerts",
    "description": "Scrape SAM.gov federal contract opportunities: RFPs, RFQs, solicitations, sources sought and award notices. Filter by keyword, NAICS, PSC, set-aside (8(a), SDVOSB, WOSB, HUBZone), state, agency and deadline. Daily bid alerts return only new notices. No API key. Export CSV, Excel, JSON.",
    "version": "1.0",
    "x-build-id": "0ti7jjMa4LThPOVgi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/studded_columbine~samgov-contract-opportunities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-studded_columbine-samgov-contract-opportunities",
        "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/studded_columbine~samgov-contract-opportunities/runs": {
      "post": {
        "operationId": "runs-sync-studded_columbine-samgov-contract-opportunities",
        "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/studded_columbine~samgov-contract-opportunities/run-sync": {
      "post": {
        "operationId": "run-sync-studded_columbine-samgov-contract-opportunities",
        "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": "Words or phrases to look for in the title, solicitation number and (optionally) description. Case-insensitive. Example: \"cybersecurity\", \"janitorial services\".",
            "items": {
              "type": "string"
            }
          },
          "keywordMode": {
            "title": "Keyword match mode",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Match notices containing ANY of the keywords, or ALL of them.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop notices that mention any of these words or phrases.",
            "items": {
              "type": "string"
            }
          },
          "wholeWordsOnly": {
            "title": "Whole words only",
            "type": "boolean",
            "description": "If on, \"AI\" will not match \"maintenance\". Turn off for substring matching.",
            "default": true
          },
          "searchInDescription": {
            "title": "Search in description",
            "type": "boolean",
            "description": "Also search the full notice description (not just the title and solicitation number).",
            "default": true
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "NAICS codes or prefixes. \"5415\" matches 541511, 541512, etc.",
            "items": {
              "type": "string"
            }
          },
          "pscCodes": {
            "title": "PSC (product/service) codes",
            "type": "array",
            "description": "Product Service Codes or prefixes, e.g. \"D3\" (IT services), \"R4\", \"S201\".",
            "items": {
              "type": "string"
            }
          },
          "setAsideCodes": {
            "title": "Set-aside types",
            "type": "array",
            "description": "Keep only notices with these set-aside types. \"NONE\" = no set-aside (full and open).",
            "items": {
              "type": "string",
              "enum": [
                "SBA",
                "SBP",
                "8A",
                "8AN",
                "HZC",
                "HZS",
                "SDVOSBC",
                "SDVOSBS",
                "WOSB",
                "WOSBSS",
                "EDWOSB",
                "EDWOSBSS",
                "VSA",
                "VSS",
                "ISBEE",
                "IEE",
                "BICIV",
                "LAS",
                "ESB",
                "NONE"
              ],
              "enumTitles": [
                "Small Business Set-Aside (Total)",
                "Small Business Set-Aside (Partial)",
                "8(a) Set-Aside",
                "8(a) Sole Source",
                "HUBZone Set-Aside",
                "HUBZone Sole Source",
                "SDVOSB Set-Aside",
                "SDVOSB Sole Source",
                "WOSB Set-Aside",
                "WOSB Sole Source",
                "EDWOSB Set-Aside",
                "EDWOSB Sole Source",
                "Veteran-Owned (VA) Set-Aside",
                "Veteran-Owned (VA) Sole Source",
                "Indian Small Business Economic Enterprise",
                "Indian Economic Enterprise",
                "Buy Indian (IHS)",
                "Local Area Set-Aside",
                "Emerging Small Business",
                "No set-aside / not specified"
              ]
            }
          },
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "Combined Synopsis/Solicitation",
                "Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Justification and Approval (J&A)",
                "Modification/Amendment/Cancel",
                "Sale of Surplus Property",
                "Consolidate/(Substantially) Bundle"
              ]
            }
          },
          "states": {
            "title": "States / territories",
            "type": "array",
            "description": "Two-letter codes, e.g. \"VA\", \"TX\", \"DC\". See \"Location match\" for how this is applied.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Three-letter ISO codes, e.g. \"USA\", \"JPN\", \"DEU\".",
            "items": {
              "type": "string"
            }
          },
          "locationMatch": {
            "title": "Location match",
            "enum": [
              "placeOfPerformanceOrOffice",
              "placeOfPerformance",
              "office",
              "either"
            ],
            "type": "string",
            "description": "Only ~25% of notices list a place of performance. The default uses place of performance when present, otherwise the contracting office location.",
            "default": "placeOfPerformanceOrOffice"
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Case-insensitive text matched against department, sub-tier and office, e.g. \"veterans affairs\", \"army\", \"NASA\".",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within the last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Shortcut for a rolling posted-date window. Works well with schedules."
          },
          "postedFrom": {
            "title": "Posted from (YYYY-MM-DD)",
            "type": "string",
            "description": "Earliest posted date (inclusive)."
          },
          "postedTo": {
            "title": "Posted to (YYYY-MM-DD)",
            "type": "string",
            "description": "Latest posted date (inclusive)."
          },
          "deadlineWithinDays": {
            "title": "Response deadline within the next N days",
            "minimum": 1,
            "type": "integer",
            "description": "Only notices due between today and N days from now."
          },
          "responseDeadlineFrom": {
            "title": "Response deadline from (YYYY-MM-DD)",
            "type": "string",
            "description": "Notices without a deadline are excluded when a deadline range is set."
          },
          "responseDeadlineTo": {
            "title": "Response deadline to (YYYY-MM-DD)",
            "type": "string",
            "description": "Latest response deadline (inclusive)."
          },
          "activeOnly": {
            "title": "Active / open only",
            "type": "boolean",
            "description": "Skip notices whose response deadline or archive date has already passed.",
            "default": true
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run (alerts)",
            "type": "boolean",
            "description": "Return only notices this saved search has not returned before. Ideal with a daily schedule. State is kept per search in a named key-value store in your account.",
            "default": false
          },
          "stateKey": {
            "title": "Saved search name",
            "type": "string",
            "description": "Optional name for the 'new since last run' memory, e.g. \"va-it-bids\". By default it is derived from your filters, so changing filters starts a fresh search."
          },
          "firstRunBehavior": {
            "title": "First run behavior",
            "enum": [
              "returnAll",
              "baselineOnly"
            ],
            "type": "string",
            "description": "On the first run of a monitored search: return all current matches, or just record them silently so that only genuinely new notices are returned afterwards (and charged).",
            "default": "returnAll"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of opportunities to return. 0 = no limit.",
            "default": 1000
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "postedDateDesc",
              "postedDateAsc",
              "responseDeadlineAsc",
              "none"
            ],
            "type": "string",
            "description": "Order of results. Sorting scans the whole file (about 10 s); \"File order\" can stop early once Max results is reached.",
            "default": "postedDateDesc"
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Include the notice description text.",
            "default": true
          },
          "descriptionMaxLength": {
            "title": "Max description length",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate descriptions to this many characters. 0 = full text.",
            "default": 0
          },
          "includeContacts": {
            "title": "Include contracting officer contacts",
            "type": "boolean",
            "description": "Off by default. When on, adds the primary/secondary point-of-contact name, title, email and phone published on the notice. Use only for responding to the solicitation; do not use for unsolicited marketing.",
            "default": false
          },
          "sourceUrl": {
            "title": "Source file URL (advanced)",
            "type": "string",
            "description": "Leave empty to use the official SAM.gov Contract Opportunities daily extract."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}