{
  "openapi": "3.0.1",
  "info": {
    "title": "SAM.gov Solicitation Changes & Deadline Monitor (Unofficial)",
    "description": "Monitor official public SAM.gov contract opportunities for new solicitations, amendments, deadline changes, removals, and material updates - no API key required.",
    "version": "0.1",
    "x-build-id": "sxxJ7EgFATpdjPHTu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tender_signall~sam-gov-solicitation-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tender_signall-sam-gov-solicitation-change-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/tender_signall~sam-gov-solicitation-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-tender_signall-sam-gov-solicitation-change-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/tender_signall~sam-gov-solicitation-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-tender_signall-sam-gov-solicitation-change-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": {
          "preset": {
            "title": "Quick-start market",
            "enum": [
              "custom",
              "it_software",
              "cybersecurity",
              "construction",
              "professional_services",
              "healthcare"
            ],
            "type": "string",
            "description": "Choose a tested keyword and NAICS watchlist, or select Custom to supply your own targeting.",
            "default": "it_software"
          },
          "monitorId": {
            "title": "Monitor ID",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{1,79}$",
            "minLength": 2,
            "maxLength": 80,
            "type": "string",
            "description": "Stable ID for this watchlist. Reuse it on scheduled runs; use a new ID for a separate watchlist.",
            "default": "sam-it-opportunities"
          },
          "keywords": {
            "title": "Keywords or exact phrases",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Custom mode only. Matched as whole words or phrases across title, description, solicitation, agency, office, classifications, and place of performance.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "default": []
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Discard an opportunity when any excluded whole word or phrase appears in its searchable fields.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "default": []
          },
          "matchMode": {
            "title": "Keyword matching",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "ANY requires at least one keyword. ALL requires every configured keyword.",
            "default": "any"
          },
          "noticeTypes": {
            "title": "Notice types",
            "uniqueItems": true,
            "type": "array",
            "description": "Defaults to actionable pre-award notices. Award notices are intentionally excluded unless selected.",
            "items": {
              "type": "string",
              "enum": [
                "Solicitation",
                "Combined Synopsis/Solicitation",
                "Presolicitation",
                "Sources Sought",
                "Special Notice",
                "Award Notice",
                "Justification",
                "Modification/Amendment/Cancel",
                "Sale of Surplus Property",
                "Consolidate/(Substantially) Bundle"
              ]
            },
            "default": [
              "Solicitation",
              "Combined Synopsis/Solicitation",
              "Presolicitation",
              "Sources Sought"
            ]
          },
          "naicsCodes": {
            "title": "NAICS codes or prefixes",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "For example 541512 for a precise industry or 5415 for a broader family.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 12
            },
            "default": []
          },
          "classificationCodes": {
            "title": "PSC/classification codes or prefixes",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional Product Service Code targeting, using an exact code or prefix.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 12
            },
            "default": []
          },
          "departments": {
            "title": "Departments or agencies",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional partial names such as Department of Defense or Veterans Affairs.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 180
            },
            "default": []
          },
          "offices": {
            "title": "Offices or AAC codes",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional partial office names or AAC codes.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 180
            },
            "default": []
          },
          "states": {
            "title": "Place-of-performance states",
            "maxItems": 60,
            "uniqueItems": true,
            "type": "array",
            "description": "US state or territory abbreviations such as VA, MD, CA, or DC.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 40
            },
            "default": []
          },
          "setAsideCodes": {
            "title": "Set-aside codes",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional official codes such as SBA, 8A, SDVOSBC, WOSB, EDWOSB, or HZC.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32
            },
            "default": []
          },
          "publishedWithinDays": {
            "title": "Published within",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Use 0 for any posting date. A positive value keeps only recently posted records.",
            "default": 0
          },
          "minDaysRemaining": {
            "title": "Minimum days remaining",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Exclude deadlines sooner than this, calculated from the official offset-aware timestamp.",
            "default": 0
          },
          "closingWithinDays": {
            "title": "Closing within",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only keep opportunities whose deadline is within this many days.",
            "default": 90
          },
          "includeNoDeadline": {
            "title": "Include recent notices without a deadline",
            "type": "boolean",
            "description": "Useful for Sources Sought and Presolicitations. Their posting age is limited separately below.",
            "default": true
          },
          "noDeadlineMaxAgeDays": {
            "title": "Maximum age without a deadline",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Prevents old no-deadline notices from remaining actionable forever.",
            "default": 30
          },
          "minimumSeverity": {
            "title": "Minimum change severity",
            "enum": [
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string",
            "description": "Low returns every tracked change. High focuses on shortened deadlines, scope, set-aside, and classification changes.",
            "default": "low"
          },
          "minScore": {
            "title": "Minimum relevance score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Transparent 0–100 relevance score. This is separate from change severity.",
            "default": 0
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "changes_only",
              "new_and_changes",
              "all_current"
            ],
            "type": "string",
            "description": "Changes only suppresses newly posted opportunities. New and changes is recommended for a complete opportunity feed. All current also repeats unchanged matches.",
            "default": "changes_only"
          },
          "emitBaseline": {
            "title": "Return initial baseline",
            "type": "boolean",
            "description": "First-run matches are labelled baseline, never falsely labelled as newly posted.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum output events per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Undelivered events are queued and delivered before new events on the next run.",
            "default": 500
          },
          "maxSnapshotItems": {
            "title": "Maximum tracked records",
            "minimum": 100,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard safety limit for broad watchlists. Narrow filters instead of raising this unless necessary.",
            "default": 10000
          },
          "allowBroadScan": {
            "title": "Allow an untargeted broad scan",
            "type": "boolean",
            "description": "Advanced option. Required when no keyword or structured targeting filter is configured.",
            "default": false
          },
          "resetState": {
            "title": "Reset this watchlist baseline",
            "type": "boolean",
            "description": "Ignore the previous snapshot and create a new baseline. Leave disabled for schedules.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}